diff options
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r-- | sys-apps/irqbalance/Manifest | 14 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance-1.2.0-tinfo.patch | 32 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.confd-1 | 19 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.init.3 | 27 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.init.4 | 20 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.service.1 | 8 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild | 48 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.1.0.ebuild | 56 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.2.0.ebuild | 63 | ||||
-rw-r--r-- | sys-apps/irqbalance/metadata.xml | 15 |
10 files changed, 302 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest new file mode 100644 index 000000000000..7f35b1e4750a --- /dev/null +++ b/sys-apps/irqbalance/Manifest @@ -0,0 +1,14 @@ +AUX irqbalance-1.2.0-tinfo.patch 894 SHA256 9e6672fd1a308eefed1a694a06441caaade3508ea52c3dba4bd2751b49332a9a SHA512 28306e3af22e039edfad83e9aa37539b5491daf2ba663dd6bbe6419a369c1f4c8bf10025ce938495973415cee288a4bca22586d26fa5f66f57ee9fb234e5b7ac WHIRLPOOL 5313d95e0b07474e11dc53c0f65d693ed2fe8b28ebfe328c01440b375f591b06f2cfbbec0624c510e25225dc4283bdefc6187c86621cda2eb0e59fae79c015e2 +AUX irqbalance.confd-1 577 SHA256 98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413 SHA512 90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c WHIRLPOOL 886d2d5ea0a4a3de4243bebd8bd15b4a4eafd1d22cf94549fcccf02c8b8cb536b013572327c08fd149c475085dd5059dc97cb5a5a13662cc1443b1e4133d88e8 +AUX irqbalance.init.3 670 SHA256 99e6df956b06727631580cf3794c1325b09f4a2daf7c3033701726da06a1c0e9 SHA512 88c3902015c6ce2d0ed2f1e41b0239c3ff68a14c4e1879c9670111d5ed7f7e37dc61915f109998527b74331ced06e48d42fc0b5c9185c2280f116706ae108b7e WHIRLPOOL dda4f7544bed9f4038e4c484890f8eff29eae9c73a17d5e8ba7e31525573f1203c4082c76059188dff7a759217d00769b76fe7533ac961ac0508fd6692403a44 +AUX irqbalance.init.4 524 SHA256 dfbc374988068bf5a3302577a7327d8a92d4007a9aee755879e244a10d50e98f SHA512 3b438b142915139d403f6162271e00807db6f0e9432798b3f2955e798dd58ecb07a6c8920cc85032e65cc5a6d4c16fc65402119d6334920ea6715c4f918f6cbc WHIRLPOOL 06dfba53595a8fd48b3dc8436f9e03f153e63c49c62d22b8be1b94c79c649b730142675cf01ab9e48df06dff7aa9c46a8a1be5656f876fee985061a230dca5e8 +AUX irqbalance.service.1 135 SHA256 4e2ed8291b511a25d5621d848e0e1944bb82e14acba4d2b9596d2bcb28ad8475 SHA512 c0ed7187eddef54645196d0ff072445decfa3ce358aa3d473aac685b55a2f2580bf45bab34b68ccbc2035a3db8597af8cc1f8e53981f5afe7d63f6f7f5683cbd WHIRLPOOL a35e0517e4bb5788f7654191691b1c85a9d1f1b2aac3ea439dadc653accfe65275f4a58c889c263af68a81d8426e1fde6a854d04d0ed5932eb28527e52b9e035 +DIST irqbalance-1.0.9.tar.gz 44661 SHA256 f1b8115948bb9f0bc36b9d7143ee8be751a294bc189d311408e753acc37169c3 SHA512 ef3ce9eeec11ec86291e2e3cd701e782ee1fb4ba256e2ea5ea0ea04b373f97ff2eae0a44919127c4dbd7fd805e9e3df3a5e62a3528e4d1c9bbab4db39186b5c5 WHIRLPOOL 7bed3d8dd868b4ad697b997143a59b9101815d0bfc08d1d594248c1fcfeaec22045fbe779605583a89aa7d2c8a54e079317bf8a6e4ef8135fc887e2d1518e706 +DIST irqbalance-1.1.0.tar.gz 46742 SHA256 91506e638b03bf27cf5da7dc250d58a753ce8a0288a20265fc7ff0266040706b SHA512 66abf71b87e25df190417afbf9da24d826d817de3c0ebdc686e3ae56ac131b2f9586092ba67e5f9c749cb139fbf2faaa2af2ef30700955a5b347f1964f61bf6b WHIRLPOOL 581cb27ae79648d69200ea2746cabf6dde8c865fd3afc80d87a0c43a150b40b6ad5e22ecd15fef5cc9aff166055b568e6217554c08b4767757f0534a998f35be +DIST irqbalance-1.2.0.tar.gz 55618 SHA256 0efe5d2a0947b54d89c7196a48eca9b3b33c80bc15964e4226a0f7d3fd9535b2 SHA512 02510d0d4dc069570b5f98f3b8191384593a6ed9a88c65c87f5a4261f375c291d95c401b01c03ef9d80834925dd124a088f56ac90c5f290815e26337d4f61c1b WHIRLPOOL 32cdb9d91310012f729f45643b4d105a9840fb88fa55533d48b9a93848a6f3e7f273f9aa9957add8b5ddf4444f5d620da9accb9d79ad237126029176942a37cc +EBUILD irqbalance-1.0.9-r1.ebuild 1101 SHA256 6bf67da6f670023462690eb73c8a1a64857910e9392bfe635a180f7c24fd08e7 SHA512 2678b9c3a2c6153da80f5d57544c830e77a757a1a7003097f69ae197da481b2de800feaef0c39fc3d44e7b9c033beb7bddb3c9f1c3b39872b677e6fa3463c50c WHIRLPOOL cbc9636b0e511f3e54bac00b4f654a0d5f832f6f6a409421eaa6cb07b2edfbeb2645af25751ae9644858d19491b6687385f78d0c36f7a6113feb25b2e82ae58e +EBUILD irqbalance-1.1.0.ebuild 1340 SHA256 6e7ebda5dca34832e2610b5375a73cf34bccae71840b46eebb0926dedf588049 SHA512 0fa381cf76a3d8f3aaac20be25b475e224f33a96b150900d03e92f31699589a70ac39d5a31dee40f85aad851fec15292b4d9c44862ff0a9487ace4ed91f57ec7 WHIRLPOOL a43fd8207fba5cfc667114f80f7abd7e33ac3ac94356554ac2707d88ecfee61e2ff671eb8fdde5c1ceb2bc874b624525923f14c8c07d6644518523be74172ea4 +EBUILD irqbalance-1.2.0.ebuild 1388 SHA256 83eb41c16ce7a53b647e5f9dc9a41a4b8e49daac4a3d9bcff82aabb1adf52cfd SHA512 b3685c9dd1bbf964a65f26c6793c0f50a2c481c73984a11a03ba6f20e12a15d1e9af7b6ae85cfe0fd8f40ccd0140e442a62740120ae05fc32d58c1fa43340a21 WHIRLPOOL 08f276a6031021bb47a123986041e0593ac67443c0ef74e17b9f47f47341b3223bb546bf91f3ad2a4087e9e5090c672761a2307a15f213661f332fa25bdd8c61 +MISC ChangeLog 5156 SHA256 066f9f0555b05d59f3c796b7d7e672afbff4107b2d8cadd7f5fa2154e868ea63 SHA512 ce1aeaab29d306a13552b2e735811d4a6699664a2de75a8e8b82c5520968b3c9ae8f2a26aebea7a8ab6c23defddaf64321b0116fd1b58425be9f8ef326da21c8 WHIRLPOOL deb5b33f6a56625ff896560c86fac96f7ec41803f8415a43912c1018f2b975d3ca523f3d354275d01825c1c6657657cbbb6d9bb603cf9d3bfc684944e52a41c6 +MISC ChangeLog-2015 9065 SHA256 ceeb2159e1389a447b9cb2d2b8dde276a4fa0858a91242daeb96767bb21e0cf8 SHA512 87514833057939bf7bd4b95c2017b329d27620da520747c8ed5186ed35ee575e25ed85c9f0be07cbf43422999afe07f34e16a7c6ddc8c26e6d87ec0d891283cc WHIRLPOOL c40ae26a8ca02e7fe1f4654249a7d4f546d3af5023c3abdbcdcce66b0ceaedd7b4a55ce540e78a037341b5d40e86f573794106497a0e98a1032a5e322a9d05c0 +MISC metadata.xml 470 SHA256 4bf424ba117252f434eccf260c4f2e0f3b539615935562d89658802e8a6521ad SHA512 287a8da55452b17215da39aed9dfaf52090f5c3faefcc07df2c713e29cbfc13f810b4dc72029a21741d36ef51edf8c5598f572e20fb635e105d708848996730a WHIRLPOOL 4d935fececa3c7abbd8dad3e6708e959d95a6ed934f4eb680e56c045cfb5b5be8b7d79d349247f88b97d39321389a1927512d1ebca0dd2d7fb9054105d93b67d diff --git a/sys-apps/irqbalance/files/irqbalance-1.2.0-tinfo.patch b/sys-apps/irqbalance/files/irqbalance-1.2.0-tinfo.patch new file mode 100644 index 000000000000..20716542b6dd --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance-1.2.0-tinfo.patch @@ -0,0 +1,32 @@ +From 287d50594fe624bdb4400611d0dbecec6ff38a41 Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Wed, 1 Mar 2017 17:11:42 +0100 +Subject: [PATCH] Prefer pkgconfig to check for ncursesw. + +That way we take possible separate tinfo lib into account. +--- + configure.ac | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 17b879a..77d8aa4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -26,7 +26,13 @@ AC_CHECK_FUNCS(getopt_long) + AC_CHECK_LIB(numa, numa_available) + AC_CHECK_LIB(m, floor) + +-AC_CHECK_LIB(curses, mvprintw) ++PKG_CHECK_MODULES([NCURSESW], [ncursesw], [has_ncursesw=yes], [AC_CHECK_LIB(curses, mvprintw)]) ++AS_IF([test "x$has_ncursesw" = "xyes"], [ ++ AC_SUBST([NCURSESW_CFLAGS]) ++ AC_SUBST([NCURSESW_LIBS]) ++ LIBS="$LIBS $NCURSESW_LIBS" ++ AC_SUBST([LIBS]) ++]) + + AC_C_CONST + AC_C_INLINE +-- +2.12.0 + 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.3 b/sys-apps/irqbalance/files/irqbalance.init.3 new file mode 100644 index 000000000000..9ed16416510d --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.3 @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +command="/usr/sbin/irqbalance" +command_args="${IRQBALANCE_OPTS}" + +check_sysfs() { + if grep -q MSI /proc/interrupts 2>/dev/null && \ + test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then + eerror "MSI interrupts found in /proc/interrupts but none found in sysfs." + eerror "You need to update your kernel." + return 1 + fi +} + +start() { + check_sysfs || return 1 + ebegin "Starting irqbalance" + start-stop-daemon --exec ${command} --start -- ${IRQBALANCE_OPTS} + eend $? +} diff --git a/sys-apps/irqbalance/files/irqbalance.init.4 b/sys-apps/irqbalance/files/irqbalance.init.4 new file mode 100644 index 000000000000..1fb9eeb11f4a --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.4 @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +command="/usr/sbin/irqbalance" +command_args="${IRQBALANCE_OPTS}" + +start_pre() { + if grep -q MSI /proc/interrupts 2>/dev/null && \ + test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then + eerror "MSI interrupts found in /proc/interrupts but none found in sysfs." + eerror "You need to update your kernel." + return 1 + fi +} diff --git a/sys-apps/irqbalance/files/irqbalance.service.1 b/sys-apps/irqbalance/files/irqbalance.service.1 new file mode 100644 index 000000000000..af7a979a25d0 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.service.1 @@ -0,0 +1,8 @@ +[Unit] +Description=CPU Interrupt Balancer + +[Service] +ExecStart=/usr/sbin/irqbalance --foreground + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild b/sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild new file mode 100644 index 000000000000..6d9972b6a36b --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="caps +numa selinux" + +CDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_newunit "${FILESDIR}"/irqbalance.service.1 irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.1.0.ebuild b/sys-apps/irqbalance/irqbalance-1.1.0.ebuild new file mode 100644 index 000000000000..0673ae2ab01a --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="caps +numa selinux" + +CDEPEND=" + dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_prepare() { + # Follow systemd policies + # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy + sed -i -e 's/ $IRQBALANCE_ARGS//' misc/irqbalance.service || die + sed -i -e '/EnvironmentFile/d' misc/irqbalance.service || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit misc/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.2.0.ebuild b/sys-apps/irqbalance/irqbalance-1.2.0.ebuild new file mode 100644 index 000000000000..5a860709ee8d --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.2.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="caps +numa selinux" + +CDEPEND=" + dev-libs/glib:2 + sys-libs/ncurses:0=[unicode] + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +PATCHES=( + "${FILESDIR}/${P}-tinfo.patch" +) + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_prepare() { + # Follow systemd policies + # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy + sed \ + -e 's/ $IRQBALANCE_ARGS//' \ + -e '/EnvironmentFile/d' \ + -i misc/irqbalance.service || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit misc/irqbalance.service +} diff --git a/sys-apps/irqbalance/metadata.xml b/sys-apps/irqbalance/metadata.xml new file mode 100644 index 000000000000..8aa1af6dd709 --- /dev/null +++ b/sys-apps/irqbalance/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +<use> + <flag name="numa">Support balancing IRQs across NUMA nodes</flag> +</use> +<upstream> + <remote-id type="google-code">irqbalance</remote-id> + <remote-id type="github">Irqbalance/irqbalance</remote-id> +</upstream> +</pkgmetadata> |