aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuje Mihanović <duje.mihanovic@skole.hr>2022-07-25 12:03:48 +0200
committerDuje Mihanović <duje.mihanovic@skole.hr>2022-07-25 12:03:48 +0200
commit9d81af737546943170dd57ee7ee9da62180e5571 (patch)
tree510fde1407b5035aac236589ba589871c1769f84 /sys-power
parentsys-power/tlp: call udev_reload in pkg_postrm (diff)
downloadguru-9d81af737546943170dd57ee7ee9da62180e5571.tar.gz
guru-9d81af737546943170dd57ee7ee9da62180e5571.tar.bz2
guru-9d81af737546943170dd57ee7ee9da62180e5571.zip
sys-power/tlp: use optfeature
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/tlp/tlp-1.5.0.ebuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild
index 3ef6bd6d6..d2cc2f1fe 100644
--- a/sys-power/tlp/tlp-1.5.0.ebuild
+++ b/sys-power/tlp/tlp-1.5.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit udev
+inherit udev optfeature
DESCRIPTION="Optimize laptop battery life"
HOMEPAGE="https://linrunner.de/tlp/"
@@ -53,9 +53,8 @@ src_install() {
pkg_postinst() {
udev_reload
- elog "Consider installing these optional dependencies:"
- elog "- sys-apps/ethtool to allow disabling WoL"
- elog "- sys-apps/smartmontools for disk drive health info in tlp-stat"
+ optfeature "disable Wake-on-LAN" sys-apps/ethtool
+ optfeature "see disk drive health info in tlp-stat" sys-apps/smartmontools
}
pkg_postrm() {