From 114c49ed78387e42da0d149472d2588958aadf8c Mon Sep 17 00:00:00 2001
From: Christian Neukirchen <chneukirchen@gmail.com>
Date: Tue, 8 Jul 2014 14:58:24 +0200
Subject: [PATCH] sysstat: add systemd option

---
 srcpkgs/sysstat/template | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/sysstat/template b/srcpkgs/sysstat/template
index a2657617945..e825f67c803 100644
--- a/srcpkgs/sysstat/template
+++ b/srcpkgs/sysstat/template
@@ -1,9 +1,14 @@
 # Template file for 'sysstat'
 pkgname=sysstat
 version=11.0.0
-revision=2
+revision=3
 build_style=gnu-configure
-configure_args="--with-systemdsystemunitdir=/usr/lib/systemd/system --enable-yesterday --enable-install-cron --enable-install-isag"
+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"