mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 10:17:08 -08:00
sys-apps/irqbalance: add 1.9.2
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST irqbalance-1.9.0.tar.gz 55779 BLAKE2B 11df51b03a473da10340c0c9ca9a28b3d9f9ed81e202e434b135a4be1cf54bc5558b33a4a922eba89bdd8cebbd6d3448527507fa72f03c4ff494ae83d513854e SHA512 878977da5eff18e53bdceeaa4aca952f73ba8b03eb028cf176816af971ffc65f0b1f1bb3a68e3a2502491895cc2b9438652dc97d5696232bb2f64860109e9a24
|
||||
DIST irqbalance-1.9.1.tar.gz 62126 BLAKE2B 218e6f90d0e9ca9b2e276a69fd0c97438ff16c96772f30281c10a051eafdf929a66f13c03d512232fff836aa1c2095bc404006dfc16904c2c2cba245f4b57b59 SHA512 ec2abd3aad61e5370ca13a767fb6b5b206b61f5751853995780dd62e1657d88d74819ff5838ad2599855c701ea5d53755bf108a5427469faa7b1f042351b6068
|
||||
DIST irqbalance-1.9.2.tar.gz 62188 BLAKE2B bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2 SHA512 d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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 systemd selinux tui"
|
||||
# Hangs
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/libnl:3
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
numa? ( sys-process/numactl )
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
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 systemd)
|
||||
$(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
|
||||
}
|
||||
Reference in New Issue
Block a user