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