public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/tlp/
Date: Mon, 18 Sep 2023 09:20:15 +0000 (UTC)	[thread overview]
Message-ID: <1695027829.4bdbdff124e66fd5fcaf75346072a46f9ef84de6.sam@gentoo> (raw)

commit:     4bdbdff124e66fd5fcaf75346072a46f9ef84de6
Author:     Jay Faulkner <jay <AT> jvf <DOT> cc>
AuthorDate: Sun Sep 17 00:00:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <jay <AT> jvf.cc>
Closes: https://github.com/gentoo/gentoo/pull/32865
Signed-off-by: Sam James <sam <AT> 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
+}


             reply	other threads:[~2023-09-18  9:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18  9:20 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-13 15:52 [gentoo-commits] repo/gentoo:master commit in: sys-power/tlp/ Jay Faulkner
2025-10-13 15:52 Jay Faulkner
2025-10-11 21:41 Jay Faulkner
2025-06-02  1:43 Jay Faulkner
2025-04-30 21:43 Sam James
2025-03-12 20:42 Jay Faulkner
2025-03-12 19:24 Jay Faulkner
2025-03-12 19:24 Jay Faulkner
2025-03-12 19:24 Jay Faulkner
2024-11-24 10:24 Andreas Sturmlechner
2024-11-24 10:24 Andreas Sturmlechner
2024-11-23 20:15 Arthur Zamarin
2024-10-25  7:31 Yixun Lan
2024-06-13 20:49 Sam James
2024-06-13 18:59 Arthur Zamarin
2023-12-01 22:17 Patrick McLean
2023-09-18 16:39 Joonas Niilola
2023-09-18  9:20 Sam James
2022-11-03 19:13 Sam James
2022-10-12 23:41 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1695027829.4bdbdff124e66fd5fcaf75346072a46f9ef84de6.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox