31 lines
984 B
Bash
31 lines
984 B
Bash
# Template file for 'rtkit'
|
|
pkgname=rtkit
|
|
version=0.11
|
|
revision=10
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin"
|
|
short_desc="Realtime Policy and Watchdog Daemon"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD, GPL-2"
|
|
homepage="http://git.0pointer.de/?p=rtkit.git"
|
|
distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
|
|
checksum=68859108cff6410901502b58365eb7607da37110a06b837762f771735f58acd0
|
|
|
|
hostmakedepends="pkg-config"
|
|
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
|
|
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
|
|
}
|