summaryrefslogtreecommitdiffstats
path: root/main/irqbalance
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-05-29 13:47:18 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-05-29 13:47:18 +0000
commit599d59fca9688cc11e8418ae49e0766ec96fe490 (patch)
tree463c24f2b055dc9c2310320f1d41f9cb568c568d /main/irqbalance
parent05a2c92d3ed8e3c1c3efe03d8be6dc7e03637c1c (diff)
downloadaports-599d59fca9688cc11e8418ae49e0766ec96fe490.tar.bz2
aports-599d59fca9688cc11e8418ae49e0766ec96fe490.tar.xz
testing/irqbalance: move to main
Diffstat (limited to 'main/irqbalance')
-rw-r--r--main/irqbalance/APKBUILD44
-rw-r--r--main/irqbalance/irqbalance.confd19
-rw-r--r--main/irqbalance/irqbalance.initd25
3 files changed, 88 insertions, 0 deletions
diff --git a/main/irqbalance/APKBUILD b/main/irqbalance/APKBUILD
new file mode 100644
index 000000000..18db6b879
--- /dev/null
+++ b/main/irqbalance/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=irqbalance
+pkgver=1.0.3
+pkgrel=2
+pkgdesc="Daemon that distributes interrupts over the processors"
+url="http://code.google.com/p/irqbalance/"
+arch="all"
+license="GPL"
+depends=
+depends_dev=
+makedepends="$depends_dev glib-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://irqbalance.googlecode.com/files/$pkgname-$pkgver.tar.gz
+ irqbalance.confd
+ irqbalance.initd"
+
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ return 0
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="6f246481d6295bcb9a79751c03207c96 irqbalance-1.0.3.tar.gz
+731fa9a46bc4fa380604bfb76d96d1ed irqbalance.confd
+25fb4cee9e7b6fc243c10e82c43d0d8d irqbalance.initd"
diff --git a/main/irqbalance/irqbalance.confd b/main/irqbalance/irqbalance.confd
new file mode 100644
index 000000000..2761cfcd3
--- /dev/null
+++ b/main/irqbalance/irqbalance.confd
@@ -0,0 +1,19 @@
+# /etc/conf.d/irqbalance: config file for /etc/init.d/irqbalance
+
+# Additional options to pass to irqbalance itself.
+IRQBALANCE_OPTS=""
+
+# These are envvars used by irqbalance itself, so make sure the "export"
+# is retained. For more info, please see the irqbalance manpage.
+
+# Run irqbalance once and then exit
+#export IRQBALANCE_ONESHOT="0"
+
+# Include debug messages in output
+#export IRQBALANCE_DEBUG="0"
+
+# List of cpus to not include in balancing
+#export IRQBALANCE_BANNED_CPUS=""
+
+# List of interrupts to not include in balancing
+#export IRQBALANCE_BANNED_INTERRUPTS=""
diff --git a/main/irqbalance/irqbalance.initd b/main/irqbalance/irqbalance.initd
new file mode 100644
index 000000000..11b18a379
--- /dev/null
+++ b/main/irqbalance/irqbalance.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init,v 1.5 2012/01/07 22:04:49 vapier Exp $
+
+depends() {
+ need localmount
+ after hwdrivers modules
+}
+
+ssd() {
+ start-stop-daemon --exec /usr/sbin/irqbalance "$@"
+}
+
+start() {
+ ebegin "Starting irqbalance"
+ ssd --start -- ${IRQBALANCE_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping irqbalance"
+ ssd --stop
+ eend $?
+}