void-packages/srcpkgs/rtkit/template

31 lines
944 B
Text
Raw Normal View History

2010-11-19 21:23:07 +00:00
# Template file for 'rtkit'
pkgname=rtkit
2012-08-10 04:04:32 +00:00
version=0.11
2014-08-21 07:30:54 +00:00
revision=9
build_style=gnu-configure
2010-11-19 21:23:07 +00:00
short_desc="Realtime Policy and Watchdog Daemon"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-08 16:36:31 +00:00
license="BSD, GPL-2"
2012-07-09 16:25:11 +00:00
homepage="http://git.0pointer.de/?p=rtkit.git"
2012-08-10 04:04:32 +00:00
distfiles="http://0pointer.de/public/$pkgname-$version.tar.xz"
checksum=68859108cff6410901502b58365eb7607da37110a06b837762f771735f58acd0
2013-05-15 07:47:26 +00:00
hostmakedepends="pkg-config"
makedepends="dbus-devel libcap-devel"
system_accounts="rtkit"
rtkit_homedir="/proc"
2010-11-19 21:23:07 +00:00
2014-08-21 07:30:54 +00:00
build_options="systemd"
if [ "$build_option_systemd" ]; then
configure_args="--with-systemdsystemunitdir=/usr/lib/systemd/system"
fi
post_install() {
2010-11-19 21:23:07 +00:00
# DBus configuration
2013-05-15 07:47:26 +00:00
vinstall ${FILESDIR}/org.freedesktop.RealtimeKit1.xml 644 usr/share/dbus-1/interfaces
2014-08-21 07:30:54 +00:00
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
2010-11-19 21:23:07 +00:00
}