mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
mongodb: added systemd build option.
This commit is contained in:
parent
f149d22e76
commit
9ac23f1fcf
1 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,6 @@ 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"
|
||||||
systemd_services="mongodb.service on"
|
|
||||||
system_accounts="mongodb"
|
system_accounts="mongodb"
|
||||||
mongodb_homedir="/var/lib/mongodb"
|
mongodb_homedir="/var/lib/mongodb"
|
||||||
short_desc="high-performance, schema-free document-oriented database"
|
short_desc="high-performance, schema-free document-oriented database"
|
||||||
|
@ -26,6 +25,10 @@ _scons_args=" --use-system-boost \
|
||||||
--ssl \
|
--ssl \
|
||||||
--sharedclient \
|
--sharedclient \
|
||||||
--disable-warnings-as-errors"
|
--disable-warnings-as-errors"
|
||||||
|
build_options="systemd"
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
systemd_services="mongodb.service on"
|
||||||
|
fi
|
||||||
|
|
||||||
# XXX
|
# XXX
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 x86_64"
|
||||||
|
@ -56,5 +59,6 @@ do_install() {
|
||||||
$_scons_args
|
$_scons_args
|
||||||
|
|
||||||
vinstall "${FILESDIR}/mongodb.conf" 644 "etc/mongodb"
|
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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue