mongodb: do not install unconditionally the systemd service; misc tweaks.

This commit is contained in:
Juan RP 2014-10-15 19:31:04 +02:00
parent f6e9952f52
commit d35c8ae8f5

View file

@ -1,7 +1,7 @@
# Template file for 'mongodb' # Template file for 'mongodb'
pkgname=mongodb pkgname=mongodb
version=2.6.5 version=2.6.5
revision=1 revision=2
hostmakedepends="scons" hostmakedepends="scons"
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel v8-3.16-devel" makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel v8-3.16-devel"
conf_files="/etc/mongodb/mongodb.conf" conf_files="/etc/mongodb/mongodb.conf"
@ -28,9 +28,6 @@ _scons_args=" --use-system-boost \
--nostrip \ --nostrip \
--disable-warnings-as-errors" --disable-warnings-as-errors"
build_options="systemd" build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="mongodb.service on"
fi
do_configure() { do_configure() {
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g" find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
@ -57,9 +54,10 @@ do_install() {
--prefix="${DESTDIR}/usr" \ --prefix="${DESTDIR}/usr" \
$_scons_args $_scons_args
vinstall "${FILESDIR}/mongodb.conf" 644 "etc/mongodb" vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
[ "$build_option_systemd" ] && \ if [ "$build_option_systemd" ]; then
vinstall "${FILESDIR}/mongodb.service" 644 "usr/lib/systemd/system" vinstall ${FILESDIR}/mongodb.service 644 usr/lib/systemd/system
fi
vsv mongodb vsv mongodb
} }