rtkit: added systemd build option.
This commit is contained in:
parent
3d3c8b10f1
commit
4fe5f68da2
1 changed files with 10 additions and 4 deletions
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'rtkit'
|
# Template file for 'rtkit'
|
||||||
pkgname=rtkit
|
pkgname=rtkit
|
||||||
version=0.11
|
version=0.11
|
||||||
revision=8
|
revision=9
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="LIBS=-lrt --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
||||||
short_desc="Realtime Policy and Watchdog Daemon"
|
short_desc="Realtime Policy and Watchdog Daemon"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="BSD, GPL-2"
|
license="BSD, GPL-2"
|
||||||
|
@ -16,9 +15,16 @@ makedepends="dbus-devel libcap-devel"
|
||||||
system_accounts="rtkit"
|
system_accounts="rtkit"
|
||||||
rtkit_homedir="/proc"
|
rtkit_homedir="/proc"
|
||||||
|
|
||||||
|
build_options="systemd"
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
configure_args="--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
||||||
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# DBus configuration
|
# DBus configuration
|
||||||
vinstall ${FILESDIR}/org.freedesktop.RealtimeKit1.xml 644 usr/share/dbus-1/interfaces
|
vinstall ${FILESDIR}/org.freedesktop.RealtimeKit1.xml 644 usr/share/dbus-1/interfaces
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
# ControlGroup is obsolete since systemd>=205.
|
# ControlGroup is obsolete since systemd>=205.
|
||||||
sed -e '/^ControlGroup.*/d' -i ${DESTDIR}/usr/lib/systemd/system/rtkit-daemon.service
|
sed -e '/^ControlGroup.*/d' -i ${DESTDIR}/usr/lib/systemd/system/rtkit-daemon.service
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue