commit:     0a4be5705d9ab3a08d8d1f17f564246412032a1b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 28 06:13:12 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 28 06:13:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a4be570

sys-apps/irqbalance: add 1.9.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/irqbalance/Manifest                |  1 +
 sys-apps/irqbalance/irqbalance-1.9.0.ebuild | 62 +++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest
index e85f3fdf526f..7349c47125af 100644
--- a/sys-apps/irqbalance/Manifest
+++ b/sys-apps/irqbalance/Manifest
@@ -1 +1,2 @@
 DIST irqbalance-1.8.0.tar.gz 55238 BLAKE2B 
0181ee57c4ddbdb55e1529cfd7da4b875320eff65cb606f925f0b4f4243b51e1349d4aba38690a78d7deab6d3f55ae8d6c45af44a904f03d7127678202f288db
 SHA512 
3d757198dbe680b010ed9233d73cbf3b4a150e6b07ef97d3e94f5fa0472a22b0b3800868634340fb413a18683ff95ff6a8f7fa51ace65d870651336479e32740
+DIST irqbalance-1.9.0.tar.gz 55779 BLAKE2B 
11df51b03a473da10340c0c9ca9a28b3d9f9ed81e202e434b135a4be1cf54bc5558b33a4a922eba89bdd8cebbd6d3448527507fa72f03c4ff494ae83d513854e
 SHA512 
878977da5eff18e53bdceeaa4aca952f73ba8b03eb028cf176816af971ffc65f0b1f1bb3a68e3a2502491895cc2b9438652dc97d5696232bb2f64860109e9a24

diff --git a/sys-apps/irqbalance/irqbalance-1.9.0.ebuild 
b/sys-apps/irqbalance/irqbalance-1.9.0.ebuild
new file mode 100644
index 000000000000..b2eda8368949
--- /dev/null
+++ b/sys-apps/irqbalance/irqbalance-1.9.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools systemd linux-info
+
+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 ~x86"
+IUSE="caps +numa selinux tui"
+
+DEPEND="
+       dev-libs/glib:2
+       caps? ( sys-libs/libcap-ng )
+       numa? ( sys-process/numactl )
+       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() {
+       # 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 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
+}

Reply via email to