diff options
author | Stuart Shelton <stuart@shelton.me> | 2017-07-30 20:39:10 +0100 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2017-07-30 20:39:10 +0100 |
commit | 18fc8940a295f821c685d13d7abed6656129fc7c (patch) | |
tree | cae30d2059a4706560295f79c0233c4e3a9f4e87 /sys-apps/irqbalance | |
parent | Update dev-lang/python-2.7.12 (diff) | |
download | srcshelton-18fc8940a295f821c685d13d7abed6656129fc7c.tar.gz srcshelton-18fc8940a295f821c685d13d7abed6656129fc7c.tar.bz2 srcshelton-18fc8940a295f821c685d13d7abed6656129fc7c.zip |
Add sys-apps/irqbalance-1.0.9-r1, sys-apps/irqbalance-1.1.0, sys-apps/irqbalance-1.2.0
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r-- | sys-apps/irqbalance/Manifest | 10 | ||||
-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.4 | 21 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.service.1 | 8 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild | 49 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.1.0.ebuild | 58 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.2.0.ebuild | 65 |
8 files changed, 262 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest new file mode 100644 index 00000000..07c68327 --- /dev/null +++ b/sys-apps/irqbalance/Manifest @@ -0,0 +1,10 @@ +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.4 575 SHA256 13c9dcbf10bde67ce30249ccc8e98361f7ba5379a04758caf7eec186f89aff5a SHA512 f1028bee54bf32703a6315a4ffc4a84472bed0dd3ccd6c26e98f3d06001dc4b2751a581bdfdce4087b292b6c2f15a31d467b93af1ad7f0a38a8751885a66a425 WHIRLPOOL dd7f0cf6f0b5eae888a725753d5c39a5650a05df534f458d5a91b67b4bf8f046a7770b44608802a75b54b401bb7e02a5ce575088fc1e8e5b27de5a55bfeb7ab8 +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 1125 SHA256 2009c41a9d03eac39e15d91b4c7461302e840bd22f6910f1cbd3d78ca8bdd25d SHA512 1c47bdb650e6384a12ffc8dd8c655ec39ec9a115ccc65f289d3624d2964aadf3b5c55d470cc99f88dadf08ef9b1c1fc6bb203a432de5ab39bf7e6596878024df WHIRLPOOL 4a9859736f0e153e83cb23b4475bccf03bd662f8ce72fabdd56b4b7fabe254585dd029b153405330d6e788cec18661a3deb67db603099c987ebf66a1902069c9 +EBUILD irqbalance-1.1.0.ebuild 1392 SHA256 379cb1781a05fde364e3dda5ea2f7ae9dfb642420ee02cbc8f208af4c96a6a98 SHA512 30ef7f736ac693f77ba2557350392d7ac83fe30480006acc08085d814ede937a30aed4be8b7c053fda76c4d1d4f720ed3e6494ece1318bb72b62a22c6b487aec WHIRLPOOL b4378107351a2d8e4ac49ad664b3dc79378804fcfbe275dcde53cfd81d8c179c2b726ae9555694228e8afb3ee6ecf0a753777c0fec4c602f5a4c81bd1e095416 +EBUILD irqbalance-1.2.0.ebuild 1442 SHA256 5f5c31cddc82178b10f655d1138cbf0ecc61516230e71080e52ac6db40e4499e SHA512 809ad0b77f849e9ae9cc10d792404e8a73ed4269625614041377da0b1344dfaaed241a7f652b8129352464087c009cb8be679242b85c53d1799294242587f9fb WHIRLPOOL fcb036d16839fc067ee2ba16b6002422f8df9bb7b6401cb8a8c5d9dde386716eeb98b931644afbdaa539a06f00043a2700a4a2062945d86bc4a063bacb6c5128 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 00000000..20716542 --- /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 00000000..2761cfcd --- /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.4 b/sys-apps/irqbalance/files/irqbalance.init.4 new file mode 100644 index 00000000..df29627a --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.4 @@ -0,0 +1,21 @@ +#!/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 +} + +pidfile="/var/run/${RC_SVCNAME}.pid" +command="/usr/sbin/irqbalance" +command_args="-s ${pidfile} ${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 00000000..af7a979a --- /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 00000000..de7e9922 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.9-r1.ebuild @@ -0,0 +1,49 @@ +# 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 systemd" + +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.4 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + use systemd && 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 00000000..131af7b2 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.1.0.ebuild @@ -0,0 +1,58 @@ +# 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 systemd" + +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() { + if use systemd; then + # 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 + fi + 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 + use systemd && 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 00000000..35c8b0da --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.2.0.ebuild @@ -0,0 +1,65 @@ +# 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 systemd" + +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() { + if use systemd; then + # 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 + fi + 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 + use systemd && systemd_dounit misc/irqbalance.service +} |