commit
20a9643b12
3 changed files with 7 additions and 3 deletions
2
srcpkgs/tlp/files/tlp/finish
Executable file
2
srcpkgs/tlp/files/tlp/finish
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec tlp init stop
|
3
srcpkgs/tlp/files/tlp/run
Executable file
3
srcpkgs/tlp/files/tlp/run
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
tlp init start || exit 1
|
||||
exec chpst -b tlp pause
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'tlp'
|
||||
pkgname=tlp
|
||||
version=0.5
|
||||
revision=2
|
||||
revision=3
|
||||
hostmakedepends="git"
|
||||
depends="hdparm bash iw rfkill ethtool"
|
||||
conf_files="/etc/default/tlp"
|
||||
|
@ -21,8 +21,6 @@ do_build() {
|
|||
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
|
||||
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
|
||||
sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' Makefile
|
||||
sed -i -e 's|/usr/sbin/|/usr/bin/|' tlp.service
|
||||
sed -i -e 's|/usr/sbin/tlp|/usr/bin/tlp|' tlp.rules
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
@ -36,6 +34,7 @@ do_install() {
|
|||
vmkdir usr/lib/systemd/system
|
||||
vinstall tlp.service 644 usr/lib/systemd/system
|
||||
vinstall tlp-sleep.service 644 usr/lib/systemd/system
|
||||
vsv tlp
|
||||
|
||||
vmkdir usr/share/bash-completion/completions
|
||||
mv ${DESTDIR}/etc/bash_completion.d/tlp ${DESTDIR}/usr/share/bash-completion/completions
|
||||
|
|
Loading…
Reference in a new issue