mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sys-apps/tuned: add support for tuned-ppd
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
parent
a51bde134d
commit
108bdf9c49
@ -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>
|
||||
|
||||
@ -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}"
|
||||
@ -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}"
|
||||
Loading…
x
Reference in New Issue
Block a user