sys-power/tlp: treeclean

Imported to ::gentoo in bce5e19

Signed-off-by: Jay Faulkner <jay@jvf.cc>
This commit is contained in:
Jay Faulkner 2022-10-13 16:03:23 -07:00
parent ae073fb36c
commit 49bd36df46
No known key found for this signature in database
GPG Key ID: 6B75D939B424C6D4
4 changed files with 0 additions and 81 deletions

View File

@ -1 +0,0 @@
DIST tlp-1.5.0.tar.gz 126447 BLAKE2B cdd2a5d094d1146a534de07cc646fd428a97f8d40c3d4ed5ec0522848ebe3a4182e36617854feeab7fa8923f7e7ef6797623a09609fdfa2a2b5dda321b188b31 SHA512 93be83f276b902467049160c20a546cdf2f0ec221274bbb4761bf89a8da09f10a494ce2f36379ef9be48ca2e7325de8e582f5dbb823e2ddd339366bae1228122

View File

@ -1,28 +0,0 @@
#!/sbin/openrc-run
command=/usr/sbin/tlp
name="TLP"
extra_started_commands="reload stat"
depend() {
need udev
}
start() {
ebegin "Starting tlp..."
$command init start
eend $?
}
reload() {
ebegin "Reloading tlp's configuration..."
$command start
eend $?
}
stop() {
elog "Reboot to stop tlp."
}
stat() {
/usr/bin/tlp-stat
}

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>duje.mihanovic@skole.hr</email>
<name>Duje Mihanović</name>
</maintainer>
</pkgmetadata>

View File

@ -1,44 +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"
RESTRICT="mirror"
# 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="virtual/udev
|| ( sys-auth/elogind sys-apps/systemd )"
DEPEND="${RDEPEND}"
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
}