summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-05 17:59:25 +0000
committerMike Frysinger <vapier@gentoo.org>2011-11-05 17:59:25 +0000
commitd6b8ba8f4f52d7a8b6e1e185af88beb3d031e5df (patch)
treea2165b92ffe25e94c61d71795ef980260c75396b /sys-apps/irqbalance
parentalpha/arm/ia64/sh/sparc stable wrt #387163 (diff)
downloadgentoo-2-d6b8ba8f4f52d7a8b6e1e185af88beb3d031e5df.tar.gz
gentoo-2-d6b8ba8f4f52d7a8b6e1e185af88beb3d031e5df.tar.bz2
gentoo-2-d6b8ba8f4f52d7a8b6e1e185af88beb3d031e5df.zip
Version bump, and improve init.d #383955 by Pacho Ramos.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r--sys-apps/irqbalance/ChangeLog8
-rw-r--r--sys-apps/irqbalance/files/irqbalance.confd-119
-rwxr-xr-xsys-apps/irqbalance/files/irqbalance.init14
-rw-r--r--sys-apps/irqbalance/irqbalance-1.0.2.ebuild33
4 files changed, 67 insertions, 7 deletions
diff --git a/sys-apps/irqbalance/ChangeLog b/sys-apps/irqbalance/ChangeLog
index c304b12604f5..a84a872ad614 100644
--- a/sys-apps/irqbalance/ChangeLog
+++ b/sys-apps/irqbalance/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/irqbalance
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/ChangeLog,v 1.29 2011/11/04 08:43:45 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/ChangeLog,v 1.30 2011/11/05 17:59:25 vapier Exp $
+
+*irqbalance-1.0.2 (05 Nov 2011)
+
+ 05 Nov 2011; Mike Frysinger <vapier@gentoo.org> +files/irqbalance.confd-1,
+ +irqbalance-1.0.2.ebuild, files/irqbalance.init:
+ Version bump, and improve init.d #383955 by Pacho Ramos.
*irqbalance-1.0.1 (04 Nov 2011)
diff --git a/sys-apps/irqbalance/files/irqbalance.confd-1 b/sys-apps/irqbalance/files/irqbalance.confd-1
new file mode 100644
index 000000000000..2761cfcd3596
--- /dev/null
+++ b/sys-apps/irqbalance/files/irqbalance.confd-1
@@ -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/sys-apps/irqbalance/files/irqbalance.init b/sys-apps/irqbalance/files/irqbalance.init
index 18b051931238..4db8030f4a43 100755
--- a/sys-apps/irqbalance/files/irqbalance.init
+++ b/sys-apps/irqbalance/files/irqbalance.init
@@ -1,23 +1,25 @@
#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2011 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.3 2007/01/21 19:07:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init,v 1.4 2011/11/05 17:59:25 vapier Exp $
depend() {
need localmount
after bootmisc
}
+ssd() {
+ start-stop-daemon --exec /sbin/irqbalance "$@"
+}
+
start() {
ebegin "Starting irqbalance"
- start-stop-daemon --start --exec /sbin/irqbalance \
- --pidfile /var/run/irqbalance.pid
+ ssd --start -- ${IRQBALANCE_OPTS}
eend $?
}
stop() {
ebegin "Stopping irqbalance"
- start-stop-daemon --stop --exec /sbin/irqbalance \
- --pidfile /var/run/irqbalance.pid
+ ssd --stop
eend $?
}
diff --git a/sys-apps/irqbalance/irqbalance-1.0.2.ebuild b/sys-apps/irqbalance/irqbalance-1.0.2.ebuild
new file mode 100644
index 000000000000..2384aefc6e0c
--- /dev/null
+++ b/sys-apps/irqbalance/irqbalance-1.0.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/irqbalance-1.0.2.ebuild,v 1.1 2011/11/05 17:59:25 vapier Exp $
+
+EAPI="2"
+
+DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system"
+HOMEPAGE="http://www.irqbalance.org/"
+SRC_URI="http://irqbalance.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="caps numa"
+
+RDEPEND="dev-libs/glib:2
+ caps? ( sys-libs/libcap-ng )
+ numa? ( sys-process/numactl )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_configure() {
+ econf \
+ --sbindir=/sbin \
+ $(use_with caps libcap-ng) \
+ $(use_enable numa)
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ newinitd "${FILESDIR}"/irqbalance.init irqbalance || die
+ newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance
+}