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