commit
20a9643b12
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'
|
# Template file for 'tlp'
|
||||||
pkgname=tlp
|
pkgname=tlp
|
||||||
version=0.5
|
version=0.5
|
||||||
revision=2
|
revision=3
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
depends="hdparm bash iw rfkill ethtool"
|
depends="hdparm bash iw rfkill ethtool"
|
||||||
conf_files="/etc/default/tlp"
|
conf_files="/etc/default/tlp"
|
||||||
@ -21,8 +21,6 @@ do_build() {
|
|||||||
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
|
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
|
||||||
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
|
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
|
||||||
sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' 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() {
|
do_install() {
|
||||||
@ -36,6 +34,7 @@ do_install() {
|
|||||||
vmkdir usr/lib/systemd/system
|
vmkdir usr/lib/systemd/system
|
||||||
vinstall tlp.service 644 usr/lib/systemd/system
|
vinstall tlp.service 644 usr/lib/systemd/system
|
||||||
vinstall tlp-sleep.service 644 usr/lib/systemd/system
|
vinstall tlp-sleep.service 644 usr/lib/systemd/system
|
||||||
|
vsv tlp
|
||||||
|
|
||||||
vmkdir usr/share/bash-completion/completions
|
vmkdir usr/share/bash-completion/completions
|
||||||
mv ${DESTDIR}/etc/bash_completion.d/tlp ${DESTDIR}/usr/share/bash-completion/completions
|
mv ${DESTDIR}/etc/bash_completion.d/tlp ${DESTDIR}/usr/share/bash-completion/completions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user