summaryrefslogtreecommitdiff
path: root/sys-apps/irqbalance
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-15 08:46:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-15 08:46:53 +0000
commit17e82681588151572e451b0daf68fd568531d3e4 (patch)
treee45eeba1fd9dd2d998d6d00e05f5f70a1dc8da15 /sys-apps/irqbalance
parent0ceac43bb67585fd9e439df53b32259ce1ae099e (diff)
gentoo auto-resync : 15:12:2023 - 08:46:53
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r--sys-apps/irqbalance/Manifest2
-rw-r--r--sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch21
-rw-r--r--sys-apps/irqbalance/irqbalance-1.9.3-r1.ebuild78
3 files changed, 101 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest
index 7e5d8ebd6f3b..0f090062453a 100644
--- a/sys-apps/irqbalance/Manifest
+++ b/sys-apps/irqbalance/Manifest
@@ -1,7 +1,9 @@
+AUX irqbalance-1.9.3-systemd-journal-noise.patch 800 BLAKE2B f5609765324ec7690849994f731967ff5962c133b6077a1ecf7d6bba6e0346f82c0c162c1f3197cb08839cf7a860635c05243327b5c20f883f8333d44d9e6f2d SHA512 474b68515ac21e199324fb294a376ad19d81b5e35df0b8278c3d8605e87f4c07fac787d48cad7079fd031e7187ce83a689f538348b35e8e35d2eb4493d29f56d
AUX irqbalance.confd-1 577 BLAKE2B 2744f203cb1d20ec44bec2f4cd2adc92209575a4742c601f45780cc55ff44434248987c31faf6ae2205ae02b2ecfdbd914f271169cb345e403f41376e3bc48b8 SHA512 90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c
AUX irqbalance.init.4 555 BLAKE2B a90aa453f6d59ec8da954d47a386cfcc2395e36b3b7f9b0cef74714e348e23b091aa00d8db586593e2e85a01f8fc2d97be7a8c754d44a6f5728f7e2e98393df1 SHA512 0252900f183a714f2c1c9f57bca7b26e2c2b3d12e6ca46085203b4b04aff41cc97c6a54b1f0e66b37d7f214f127633c0179cede8deee57dcc1f3635ec17c337c
DIST irqbalance-1.9.2.tar.gz 62188 BLAKE2B bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2 SHA512 d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378
DIST irqbalance-1.9.3.tar.gz 62573 BLAKE2B 0f7b3b62c3784c009c6829078cdf5496910ec3f3c8c13de5f0dfbaed510fb5e3dab4953810c646ece962ef130af3aaa0bb9fa8c2e013485751cc661c9458e87a SHA512 5638fb59f5a59901333b90289ee70c960df0e2b9e55731805397797b8e630bb3703e36a4dfd05bf01de49334dab9d6fc95bde4967eeab131534950d281103fa1
EBUILD irqbalance-1.9.2.ebuild 1448 BLAKE2B 873871e39994b16a809e557f94f5cccb41022b0ebc779897c419a05b055bcb145c4f6b6df2eaae9deec39af375de499f1e9ec4c7ff0664a0decb20f782bbef2e SHA512 61d65474c0b7921ff7b9407efe513722d0ff7045d3bd7fc71892d325189f53974dc1d58e9c98fac516ca8624a39c2029dcdc7bf6a17eff05f50e4ae98f561f05
+EBUILD irqbalance-1.9.3-r1.ebuild 1712 BLAKE2B 31e469425b9d088a447798bc30b496ee24d33390aa3b13d5518b2c8e4943cb42bb6a9d50e0c620616e48f9f49bb2e85582fa9d760ac17fd690c1b96ee296886a SHA512 f9e43c35609350f0dc01068b513f217e4aa77637abe13c4495e33e566ad657ac2de53b2d34378e088672241e5bde3946f71eaad9785955e05364d748f1e0afe5
EBUILD irqbalance-1.9.3.ebuild 1653 BLAKE2B 1b37b0e196ed251743a6bc4b868c5ee8046a4a34835b51eb52e8cdd5fc8ce6163b704925e226071af9f5d65915a3478828e93bbd9e9510ba6a2e0ad53e7ea6be SHA512 9883dc35ff51e08c1a76cca7bd70184a5f5eb5df3e6560ffc5287e691286a9a43acb8eccb8bd7fdb5d8d1db1650da086229fe1e7cf4eebc4d924ee08f6c56b13
MISC metadata.xml 643 BLAKE2B 14358d1eef80f7ac2f13ae99f4ae14be61f2f4d0ef8d9e1037ef406a609c0d9258aa463bf2519227aeaf8bf36c324cce8017215ded3838227ef8c630d7fd9216 SHA512 9d9eed0adc40b08d6a88cace8b90fe4b0a051ea49ef45ace63e9d99a86fa5993af9716700fcae4dfe93b659ea6a735be86d6a3edd851ed1e025d0e58854f516b
diff --git a/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch b/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch
new file mode 100644
index 000000000000..7cf465f62e7d
--- /dev/null
+++ b/sys-apps/irqbalance/files/irqbalance-1.9.3-systemd-journal-noise.patch
@@ -0,0 +1,21 @@
+https://github.com/Irqbalance/irqbalance/issues/281
+https://github.com/Irqbalance/irqbalance/commit/f3282f4ddc10be44e6c423de6de8db600f748f85
+
+From f3282f4ddc10be44e6c423de6de8db600f748f85 Mon Sep 17 00:00:00 2001
+From: Neil Horman <nhorman@openssl.org>
+Date: Thu, 30 Nov 2023 16:55:30 -0500
+Subject: [PATCH] filter console only output when using journal mode
+
+Fixes #281
+--- a/irqbalance.h
++++ b/irqbalance.h
+@@ -138,7 +138,8 @@ extern unsigned int log_mask;
+ #ifdef HAVE_LIBSYSTEMD
+ #define log(mask, lvl, fmt, args...) do { \
+ if (journal_logging) { \
+- sd_journal_print(lvl, fmt, ##args); \
++ if (log_mask & mask & TO_SYSLOG) \
++ sd_journal_print(lvl, fmt, ##args); \
+ if (log_mask & mask & TO_CONSOLE) \
+ printf(fmt, ##args); \
+ } else { \
diff --git a/sys-apps/irqbalance/irqbalance-1.9.3-r1.ebuild b/sys-apps/irqbalance/irqbalance-1.9.3-r1.ebuild
new file mode 100644
index 000000000000..84ae9e91d999
--- /dev/null
+++ b/sys-apps/irqbalance/irqbalance-1.9.3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools udev systemd linux-info optfeature
+
+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 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="caps +numa systemd selinux thermal tui"
+# Hangs
+RESTRICT="test"
+
+DEPEND="
+ dev-libs/glib:2
+ caps? ( sys-libs/libcap-ng )
+ numa? ( sys-process/numactl )
+ systemd? ( sys-apps/systemd:= )
+ thermal? ( dev-libs/libnl:3 )
+ tui? ( sys-libs/ncurses:=[unicode(+)] )
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+RDEPEND="
+ ${DEPEND}
+ selinux? ( sec-policy/selinux-irqbalance )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-systemd-journal-noise.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
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with caps libcap-ng)
+ $(use_enable numa)
+ $(use_with systemd)
+ $(use_enable thermal)
+ $(use_with tui irqbalance-ui)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance
+ newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance
+ systemd_dounit misc/irqbalance.service
+ udev_dorules misc/90-irqbalance.rules
+}
+
+pkg_postinst() {
+ optfeature "thermal events support (requires USE=thermal)" sys-power/thermald
+}