tlp: add runit services

This commit is contained in:
mid-kid 2015-01-16 23:01:51 +01:00
parent d6d4aec800
commit a39fa0da7e
3 changed files with 7 additions and 3 deletions

2
srcpkgs/tlp/files/tlp/finish Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec tlp init stop

3
srcpkgs/tlp/files/tlp/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
tlp init start
exec pause

View File

@ -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