summaryrefslogtreecommitdiff
path: root/community/mongodb
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-14 23:14:41 +0000
committerroot <root@rshg054.dnsready.net>2011-09-14 23:14:41 +0000
commitd5effc9aadfb9ed5890376ca9497eef52fafcf83 (patch)
treef630036c6ee41473fffa6086618dcc803d1fe391 /community/mongodb
parenta712dc92423a31a4d3ab34fe660df550feebf442 (diff)
Wed Sep 14 23:14:41 UTC 2011
Diffstat (limited to 'community/mongodb')
-rw-r--r--community/mongodb/PKGBUILD20
-rwxr-xr-xcommunity/mongodb/mongodb.rc4
2 files changed, 8 insertions, 16 deletions
diff --git a/community/mongodb/PKGBUILD b/community/mongodb/PKGBUILD
index 1648fc546..22c2e27d1 100644
--- a/community/mongodb/PKGBUILD
+++ b/community/mongodb/PKGBUILD
@@ -3,37 +3,29 @@
# Contributor: Alec Thomas
pkgname=mongodb
-pkgver=1.8.3
+pkgver=2.0.0
pkgrel=1
pkgdesc='A high-performance, open source, schema-free document-oriented database.'
arch=('i686' 'x86_64')
url='http://www.mongodb.org'
license=('AGPL3')
-depends=('boost-libs' 'js' 'pcre')
+depends=('boost-libs')
makedepends=('scons' 'boost')
optdepends=('libpcap: needed for mongosniff')
backup=('etc/mongodb.conf')
install="mongodb.install"
source=("http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz"
'mongodb.rc'
- 'mongodb.conf'
- 'mongodb-1.8.0-spidermonkey-1.8.5-support.patch'
- 'add-js185-support-to-SConstruct.diff')
-md5sums=('662e7ad6ff9f8e4d16c72c038b4a0c60'
- '85eaa28e349fdc6250f883624e624cca'
- '4839fe1d638187ca3226e8267b947318'
- '2e6409732fba887c9cfe81257b5260ad'
- 'ca7e62be31389d951bfd8848b1675c1b')
+ 'mongodb.conf')
+md5sums=('52763985c13e06d85bc125c7d3eb03d9'
+ '9c67e00f4626ad761a8f7d4e037a54d7'
+ '4839fe1d638187ca3226e8267b947318')
build() {
export SCONSFLAGS="$MAKEFLAGS"
cd mongodb-src-r${pkgver}
- # js185 support https://jira.mongodb.org/browse/SERVER-2887
- patch -Np1 -i ${srcdir}/mongodb-1.8.0-spidermonkey-1.8.5-support.patch
- patch -Np0 -i ${srcdir}/add-js185-support-to-SConstruct.diff
-
scons \
all \
--full
diff --git a/community/mongodb/mongodb.rc b/community/mongodb/mongodb.rc
index 517258f63..30f2bbf79 100755
--- a/community/mongodb/mongodb.rc
+++ b/community/mongodb/mongodb.rc
@@ -4,7 +4,7 @@
. /etc/rc.conf
. /etc/rc.d/functions
-PID=`pidof /usr/bin/mongod`
+PID=$(pidof /usr/bin/mongod)
case "$1" in
start)
stat_busy "Starting mongodb"
@@ -18,7 +18,7 @@ case "$1" in
;;
stop)
stat_busy "Stopping mongodb"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
+ [ ! -z "$PID" ] && /bin/su mongodb -c "/usr/bin/mongod --config /etc/mongodb.conf --shutdown" &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else