sysstat: declare systemd as build option.

This commit is contained in:
Juan RP 2014-07-08 15:11:07 +02:00
parent 719de35774
commit f8958709c0

View file

@ -1,14 +1,9 @@
# Template file for 'sysstat'
pkgname=sysstat
version=11.0.0
revision=3
revision=4
build_style=gnu-configure
configure_args="--enable-yesterday --enable-install-isag"
if [ "$build_option_systemd" ]; then
configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system"
else
configure_args+=" --with-systemdsystemunitdir=none --enable-install-cron"
fi
make_dirs="/var/log/sa 0755 root root"
hostmakedepends="pkg-config"
depends="lm-sensors"
@ -19,6 +14,14 @@ homepage="http://pagesperso-orange.fr/sebastien.godard/"
distfiles="http://pagesperso-orange.fr/sebastien.godard/${pkgname}-${version}.tar.gz"
checksum=e67cbf35a8842c3cf3c39314b628611fb59c30de0da679ac68b195714be14253
build_options="systemd"
if [ "$build_option_systemd" ]; then
configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system"
else
configure_args+=" --with-systemdsystemunitdir=none --enable-install-cron"
fi
pre_configure() {
sed -i 's/lib64/lib/' configure
export conf_dir=/etc/default