diff options
author | Jay Faulkner <jay@jvf.cc> | 2023-09-16 17:00:18 -0700 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-18 10:03:49 +0100 |
commit | 4bdbdff124e66fd5fcaf75346072a46f9ef84de6 (patch) | |
tree | 5808f988f11e4d28b4c3851379b2512a3c91cc80 /sys-power/tlp/tlp-1.6.0.ebuild | |
parent | net-misc/curl: make openssl and nghttp3 mutually exclusive (again) (diff) | |
download | gentoo-4bdbdff124e66fd5fcaf75346072a46f9ef84de6.tar.gz gentoo-4bdbdff124e66fd5fcaf75346072a46f9ef84de6.tar.bz2 gentoo-4bdbdff124e66fd5fcaf75346072a46f9ef84de6.zip |
sys-power/tlp: new version 1.6.0
Bumping the version from 1.5.0 to 1.6.0.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=914054
Signed-off-by: Jay Faulkner <jay@jvf.cc>
Closes: https://github.com/gentoo/gentoo/pull/32865
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-power/tlp/tlp-1.6.0.ebuild')
-rw-r--r-- | sys-power/tlp/tlp-1.6.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-power/tlp/tlp-1.6.0.ebuild b/sys-power/tlp/tlp-1.6.0.ebuild new file mode 100644 index 000000000000..b0bbf7d60684 --- /dev/null +++ b/sys-power/tlp/tlp-1.6.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit udev optfeature + +DESCRIPTION="Optimize laptop battery life" +HOMEPAGE="https://linrunner.de/tlp/" +SRC_URI="https://github.com/linrunner/TLP/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/TLP-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +# It's uncertain if elogind/systemd is actually required, however, without the sleep +# hooks working, which require one of them, it doesn't seem like this app is very useful. +RDEPEND=" + dev-lang/perl + virtual/udev + || ( sys-auth/elogind sys-apps/systemd ) +" + +src_install() { + emake \ + DESTDIR="${D}" \ + TLP_NO_INIT=1 \ + TLP_ELOD=/$(get_libdir)/elogind/system-sleep \ + TLP_WITH_ELOGIND=1 \ + TLP_WITH_SYSTEMD=1 \ + install install-man + + fperms 444 /usr/share/tlp/defaults.conf # manpage says this file should not be edited + newinitd "${FILESDIR}/tlp.init" tlp + keepdir /var/lib/tlp # created by Makefile, probably important +} + +pkg_postinst() { + udev_reload + + optfeature "disable Wake-on-LAN" sys-apps/ethtool + optfeature "see disk drive health info in tlp-stat" sys-apps/smartmontools +} + +pkg_postrm() { + udev_reload +} |