sys-apps/tuned: add support for tuned-ppd

Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
Kenton Groombridge 2025-09-29 10:31:21 -04:00
parent a51bde134d
commit 108bdf9c49
No known key found for this signature in database
GPG Key ID: 16DEEFE55F45B79E
3 changed files with 22 additions and 3 deletions

View File

@ -7,9 +7,12 @@
</maintainer>
<longdescription lang="en">
A tool that performs monitoring and adaptive configuration of the system
according to selected profile.
according to selected profile.
</longdescription>
<upstream>
<remote-id type="github">redhat-performance/tuned</remote-id>
</upstream>
<use>
<flag name="ppd">Install tuned-ppd, a drop-in replacement for <pkg>sys-power/power-profiles-daemon</pkg></flag>
</use>
</pkgmetadata>

View File

@ -14,6 +14,7 @@ SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ppd"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@ -26,7 +27,12 @@ DEPEND="
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/python-linux-procfs[${PYTHON_USEDEP}]
dev-python/pyudev[${PYTHON_USEDEP}]
')"
')
ppd? (
$(python_gen_cond_dep '
dev-python/pyinotify[${PYTHON_USEDEP}]
')
)"
RDEPEND="
${DEPEND}
@ -35,6 +41,7 @@ RDEPEND="
sys-apps/dbus
sys-apps/ethtool
sys-power/powertop
ppd? ( !sys-power/power-profiles-daemon )
"
RESTRICT="test"
@ -53,6 +60,7 @@ src_prepare() {
src_install() {
default
use ppd && emake DESTDIR="${ED}" install-ppd
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
python_fix_shebang "${D}"

View File

@ -14,6 +14,7 @@ SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ppd"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@ -26,7 +27,12 @@ DEPEND="
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/python-linux-procfs[${PYTHON_USEDEP}]
dev-python/pyudev[${PYTHON_USEDEP}]
')"
')
ppd? (
$(python_gen_cond_dep '
dev-python/pyinotify[${PYTHON_USEDEP}]
')
)"
RDEPEND="
${DEPEND}
@ -35,6 +41,7 @@ RDEPEND="
sys-apps/dbus
sys-apps/ethtool
sys-power/powertop
ppd? ( !sys-power/power-profiles-daemon )
"
RESTRICT="test"
@ -53,6 +60,7 @@ src_prepare() {
src_install() {
default
use ppd && emake DESTDIR="${ED}" install-ppd
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
python_fix_shebang "${D}"