commit:     9d81af737546943170dd57ee7ee9da62180e5571
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Mon Jul 25 10:03:48 2022 +0000
Commit:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
CommitDate: Mon Jul 25 10:03:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d81af73

sys-power/tlp: use optfeature

Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>

 sys-power/tlp/tlp-1.5.0.ebuild | 7 +++----
 1 file 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() {

Reply via email to