Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/irqbalance/
Date: Mon, 31 Oct 2022 21:09:18
Message-Id: 1667250532.5b7d7a14dcd59e749816eddd033ee4dc6a5d0e2d.sam@gentoo
1 commit: 5b7d7a14dcd59e749816eddd033ee4dc6a5d0e2d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 21:08:48 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 21:08:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b7d7a14
7
8 sys-apps/irqbalance: add 1.9.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/irqbalance/Manifest | 1 +
13 sys-apps/irqbalance/irqbalance-1.9.2.ebuild | 68 +++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest
17 index 4a6c6694bade..25147b3c38c8 100644
18 --- a/sys-apps/irqbalance/Manifest
19 +++ b/sys-apps/irqbalance/Manifest
20 @@ -1,2 +1,3 @@
21 DIST irqbalance-1.9.0.tar.gz 55779 BLAKE2B 11df51b03a473da10340c0c9ca9a28b3d9f9ed81e202e434b135a4be1cf54bc5558b33a4a922eba89bdd8cebbd6d3448527507fa72f03c4ff494ae83d513854e SHA512 878977da5eff18e53bdceeaa4aca952f73ba8b03eb028cf176816af971ffc65f0b1f1bb3a68e3a2502491895cc2b9438652dc97d5696232bb2f64860109e9a24
22 DIST irqbalance-1.9.1.tar.gz 62126 BLAKE2B 218e6f90d0e9ca9b2e276a69fd0c97438ff16c96772f30281c10a051eafdf929a66f13c03d512232fff836aa1c2095bc404006dfc16904c2c2cba245f4b57b59 SHA512 ec2abd3aad61e5370ca13a767fb6b5b206b61f5751853995780dd62e1657d88d74819ff5838ad2599855c701ea5d53755bf108a5427469faa7b1f042351b6068
23 +DIST irqbalance-1.9.2.tar.gz 62188 BLAKE2B bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2 SHA512 d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378
24
25 diff --git a/sys-apps/irqbalance/irqbalance-1.9.2.ebuild b/sys-apps/irqbalance/irqbalance-1.9.2.ebuild
26 new file mode 100644
27 index 000000000000..1edb1533cf88
28 --- /dev/null
29 +++ b/sys-apps/irqbalance/irqbalance-1.9.2.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit autotools systemd linux-info
37 +
38 +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system"
39 +HOMEPAGE="https://github.com/Irqbalance/irqbalance"
40 +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~x86"
45 +IUSE="caps +numa systemd selinux tui"
46 +# Hangs
47 +RESTRICT="test"
48 +
49 +DEPEND="
50 + dev-libs/glib:2
51 + dev-libs/libnl:3
52 + caps? ( sys-libs/libcap-ng )
53 + numa? ( sys-process/numactl )
54 + systemd? ( sys-apps/systemd:= )
55 + tui? ( sys-libs/ncurses:=[unicode(+)] )
56 +"
57 +BDEPEND="
58 + virtual/pkgconfig
59 +"
60 +RDEPEND="
61 + ${DEPEND}
62 + selinux? ( sec-policy/selinux-irqbalance )
63 +"
64 +
65 +pkg_setup() {
66 + CONFIG_CHECK="~PCI_MSI"
67 + linux-info_pkg_setup
68 +}
69 +
70 +src_prepare() {
71 + # Follow systemd policies
72 + # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy
73 + sed \
74 + -e 's/ $IRQBALANCE_ARGS//' \
75 + -e '/EnvironmentFile/d' \
76 + -i misc/irqbalance.service || die
77 +
78 + default
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + local myeconfargs=(
84 + $(use_with caps libcap-ng)
85 + $(use_enable numa)
86 + $(use_with systemd)
87 + $(use_with tui irqbalance-ui)
88 + )
89 + econf "${myeconfargs[@]}"
90 +}
91 +
92 +src_install() {
93 + default
94 +
95 + newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance
96 + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance
97 + systemd_dounit misc/irqbalance.service
98 +}