From 7f3fecbb5b871825fe9632f46659869cab6a3769 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 4 May 2024 00:00:19 +0100 Subject: gentoo auto-resync : 04:05:2024 - 00:00:19 --- sys-apps/irqbalance/Manifest | 3 +- sys-apps/irqbalance/files/irqbalance.init.5 | 22 +++++++ sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild | 80 ++++++++++++++++++++++++++ sys-apps/irqbalance/irqbalance-1.9.4.ebuild | 80 -------------------------- 4 files changed, 104 insertions(+), 81 deletions(-) create mode 100644 sys-apps/irqbalance/files/irqbalance.init.5 create mode 100644 sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild delete mode 100644 sys-apps/irqbalance/irqbalance-1.9.4.ebuild (limited to 'sys-apps/irqbalance') diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest index df7053a89a48..ea602b610eb7 100644 --- a/sys-apps/irqbalance/Manifest +++ b/sys-apps/irqbalance/Manifest @@ -2,8 +2,9 @@ AUX irqbalance-1.9.3-systemd-journal-noise.patch 800 BLAKE2B f5609765324ec769084 AUX irqbalance.confd-1 577 BLAKE2B 2744f203cb1d20ec44bec2f4cd2adc92209575a4742c601f45780cc55ff44434248987c31faf6ae2205ae02b2ecfdbd914f271169cb345e403f41376e3bc48b8 SHA512 90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c AUX irqbalance.confd-2 487 BLAKE2B 37a5d8aa38e11b6799417624451c463d2fa5a8a45fe9f2d9d5d47669f44ae318790a7204dc7581412408089bd7809ddb43e28f5508c10870ea0ac7db3d76904c SHA512 7cf4f603eba1cba6f8825768b94da0bf8d2c0197897e94e811d2295b3a069a4455417f6e03226388b422e785e83b51ddec52bf4c038c235fd1182c5dfa9495fc AUX irqbalance.init.4 555 BLAKE2B a90aa453f6d59ec8da954d47a386cfcc2395e36b3b7f9b0cef74714e348e23b091aa00d8db586593e2e85a01f8fc2d97be7a8c754d44a6f5728f7e2e98393df1 SHA512 0252900f183a714f2c1c9f57bca7b26e2c2b3d12e6ca46085203b4b04aff41cc97c6a54b1f0e66b37d7f214f127633c0179cede8deee57dcc1f3635ec17c337c +AUX irqbalance.init.5 554 BLAKE2B bf30637a0840299457231548edbbbb9d7c28c83ed16743bd57af5c2b46cf707635b83bd7ea74675312db5cf32ff54a1ba6fc36bdcbaf319236b1ec98a735b566 SHA512 aaa2e9d278a02170ef5dd44be86ca8480b49d3f6368b26c54f547f1f4a0fa3ec60780e462b18a9248477de5f5eaa44462a100f79511d7506dcdee38a557641a5 DIST irqbalance-1.9.3.tar.gz 62573 BLAKE2B 0f7b3b62c3784c009c6829078cdf5496910ec3f3c8c13de5f0dfbaed510fb5e3dab4953810c646ece962ef130af3aaa0bb9fa8c2e013485751cc661c9458e87a SHA512 5638fb59f5a59901333b90289ee70c960df0e2b9e55731805397797b8e630bb3703e36a4dfd05bf01de49334dab9d6fc95bde4967eeab131534950d281103fa1 DIST irqbalance-1.9.4.tar.gz 63005 BLAKE2B 6b8bf28e11686713ca9c00a1b98c5f3afb38c26e919a9d7de126145d12c4e8e23e8ea00b2534bb0339e5990ed5cb642291df975ba9868835e9c4e8a23c98f2ef SHA512 abdcac9dccabb18ae644b73dc2a8528c03279811c1f9182a5a5b0af43b30c5982d7bb14e79d4430b5d4f2cea8e17115e6038851c74de1ff3bdfc4e303392479a EBUILD irqbalance-1.9.3-r1.ebuild 1708 BLAKE2B 63b23313c3c05017af1c180244422f4c305f441237c9fa4f741de2e3eaa916e63076af87ce6eea8b85dc2df20a5e2f2422b404477a8aac7668d88b7eae0a7612 SHA512 629e0132c02f68ca162e80f7696ba72efc5f1f872ec8deb08f2a7219e26fa852cd3027affdc2205599b1a2d4807959e27c737962956a4ba22e756f5842b1148f -EBUILD irqbalance-1.9.4.ebuild 1766 BLAKE2B 7e6e99fe05063fbba7a89b2d29f5e0df8887c592077392a36974b995928b305cbbe62dfa7a8da13634f51daf9d6105877dd5ba6a9b69368eaeb33f20886d3c3e SHA512 83b60c7eaeebb4337aae2dbb60090faf0eb553bbecacc5001dd6d8d5b8d09929b999156dcb5401cc732bfd403f88eb17897423f35ada2c0bb720feb6c6158e2e +EBUILD irqbalance-1.9.4-r1.ebuild 1766 BLAKE2B d32d6eec7ffa636f9ac2ed82e6b0feec0f212366514d8b66147a6bd973196fba2c82871a1705b7c9eb45530bd1602e05034b16ec44eda5050eeb7d00db2d37b2 SHA512 644ad7235e964984a9cd7c07f32c021b3ab7e0a6a54902516dcdeb4a2bcb0fc950a38abbbe303e0063e6716cc203bbdba729129682eea1c794c3d877094478ad MISC metadata.xml 643 BLAKE2B 14358d1eef80f7ac2f13ae99f4ae14be61f2f4d0ef8d9e1037ef406a609c0d9258aa463bf2519227aeaf8bf36c324cce8017215ded3838227ef8c630d7fd9216 SHA512 9d9eed0adc40b08d6a88cace8b90fe4b0a051ea49ef45ace63e9d99a86fa5993af9716700fcae4dfe93b659ea6a735be86d6a3edd851ed1e025d0e58854f516b diff --git a/sys-apps/irqbalance/files/irqbalance.init.5 b/sys-apps/irqbalance/files/irqbalance.init.5 new file mode 100644 index 000000000000..511e4fee023a --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.5 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +command="/usr/bin/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 + + checkpath -q -d /run/${SVCNAME} +} diff --git a/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild new file mode 100644 index 000000000000..ba4b5355945e --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson linux-info optfeature systemd udev + +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" +S="${WORKDIR}"/${P}/contrib + +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 ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_prepare() { + default + + # Follow systemd policies + # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy + sed \ + -e 's/ $IRQBALANCE_ARGS//' \ + -e '/EnvironmentFile/d' \ + -i "${WORKDIR}"/${P}/misc/irqbalance.service || die +} + +src_configure() { + local emesonargs=( + $(meson_feature caps capng) + $(meson_feature numa) + $(meson_feature systemd) + $(meson_feature thermal) + $(meson_feature tui ui) + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + newinitd "${FILESDIR}"/irqbalance.init.5 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-2 irqbalance + systemd_dounit "${WORKDIR}"/${P}/misc/irqbalance.service + udev_dorules "${WORKDIR}"/${P}/misc/90-irqbalance.rules +} + +pkg_postrm() { + udev_reload +} + +pkg_postinst() { + udev_reload + optfeature "thermal events support (requires USE=thermal)" sys-power/thermald +} diff --git a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4.ebuild deleted file mode 100644 index d15ff251b576..000000000000 --- a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit meson linux-info optfeature systemd udev - -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" -S="${WORKDIR}"/${P}/contrib - -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 ) -" - -pkg_setup() { - CONFIG_CHECK="~PCI_MSI" - linux-info_pkg_setup -} - -src_prepare() { - default - - # Follow systemd policies - # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy - sed \ - -e 's/ $IRQBALANCE_ARGS//' \ - -e '/EnvironmentFile/d' \ - -i "${WORKDIR}"/${P}/misc/irqbalance.service || die -} - -src_configure() { - local emesonargs=( - $(meson_feature caps capng) - $(meson_feature numa) - $(meson_feature systemd) - $(meson_feature thermal) - $(meson_feature tui ui) - ) - - meson_src_configure -} - -src_install() { - meson_src_install - - newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance - newconfd "${FILESDIR}"/irqbalance.confd-2 irqbalance - systemd_dounit "${WORKDIR}"/${P}/misc/irqbalance.service - udev_dorules "${WORKDIR}"/${P}/misc/90-irqbalance.rules -} - -pkg_postrm() { - udev_reload -} - -pkg_postinst() { - udev_reload - optfeature "thermal events support (requires USE=thermal)" sys-power/thermald -} -- cgit v1.2.3