diff options
| author | Francesco Colista <francesco.colista@gmail.com> | 2012-05-14 13:16:13 +0000 |
|---|---|---|
| committer | Francesco Colista <francesco.colista@gmail.com> | 2012-05-14 13:16:13 +0000 |
| commit | f57956e9ff416255b5b2f5756bd9bee9535130d3 (patch) | |
| tree | c623975b33069c698496f7a2bad457dd975e3593 /testing | |
| parent | f5b8f2728a2c64c02f4e106c682ab58060cf72ae (diff) | |
| parent | d578a772710f026b67d096d1280934b195fe837a (diff) | |
| download | aports-f57956e9ff416255b5b2f5756bd9bee9535130d3.tar.bz2 aports-f57956e9ff416255b5b2f5756bd9bee9535130d3.tar.xz | |
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/irqbalance/APKBUILD | 44 | ||||
| -rw-r--r-- | testing/irqbalance/irqbalance.confd | 19 | ||||
| -rw-r--r-- | testing/irqbalance/irqbalance.initd | 25 |
3 files changed, 88 insertions, 0 deletions
diff --git a/testing/irqbalance/APKBUILD b/testing/irqbalance/APKBUILD new file mode 100644 index 0000000000..18db6b8795 --- /dev/null +++ b/testing/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/testing/irqbalance/irqbalance.confd b/testing/irqbalance/irqbalance.confd new file mode 100644 index 0000000000..2761cfcd35 --- /dev/null +++ b/testing/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/testing/irqbalance/irqbalance.initd b/testing/irqbalance/irqbalance.initd new file mode 100644 index 0000000000..11b18a379a --- /dev/null +++ b/testing/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 $? +} |
