Version bump #389429 by poncho.
authorMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2011 21:00:23 +0000 (21:00 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2011 21:00:23 +0000 (21:00 +0000)
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64

sys-apps/irqbalance/ChangeLog
sys-apps/irqbalance/files/irqbalance-1.0-build.patch [new file with mode: 0644]
sys-apps/irqbalance/irqbalance-1.0.ebuild [new file with mode: 0644]
sys-apps/irqbalance/metadata.xml

index 0cf2703684ed51edb89394d27ea9d0d08165b717..a0de96716d4926c49fc9876aa1e9d897a934ccec 100644 (file)
@@ -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.27 2011/01/21 15:25:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/ChangeLog,v 1.28 2011/11/03 21:00:22 vapier Exp $
+
+*irqbalance-1.0 (03 Nov 2011)
+
+  03 Nov 2011; Mike Frysinger <vapier@gentoo.org> +irqbalance-1.0.ebuild,
+  +files/irqbalance-1.0-build.patch, metadata.xml:
+  Version bump #389429 by poncho.
 
   21 Jan 2011; Mike Frysinger <vapier@gentoo.org> irqbalance-0.56.ebuild:
   Depend on glib by SLOT rather than version #352209 by Jan Psota.
diff --git a/sys-apps/irqbalance/files/irqbalance-1.0-build.patch b/sys-apps/irqbalance/files/irqbalance-1.0-build.patch
new file mode 100644 (file)
index 0000000..e0930d0
--- /dev/null
@@ -0,0 +1,16 @@
+http://code.google.com/p/irqbalance/issues/detail?id=8
+http://code.google.com/p/irqbalance/issues/detail?id=13
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -25,7 +25,9 @@
+  
+ INCLUDES = -I${top_srcdir} 
+ LIBS = $(CAPNG_LDADD) $(GLIB_LIBS) -lnuma -lm
+-AM_CFLAGS = -g -Os -W -Wall -Wshadow -Wformat -Wundef $(GLIB_CFLAGS) -D_GNU_SOURCE
++AM_CFLAGS = -W -Wall -Wshadow -Wformat -Wundef
++AM_CPPFLAGS = $(GLIB_CFLAGS) -D_GNU_SOURCE
++dist_man_MANS = irqbalance.1
+ noinst_HEADERS = bitmap.h constants.h cpumask.h irqbalance.h non-atomic.h \
+       types.h
+ sbin_PROGRAMS = irqbalance
diff --git a/sys-apps/irqbalance/irqbalance-1.0.ebuild b/sys-apps/irqbalance/irqbalance-1.0.ebuild
new file mode 100644 (file)
index 0000000..91cf1a3
--- /dev/null
@@ -0,0 +1,47 @@
+# 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.ebuild,v 1.1 2011/11/03 21:00:22 vapier Exp $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system"
+HOMEPAGE="http://www.irqbalance.org/"
+SRC_URI="http://irqbalance.googlecode.com/files/${P}.tbz2"
+
+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"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-build.patch
+       mv cap-ng.m4 acinclude.m4 || die
+       if ! use numa ; then
+               echo 'static inline int numa_available(void) { return -1; }' > numa.h
+               sed -i 's:-lnuma::' Makefile.am || die
+       fi
+       eautoreconf
+}
+
+src_configure() {
+       export ac_cv_lib_numa_numa_run_on_node=$(usex numa)
+       econf \
+               --sbindir=/sbin \
+               $(use_with caps libcap-ng)
+}
+
+src_install() {
+       emake install DESTDIR="${D}" || die
+       newinitd "${FILESDIR}"/irqbalance.init-0.55-r2 irqbalance || die
+       newconfd "${FILESDIR}"/irqbalance.confd irqbalance
+}
index 96a2d586367db7ac21a29fd459fdc264e9bba260..d6bcab76836f0966ebc1d69928fb26cc4de3dcb6 100644 (file)
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 <herd>base-system</herd>
+<use>
+ <flag name='numa'>Support balancing IRQs across NUMA nodes</flag>
+</use>
 </pkgmetadata>