diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-03 21:00:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-03 21:00:23 +0000 |
commit | 3415cbcaaff67c137d0624deb3512e9eeaaa50d0 (patch) | |
tree | aeba634bf23371f80c7f037c53aef2a37af1664b /sys-apps/irqbalance | |
parent | Version bump, adds file globbing to paxctl-ng (diff) | |
download | historical-3415cbcaaff67c137d0624deb3512e9eeaaa50d0.tar.gz historical-3415cbcaaff67c137d0624deb3512e9eeaaa50d0.tar.bz2 historical-3415cbcaaff67c137d0624deb3512e9eeaaa50d0.zip |
Version bump #389429 by poncho.
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r-- | sys-apps/irqbalance/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance-1.0-build.patch | 16 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.0.ebuild | 47 | ||||
-rw-r--r-- | sys-apps/irqbalance/metadata.xml | 3 |
4 files changed, 73 insertions, 1 deletions
diff --git a/sys-apps/irqbalance/ChangeLog b/sys-apps/irqbalance/ChangeLog index 0cf2703684ed..a0de96716d49 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.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 index 000000000000..e0930d01f1e8 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance-1.0-build.patch @@ -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 index 000000000000..91cf1a32fd14 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.ebuild @@ -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 +} diff --git a/sys-apps/irqbalance/metadata.xml b/sys-apps/irqbalance/metadata.xml index 96a2d586367d..d6bcab76836f 100644 --- a/sys-apps/irqbalance/metadata.xml +++ b/sys-apps/irqbalance/metadata.xml @@ -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> |