From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 69AAB158176 for ; Mon, 13 Oct 2025 15:52:10 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5328D335DBE for ; Mon, 13 Oct 2025 15:52:10 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 53332110462; Mon, 13 Oct 2025 15:52:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 4B633110462 for ; Mon, 13 Oct 2025 15:52:09 +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 00E5E335DBE for ; Mon, 13 Oct 2025 15:52:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 679073AC8 for ; Mon, 13 Oct 2025 15:52:07 +0000 (UTC) From: "Jay Faulkner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jay Faulkner" Message-ID: <1760370705.a0b742acaca98619e458e0161cc9b8fc93da0d4f.jayf@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/tlp/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-power/tlp/tlp-1.8.0-r1.ebuild X-VCS-Directories: sys-power/tlp/ X-VCS-Committer: jayf X-VCS-Committer-Name: Jay Faulkner X-VCS-Revision: a0b742acaca98619e458e0161cc9b8fc93da0d4f X-VCS-Branch: master Date: Mon, 13 Oct 2025 15:52:07 +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: c043a0d4-fd1d-4082-a0d1-2357194f4c82 X-Archives-Hash: b76aba25ed51d31d941f3e4636240aab commit: a0b742acaca98619e458e0161cc9b8fc93da0d4f Author: Jay Faulkner gentoo org> AuthorDate: Mon Oct 13 15:50:09 2025 +0000 Commit: Jay Faulkner gentoo org> CommitDate: Mon Oct 13 15:51:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0b742ac sys-power/tlp: add 1.8.0-r1 Minor bugfix to last update, properly using the two-pacakge syntax for optfeature so it's less confusing. Also, after conversation in gentoo-dev IRC, it seemed prudent to revbump but leave the package stable. Signed-off-by: Jay Faulkner gentoo.org> sys-power/tlp/tlp-1.8.0-r1.ebuild | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/sys-power/tlp/tlp-1.8.0-r1.ebuild b/sys-power/tlp/tlp-1.8.0-r1.ebuild new file mode 100644 index 000000000000..4c3ac97819fc --- /dev/null +++ b/sys-power/tlp/tlp-1.8.0-r1.ebuild @@ -0,0 +1,50 @@ +# 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" + +RDEPEND=" + dev-lang/perl + virtual/udev +" + +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 + optfeature "Sleep hooks" sys-auth/elogind sys-apps/systemd +} + +pkg_postrm() { + udev_reload +}