mongodb: added systemd build option.

This commit is contained in:
Enno Boland 2014-08-21 07:36:00 +02:00
parent f149d22e76
commit 9ac23f1fcf
1 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,6 @@ 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"
systemd_services="mongodb.service on"
system_accounts="mongodb"
mongodb_homedir="/var/lib/mongodb"
short_desc="high-performance, schema-free document-oriented database"
@ -26,6 +25,10 @@ _scons_args=" --use-system-boost \
--ssl \
--sharedclient \
--disable-warnings-as-errors"
build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="mongodb.service on"
fi
# XXX
only_for_archs="i686 x86_64"
@ -56,5 +59,6 @@ do_install() {
$_scons_args
vinstall "${FILESDIR}/mongodb.conf" 644 "etc/mongodb"
vinstall "${FILESDIR}/mongodb.service" 644 "usr/lib/systemd/system"
[ "$build_option_systemd" ] && \
vinstall "${FILESDIR}/mongodb.service" 644 "usr/lib/systemd/system"
}