From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C416E158089 for ; Mon, 18 Sep 2023 09:20:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E75C22BC025; Mon, 18 Sep 2023 09:20:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCD9F2BC025 for ; Mon, 18 Sep 2023 09:20:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2DF1335C7A for ; Mon, 18 Sep 2023 09:20:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 302831113 for ; Mon, 18 Sep 2023 09:20:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1695027829.4bdbdff124e66fd5fcaf75346072a46f9ef84de6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/tlp/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-power/tlp/Manifest sys-power/tlp/tlp-1.6.0.ebuild X-VCS-Directories: sys-power/tlp/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4bdbdff124e66fd5fcaf75346072a46f9ef84de6 X-VCS-Branch: master Date: Mon, 18 Sep 2023 09:20:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: db472b68-9242-4b9d-aa09-53867c395d7d X-Archives-Hash: 98f0bfc4922caf97253d8d7eb322a9f0 commit: 4bdbdff124e66fd5fcaf75346072a46f9ef84de6 Author: Jay Faulkner jvf cc> AuthorDate: Sun Sep 17 00:00:18 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 18 09:03:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bdbdff1 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 jvf.cc> Closes: https://github.com/gentoo/gentoo/pull/32865 Signed-off-by: Sam James gentoo.org> sys-power/tlp/Manifest | 1 + sys-power/tlp/tlp-1.6.0.ebuild | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/sys-power/tlp/Manifest b/sys-power/tlp/Manifest index 5cddbd3add64..e6512c67dc16 100644 --- a/sys-power/tlp/Manifest +++ b/sys-power/tlp/Manifest @@ -1 +1,2 @@ DIST tlp-1.5.0.tar.gz 126447 BLAKE2B cdd2a5d094d1146a534de07cc646fd428a97f8d40c3d4ed5ec0522848ebe3a4182e36617854feeab7fa8923f7e7ef6797623a09609fdfa2a2b5dda321b188b31 SHA512 93be83f276b902467049160c20a546cdf2f0ec221274bbb4761bf89a8da09f10a494ce2f36379ef9be48ca2e7325de8e582f5dbb823e2ddd339366bae1228122 +DIST tlp-1.6.0.tar.gz 143444 BLAKE2B 71e43312583eeb644ffc7daedef1b100be47b44f0e96160f5fe08e3aa0c33958200b8a652e4a3254af828f2e929ba033a0562595e93911dcef460a22fc8674c5 SHA512 66c8fd736912771718da44e2117cfc51ab8ba8c76607cb9de8facbe73a648832a50ac7f00055fa2b315c71ad58762961851d7ccb96b7d8c6451529a7868045db 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 +}