From 924750a8c767b278c9870be5dcfedced436f1276 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 3 Nov 2022 21:12:43 +0000 Subject: gentoo auto-resync : 03:11:2022 - 21:12:43 --- sys-power/Manifest.gz | Bin 5066 -> 5063 bytes sys-power/tlp/Manifest | 2 +- sys-power/tlp/tlp-1.5.0-r1.ebuild | 48 ++++++++++++++++++++++++++++++++++++++ sys-power/tlp/tlp-1.5.0.ebuild | 47 ------------------------------------- 4 files changed, 49 insertions(+), 48 deletions(-) create mode 100644 sys-power/tlp/tlp-1.5.0-r1.ebuild delete mode 100644 sys-power/tlp/tlp-1.5.0.ebuild (limited to 'sys-power') diff --git a/sys-power/Manifest.gz b/sys-power/Manifest.gz index 7a8969298893..6cc49f53da61 100644 Binary files a/sys-power/Manifest.gz and b/sys-power/Manifest.gz differ diff --git a/sys-power/tlp/Manifest b/sys-power/tlp/Manifest index b7dc38c0ffcf..9e2912c03674 100644 --- a/sys-power/tlp/Manifest +++ b/sys-power/tlp/Manifest @@ -1,4 +1,4 @@ AUX tlp.init 336 BLAKE2B a9a1bc7da9d35c51965172147843df4458e110d61f31413e1bedcfdd4ca5e253a0612021eddc1f99978ff7c7b5fb9e3a06b07eb0e5b236aec71dd0f7d96a9fc1 SHA512 cf3d050c2bc0f9f3110152ea340ef6d6f49efe522f8d412f374d365508ffcd9b31d9c76c6b0e620ce93c97bc41509822c7a0b0a2078d1ea48897ebb85d68c278 DIST tlp-1.5.0.tar.gz 126447 BLAKE2B cdd2a5d094d1146a534de07cc646fd428a97f8d40c3d4ed5ec0522848ebe3a4182e36617854feeab7fa8923f7e7ef6797623a09609fdfa2a2b5dda321b188b31 SHA512 93be83f276b902467049160c20a546cdf2f0ec221274bbb4761bf89a8da09f10a494ce2f36379ef9be48ca2e7325de8e582f5dbb823e2ddd339366bae1228122 -EBUILD tlp-1.5.0.ebuild 1149 BLAKE2B d33a3efa3cb28823dd482062d817778fbdb34071f7a8cd0a8041cb73d4859c942943bdc87cc07873a8ef17b45527ffda3b0878161cf3bf79131d251a9036f740 SHA512 7630701b441907715e93d155ccbdf59a67dfd028856a646f8242f1543a5c7f6a7a323ba3dd1fd4b7f8f273c1c622a4d7ba2479e8cd6e8193ea31c2d761ae77b0 +EBUILD tlp-1.5.0-r1.ebuild 1198 BLAKE2B ff5744c22a330a8332480ad902da4a650ddd89c3708a49685cfe57acccae364ddb44cf10a15228c422b519408a74e625e3f76fdc70be54e406d45f21c640ab36 SHA512 6d92ffdca73dbcda3efa58133a82d4b1acb3e2febd64178aaa6d1188f1670b932cd8a0583f2288b7f583ffab8be6f4d74217772abbe2ff17d390166f2d6c1609 MISC metadata.xml 789 BLAKE2B e58d72677feb289eb8aa59f352170b10e270edd772908f2be494bdcbf4bcf448041cfcf2894c23389071e849653a457bb384e946083bb4f76e89825ada3f7b0a SHA512 f0da5d455a6e21e466d4af3ec5e8bdcab820de4dac2778ba7f1e5175e8e01aa5ccd5ff3c292e058758ec306243545de61300a1fe479312739754255b676da666 diff --git a/sys-power/tlp/tlp-1.5.0-r1.ebuild b/sys-power/tlp/tlp-1.5.0-r1.ebuild new file mode 100644 index 000000000000..b0bbf7d60684 --- /dev/null +++ b/sys-power/tlp/tlp-1.5.0-r1.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 +} diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild deleted file mode 100644 index 58c6a1db7a7d..000000000000 --- a/sys-power/tlp/tlp-1.5.0.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# 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_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 -} -- cgit v1.2.3