diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-28 07:12:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-28 07:12:54 +0000 |
commit | 63a01a3024a6fa402d123768cd38f1cabe13adf6 (patch) | |
tree | 439fe2938e6178658c16e1109f895390a4786cbd /sys-apps/irqbalance | |
parent | 5e9fc028c5219fddb410ed4e213b54cf4618a563 (diff) |
gentoo auto-resync : 28:03:2024 - 07:12:54
Diffstat (limited to 'sys-apps/irqbalance')
-rw-r--r-- | sys-apps/irqbalance/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.confd-2 | 16 | ||||
-rw-r--r-- | sys-apps/irqbalance/irqbalance-1.9.4.ebuild | 80 |
3 files changed, 99 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest index 5e02ab67b7db..70d64091922d 100644 --- a/sys-apps/irqbalance/Manifest +++ b/sys-apps/irqbalance/Manifest @@ -1,6 +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.confd-2 487 BLAKE2B 37a5d8aa38e11b6799417624451c463d2fa5a8a45fe9f2d9d5d47669f44ae318790a7204dc7581412408089bd7809ddb43e28f5508c10870ea0ac7db3d76904c SHA512 7cf4f603eba1cba6f8825768b94da0bf8d2c0197897e94e811d2295b3a069a4455417f6e03226388b422e785e83b51ddec52bf4c038c235fd1182c5dfa9495fc AUX irqbalance.init.4 555 BLAKE2B a90aa453f6d59ec8da954d47a386cfcc2395e36b3b7f9b0cef74714e348e23b091aa00d8db586593e2e85a01f8fc2d97be7a8c754d44a6f5728f7e2e98393df1 SHA512 0252900f183a714f2c1c9f57bca7b26e2c2b3d12e6ca46085203b4b04aff41cc97c6a54b1f0e66b37d7f214f127633c0179cede8deee57dcc1f3635ec17c337c 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 1772 BLAKE2B 0817d7d23210cb222d30b5d3ee81ccb788a48ffa4eeca1c808dd831a02a35cb4f04b70a3b5db908c91a6c3b4afe5e7b78faa28b1bf82f19fad0130e78908e167 SHA512 f0cdfb4524704dace2d5731417a161b996565b608c6a6a8738c2530a4dd114edb42979a9a5ed6be077ca1afe549945fa2424ecc9bc16d429d6bdf485ad9e251d MISC metadata.xml 643 BLAKE2B 14358d1eef80f7ac2f13ae99f4ae14be61f2f4d0ef8d9e1037ef406a609c0d9258aa463bf2519227aeaf8bf36c324cce8017215ded3838227ef8c630d7fd9216 SHA512 9d9eed0adc40b08d6a88cace8b90fe4b0a051ea49ef45ace63e9d99a86fa5993af9716700fcae4dfe93b659ea6a735be86d6a3edd851ed1e025d0e58854f516b diff --git a/sys-apps/irqbalance/files/irqbalance.confd-2 b/sys-apps/irqbalance/files/irqbalance.confd-2 new file mode 100644 index 000000000000..b55054a11b1d --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.confd-2 @@ -0,0 +1,16 @@ +# /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="" diff --git a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4.ebuild new file mode 100644 index 000000000000..0baa39a88aa2 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.9.4.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.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 +} |