summaryrefslogtreecommitdiff
path: root/community/mongodb
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-08-28 11:13:32 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-08-28 11:13:32 +0200
commit0cc6a0720f9505aaacfc247fa646d3e888f8e4aa (patch)
tree65312a00db8134471b6b4d8f32c36cf479effdbe /community/mongodb
parent0c5c6934b681707ec1a459da4318aabd7f9b796f (diff)
parent559da5e6e5aff9ccc57e29b6a91c35a528424b6c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/widelands/PKGBUILD community/bird/PKGBUILD community/hwinfo/PKGBUILD community/pdnsd/PKGBUILD community/spectrwm/PKGBUILD community/xmlrpc-c/PKGBUILD core/wireless_tools/PKGBUILD extra/proftpd/PKGBUILD libre/grub/PKGBUILD multilib-testing/lib32-libdrm/PKGBUILD multilib-testing/lib32-libdrm/no-pthread-stubs.patch multilib/lib32-gdk-pixbuf2/PKGBUILD testing/pkg-config/PKGBUILD testing/systemd/PKGBUILD testing/systemd/systemd.install
Diffstat (limited to 'community/mongodb')
-rw-r--r--community/mongodb/PKGBUILD47
-rw-r--r--community/mongodb/mongodb.service10
2 files changed, 28 insertions, 29 deletions
diff --git a/community/mongodb/PKGBUILD b/community/mongodb/PKGBUILD
index 572109d3a..041ca13b4 100644
--- a/community/mongodb/PKGBUILD
+++ b/community/mongodb/PKGBUILD
@@ -1,29 +1,29 @@
-# $Id: PKGBUILD 74000 2012-07-18 01:07:39Z ibiru $
+# $Id: PKGBUILD 75451 2012-08-24 16:38:30Z heftig $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Mathias Stearn <mathias@10gen.com>
# Contributor: Alec Thomas
pkgname=mongodb
-pkgver=2.0.6
-pkgrel=2
+pkgver=2.0.7
+pkgrel=1
pkgdesc='A high-performance, open source, schema-free document-oriented database'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.mongodb.org'
license=('AGPL3')
depends=('boost-libs')
-makedepends=('scons' 'boost')
-#checkdepends=('python2-pymongo')
+makedepends=('scons' 'boost' 'libpcap')
+checkdepends=('python2-pymongo')
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.rc' 'mongodb.conf' 'mongodb.service'
'boost-1.50.patch')
-md5sums=('b3b32fecdcbe8e8068ec2989be9d2da4'
+md5sums=('420660f67c0dfaefac3ec3164fc2e096'
'9c67e00f4626ad761a8f7d4e037a54d7'
'4839fe1d638187ca3226e8267b947318'
+ '96ab4517b48974ce0e566d9746a75a4f'
'5d22fd2c0ae869218488cd7c0dbc3903')
build() {
@@ -31,11 +31,10 @@ build() {
cd mongodb-src-r${pkgver}
- patch -Np1 -i ${srcdir}/boost-1.50.patch
+ patch -Np1 -i $srcdir/boost-1.50.patch
+ sed -i '/nixLibPrefix/s/lib64/lib/' SConstruct
- scons \
- all \
- --full
+ scons all --full --sharedclient # --use-system-sm --use-system-pcre
}
<<COMMENT
@@ -44,9 +43,7 @@ check() {
cd mongodb-src-r${pkgver}
- scons \
- smokeAll \
- --smokedbprefix=${srcdir}
+ scons smokeAll --smokedbprefix=$srcdir
}
COMMENT
@@ -55,19 +52,11 @@ package() {
cd mongodb-src-r${pkgver}
- scons \
- install \
- --full \
- --prefix=${pkgdir}/usr
+ scons install --full --sharedclient --prefix=$pkgdir/usr # --use-system-sm --use-system-pcre
- install -D -m755 ${srcdir}/mongodb.rc \
- ${pkgdir}/etc/rc.d/mongodb
- install -D -m644 ${srcdir}/mongodb.conf \
- ${pkgdir}/etc/mongodb.conf
- install -d -m700 ${pkgdir}/var/lib/mongodb
- install -d -m755 ${pkgdir}/var/log/mongodb
-
- if [ -d ${pkgdir}/usr/lib64 ]; then
- mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
- fi
+ install -D -m755 $srcdir/mongodb.rc $pkgdir/etc/rc.d/mongodb
+ install -D -m644 $srcdir/mongodb.conf $pkgdir/etc/mongodb.conf
+ install -D -m644 $srcdir/mongodb.service $pkgdir/usr/lib/systemd/system/mongodb.service
+ install -d -m700 $pkgdir/var/lib/mongodb
+ install -d -m755 $pkgdir/var/log/mongodb
}
diff --git a/community/mongodb/mongodb.service b/community/mongodb/mongodb.service
new file mode 100644
index 000000000..78d551183
--- /dev/null
+++ b/community/mongodb/mongodb.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=High-performance, schema-free document-oriented database
+After=network.target
+
+[Service]
+User=mongodb
+ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf
+
+[Install]
+WantedBy=multi-user.target