mongodb: update to 3.0.0.

This commit is contained in:
Enno Boland 2015-03-05 10:10:54 +01:00
parent 54a372b9aa
commit e6fa062394
3 changed files with 15 additions and 8 deletions

7
srcpkgs/mongodb/INSTALL Normal file
View file

@ -0,0 +1,7 @@
case "$ACTION" in
post)
if [ "$UPDATE" = "yes" ]; then
chown -R mongodb var/lib/mongodb/* var/log/mongodb/*
fi
;;
esac

View file

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
exec mongod --quiet --config /etc/mongodb/mongodb.conf [ -r conf ] && . ./conf
exec chpst -u mongodb mongod ${OPTS:=--quiet --config /etc/mongodb/mongodb.conf}

View file

@ -1,9 +1,9 @@
# Template file for 'mongodb' # Template file for 'mongodb'
pkgname=mongodb pkgname=mongodb
version=2.6.8 version=3.0.0
revision=2 revision=1
hostmakedepends="scons" hostmakedepends="scons"
makedepends="boost-devel pcre-devel snappy-devel libressl-devel>=2.1.4 libpcap-devel gperftools-devel v8-3.16-devel" makedepends="boost-devel pcre-devel snappy-devel libressl-devel>=2.1.4 libpcap-devel gperftools-devel"
conf_files="/etc/mongodb/mongodb.conf" conf_files="/etc/mongodb/mongodb.conf"
system_accounts="mongodb" system_accounts="mongodb"
mongodb_homedir="/var/lib/mongodb" mongodb_homedir="/var/lib/mongodb"
@ -12,7 +12,7 @@ maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.mongodb.org" homepage="http://www.mongodb.org"
license="AGPL-3" license="AGPL-3"
distfiles="http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz" distfiles="http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz"
checksum="1997f60d9de17320f22c604d8aa1cbe5f38d877142cd0e9130fe3dae7b311a06" checksum="c1fdbb6bbc33eafedc4aa363be2b3cdf1eea8b8eb618d25131c5a30def24aad9"
make_dirs=" make_dirs="
/var/lib/mongodb 0700 mongodb mongodb /var/lib/mongodb 0700 mongodb mongodb
/var/log/mongodb 0750 mongodb mongodb" /var/log/mongodb 0750 mongodb mongodb"
@ -21,12 +21,11 @@ _scons_args=" --use-system-boost \
--use-system-pcre \ --use-system-pcre \
--use-system-snappy \ --use-system-snappy \
--use-system-tcmalloc \ --use-system-tcmalloc \
--use-system-v8 \
--ssl \ --ssl \
--sharedclient \
--variant-dir=void \ --variant-dir=void \
--nostrip \ --nostrip \
--disable-warnings-as-errors" --disable-warnings-as-errors"
# --use-system-v8 \ # disabled - configure error
build_options="systemd" build_options="systemd"
# ETOOHUGE # ETOOHUGE
nodebug=1 nodebug=1
@ -36,7 +35,7 @@ do_configure() {
} }
do_build() { do_build() {
scons all ${makejobs} \ scons core ${makejobs} \
--cc=$CC \ --cc=$CC \
--cxx=$CXX \ --cxx=$CXX \
--ld=$CXX \ --ld=$CXX \