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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60B601581FB for ; Sun, 24 Nov 2024 10:24:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95888E07D7; Sun, 24 Nov 2024 10:24:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11792E07D7 for ; Sun, 24 Nov 2024 10:24:36 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4015E342FA1 for ; Sun, 24 Nov 2024 10:24:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7AC97D81 for ; Sun, 24 Nov 2024 10:24:33 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1732443857.4287066267d7988ec23cc1784bd4cb48bbbbad14.asturm@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.7.0-r1.ebuild X-VCS-Directories: sys-power/tlp/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4287066267d7988ec23cc1784bd4cb48bbbbad14 X-VCS-Branch: master Date: Sun, 24 Nov 2024 10:24:33 +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: e78b153e-b108-45e9-9d40-bbf99bc26491 X-Archives-Hash: 870095678eb8e0ba5c2fa580e506bd77 commit: 4287066267d7988ec23cc1784bd4cb48bbbbad14 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 24 00:08:20 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Nov 24 10:24:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42870662 sys-power/tlp: Use new elogind hooks path, keep compat symlink Signed-off-by: Andreas Sturmlechner gentoo.org> sys-power/tlp/tlp-1.7.0-r1.ebuild | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/sys-power/tlp/tlp-1.7.0-r1.ebuild b/sys-power/tlp/tlp-1.7.0-r1.ebuild new file mode 100644 index 000000000000..9932188670b3 --- /dev/null +++ b/sys-power/tlp/tlp-1.7.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 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 + + #