diff options
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/Manifest.gz | bin | 5596 -> 5592 bytes | |||
-rw-r--r-- | sys-power/tlp/Manifest | 6 | ||||
-rw-r--r-- | sys-power/tlp/metadata.xml | 8 | ||||
-rw-r--r-- | sys-power/tlp/tlp-1.7.0-r1.ebuild | 6 | ||||
-rw-r--r-- | sys-power/tlp/tlp-1.8.0.ebuild | 52 |
5 files changed, 59 insertions, 13 deletions
diff --git a/sys-power/Manifest.gz b/sys-power/Manifest.gz Binary files differindex cec756e4f52f..7b4722781f74 100644 --- a/sys-power/Manifest.gz +++ b/sys-power/Manifest.gz diff --git a/sys-power/tlp/Manifest b/sys-power/tlp/Manifest index 9897033b097e..a33bd64ffbe2 100644 --- a/sys-power/tlp/Manifest +++ b/sys-power/tlp/Manifest @@ -1,4 +1,6 @@ AUX tlp.init 337 BLAKE2B 612bbf72ce36991cdf07f350325d52938d80b0fa1e11a6c1b6c1c98d2b00972b33a7517410c96b4454ac6e1180070ddeadad79df034dd378dac7c74c9dfe4aba SHA512 d9c260b3f5ea2e5a82a855913c403606522fd6b15e26a11456e56d3d7a82045c9abd63db381b89ee6b3fa5e213f38f3bfca7659e188a6b3a5827db272349bffb DIST tlp-1.7.0.tar.gz 151003 BLAKE2B 3dbd600921fe29d6adc4d195000087c969b4be8f8c3b6052cf411ad820f06c47e31e2cf93a0c33f822491f1cf2420fd6cf1193d45846b067975b4efbb3e5407e SHA512 db6777dff1b253f63941271d39b3785646ad15b4351a4a647ec748d9beabcc891b70d4070d0ce5b01919024e7560eac6ee858b720f8ec0a5535c51513ccf7a3d -EBUILD tlp-1.7.0-r1.ebuild 1542 BLAKE2B 7f954791a31e8a9716f1fc8a59bc5ab2bed01a3838cf4b260679fcda0513f6d41d2cd1b1690334ad01ee1b85dbc3fd8584ca301e0988d958d072e3562cfd1b70 SHA512 4137c6f39b2d647a11f674d61d2b930134dc5af8fc6031975e9ea7c7f237a02a5acea177e85fad3b191f4af73af29d0305fcebba36781477e5bcee0344a9e83c -MISC metadata.xml 659 BLAKE2B d626047b39c900047ccc6772acb9e876f783b9ce633abe6f97971cf535df134fb8e620122c5fe25357a6fadc93fc38a7ec50c08fe3cbdaa09b523ba1d644338c SHA512 88677604a0144e2862d71f521c577e6d39480f60071d666810263429db50a5610b82ea9f3902e161434b02e42e39b1f7818ea3a97bb15d0f5c319d83da780be0 +DIST tlp-1.8.0.tar.gz 172154 BLAKE2B 843951699bab3237e3f3869393fe9890088da950101c13351e175287734871e1a72e368264b775a3f1c128fe8ae3225db1e4b6fac9fb72260a59a02028f48647 SHA512 d1c133faf2c7870b66a363ff84e5e0fafc6be2e36b5440336e3f4c45e68a9a8b7524f697af7a509cf724e21c3a43f976f9814e627531148e9ddaff267564d3c7 +EBUILD tlp-1.7.0-r1.ebuild 1337 BLAKE2B a92dfdfaac7b0d8916416854cb3da46c7003e3ee77dbe6034a9a800094cd71c42c0b1bb2c3f7ea08093ce417b4248e48651e842267965b440084174dcbd26818 SHA512 fe7a0b5723e14f53d6f6757f64844ba36ba1103ba99ad0d4216ebd8fa4be87ac0376461c6390a766aab96566c7073d454840e2bb673479a0eb5a0db49d982751 +EBUILD tlp-1.8.0.ebuild 1338 BLAKE2B a48e69342bb8c0cc5177a8a94fc837206e33117856e8ee905ed2d67d89b8ae10454677af2bc523077b601cfe41710af639ea537e19ca059f3a2c52d3ef8a2518 SHA512 adb68986893d13c33c091ee1101020cf4a704955819e7dabe9b9368c81583c7430c3b488a2d57dfa658efad7e8e290628b2ec40a44d8d22187e6e830bcac5856 +MISC metadata.xml 517 BLAKE2B 1b7d52db65737d5695e510ab68624552f78280e60ba4c59569bc66612519645c98374bab0608cceef243c3ac00716c57c719040472020657bf118bd27614e669 SHA512 cf12b49b318a41ec4d3a9bde07dcc998054363be8053003a9823c02f16e771ee01a1faf7f3df1bcc73e2ad807143d5d86d4434eadf3f22d2a9eadc23a544ced0 diff --git a/sys-power/tlp/metadata.xml b/sys-power/tlp/metadata.xml index 432941daed2e..f5feb7b94155 100644 --- a/sys-power/tlp/metadata.xml +++ b/sys-power/tlp/metadata.xml @@ -1,14 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> <pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>jay@jvf.cc</email> + <maintainer type="person"> + <email>jayf@gentoo.org</email> <name>Jay Faulkner</name> </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> <longdescription lang="en"> TLP is a command line utility for Linux to optimize laptop battery life. Primarily by tweaking kernel settings that affect power consumption. diff --git a/sys-power/tlp/tlp-1.7.0-r1.ebuild b/sys-power/tlp/tlp-1.7.0-r1.ebuild index 9932188670b3..3b9f9373902c 100644 --- a/sys-power/tlp/tlp-1.7.0-r1.ebuild +++ b/sys-power/tlp/tlp-1.7.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -38,10 +38,6 @@ src_install() { 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 - - # <elogind-255.5 used a different path (bug #939216), keep a compat symlink - # TODO: cleanup after 255.5 been stable for a few months - dosym {/usr/lib,/"$(get_libdir)"}/elogind/system-sleep/49-tlp-sleep } pkg_postinst() { diff --git a/sys-power/tlp/tlp-1.8.0.ebuild b/sys-power/tlp/tlp-1.8.0.ebuild new file mode 100644 index 000000000000..4a97a332593a --- /dev/null +++ b/sys-power/tlp/tlp-1.8.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 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() { + # NOTE(JayF): TLP_WITH_ELOGIND/TLP_WITH_SYSTEMD are both only installing + # small init/config files. + local myemakeargs=( + DESTDIR="${D}" + TLP_NO_INIT=1 + TLP_ELOD=/usr/lib/elogind/system-sleep + TLP_WITH_ELOGIND=1 + TLP_WITH_SYSTEMD=1 + install install-man + ) + emake "${myemakeargs[@]}" + + 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 +} |