summaryrefslogtreecommitdiff
path: root/sys-power/tlp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-02 05:01:09 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-02 05:01:09 +0000
commit81f73a84efe20818880d8c52c55a3bd067115b06 (patch)
treeca631191839ca72738880eb47b7e46689f38b59b /sys-power/tlp
parentb0632f33a9a34123e027e91c44916235a5cd9494 (diff)
gentoo auto-resync : 02:12:2023 - 05:01:08
Diffstat (limited to 'sys-power/tlp')
-rw-r--r--sys-power/tlp/Manifest2
-rw-r--r--sys-power/tlp/tlp-1.6.1.ebuild48
2 files changed, 50 insertions, 0 deletions
diff --git a/sys-power/tlp/Manifest b/sys-power/tlp/Manifest
index 7291163b7a29..bc291989930b 100644
--- a/sys-power/tlp/Manifest
+++ b/sys-power/tlp/Manifest
@@ -1,6 +1,8 @@
AUX tlp.init 337 BLAKE2B 612bbf72ce36991cdf07f350325d52938d80b0fa1e11a6c1b6c1c98d2b00972b33a7517410c96b4454ac6e1180070ddeadad79df034dd378dac7c74c9dfe4aba SHA512 d9c260b3f5ea2e5a82a855913c403606522fd6b15e26a11456e56d3d7a82045c9abd63db381b89ee6b3fa5e213f38f3bfca7659e188a6b3a5827db272349bffb
DIST tlp-1.5.0.tar.gz 126447 BLAKE2B cdd2a5d094d1146a534de07cc646fd428a97f8d40c3d4ed5ec0522848ebe3a4182e36617854feeab7fa8923f7e7ef6797623a09609fdfa2a2b5dda321b188b31 SHA512 93be83f276b902467049160c20a546cdf2f0ec221274bbb4761bf89a8da09f10a494ce2f36379ef9be48ca2e7325de8e582f5dbb823e2ddd339366bae1228122
DIST tlp-1.6.0.tar.gz 143444 BLAKE2B 71e43312583eeb644ffc7daedef1b100be47b44f0e96160f5fe08e3aa0c33958200b8a652e4a3254af828f2e929ba033a0562595e93911dcef460a22fc8674c5 SHA512 66c8fd736912771718da44e2117cfc51ab8ba8c76607cb9de8facbe73a648832a50ac7f00055fa2b315c71ad58762961851d7ccb96b7d8c6451529a7868045db
+DIST tlp-1.6.1.tar.gz 143688 BLAKE2B e7ddc8c792bf9911204556f6845da27e0c8722b5dc25b4b855c044a7d6b27662b6bad607532b631ea3766651f43321fda21ca1b51a01955d113ba838700d0182 SHA512 de88c4b4ae7d742eeec2bce7e43ccd99f971620541edc416471a46cb76a4f0c072821348d6c7f7fc44e7c70f2e3cde231d74546424ece533b2b2f531aee22b79
EBUILD tlp-1.5.0-r2.ebuild 1198 BLAKE2B ff5744c22a330a8332480ad902da4a650ddd89c3708a49685cfe57acccae364ddb44cf10a15228c422b519408a74e625e3f76fdc70be54e406d45f21c640ab36 SHA512 6d92ffdca73dbcda3efa58133a82d4b1acb3e2febd64178aaa6d1188f1670b932cd8a0583f2288b7f583ffab8be6f4d74217772abbe2ff17d390166f2d6c1609
EBUILD tlp-1.6.0.ebuild 1198 BLAKE2B 4fbef2b76873dfab5f2987887c2cc5fc7c7285d9c77b25eb49d2d66d30d98af99a1ab08d58ef3b11000097d597ee4be584fa5ce62afedf559252c6073b603ae7 SHA512 98b4f02da072c65d7d51d582fc7e830bed36d98f7e8e77a8a6aff38af78fce94a0b82267ae0702f4b163e7244ad88ff1d96b7ab6553bd47d2f2cddff6a4588e8
+EBUILD tlp-1.6.1.ebuild 1198 BLAKE2B 4fbef2b76873dfab5f2987887c2cc5fc7c7285d9c77b25eb49d2d66d30d98af99a1ab08d58ef3b11000097d597ee4be584fa5ce62afedf559252c6073b603ae7 SHA512 98b4f02da072c65d7d51d582fc7e830bed36d98f7e8e77a8a6aff38af78fce94a0b82267ae0702f4b163e7244ad88ff1d96b7ab6553bd47d2f2cddff6a4588e8
MISC metadata.xml 659 BLAKE2B d626047b39c900047ccc6772acb9e876f783b9ce633abe6f97971cf535df134fb8e620122c5fe25357a6fadc93fc38a7ec50c08fe3cbdaa09b523ba1d644338c SHA512 88677604a0144e2862d71f521c577e6d39480f60071d666810263429db50a5610b82ea9f3902e161434b02e42e39b1f7818ea3a97bb15d0f5c319d83da780be0
diff --git a/sys-power/tlp/tlp-1.6.1.ebuild b/sys-power/tlp/tlp-1.6.1.ebuild
new file mode 100644
index 000000000000..943ae6fe8d78
--- /dev/null
+++ b/sys-power/tlp/tlp-1.6.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 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
+}