irqbalance: added runit service.

This commit is contained in:
Juan RP 2014-10-13 14:03:54 +02:00
parent 1b59f28ec8
commit c155b99f23
2 changed files with 9 additions and 5 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec irqbalance -f

View File

@ -1,11 +1,12 @@
# Template file for 'irqbalance'
pkgname=irqbalance
version=1.0.7
revision=2
revision=3
build_options="systemd"
replaces="runit-void<20141013_2"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libglib-devel libcap-ng-devel libnuma-devel"
systemd_services="irqbalance.service on"
short_desc="Handholding your interrupts for power and performance"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -13,11 +14,12 @@ homepage="https://code.google.com/p/irqbalance/"
distfiles="https://github.com/Irqbalance/irqbalance/archive/v${version}.tar.gz"
checksum=8c3916780d254b74fb1c7ec22876d63ac01f1b32776d9204a604b73c8f591d2a
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
vsv ${pkgname}
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
}