From 4fe5f68da2fb25a78a42ddf79d8752e03005fcfb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 21 Aug 2014 09:30:54 +0200 Subject: [PATCH] rtkit: added systemd build option. --- srcpkgs/rtkit/template | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/srcpkgs/rtkit/template b/srcpkgs/rtkit/template index d859c49e45a..099cff5acb3 100644 --- a/srcpkgs/rtkit/template +++ b/srcpkgs/rtkit/template @@ -1,9 +1,8 @@ # Template file for 'rtkit' pkgname=rtkit version=0.11 -revision=8 +revision=9 build_style=gnu-configure -configure_args="LIBS=-lrt --with-systemdsystemunitdir=/usr/lib/systemd/system" short_desc="Realtime Policy and Watchdog Daemon" maintainer="Juan RP " license="BSD, GPL-2" @@ -16,9 +15,16 @@ makedepends="dbus-devel libcap-devel" system_accounts="rtkit" rtkit_homedir="/proc" +build_options="systemd" +if [ "$build_option_systemd" ]; then + configure_args="--with-systemdsystemunitdir=/usr/lib/systemd/system" +fi + post_install() { # DBus configuration vinstall ${FILESDIR}/org.freedesktop.RealtimeKit1.xml 644 usr/share/dbus-1/interfaces - # ControlGroup is obsolete since systemd>=205. - sed -e '/^ControlGroup.*/d' -i ${DESTDIR}/usr/lib/systemd/system/rtkit-daemon.service + if [ "$build_option_systemd" ]; then + # ControlGroup is obsolete since systemd>=205. + sed -e '/^ControlGroup.*/d' -i ${DESTDIR}/usr/lib/systemd/system/rtkit-daemon.service + fi }