From a39fa0da7ed16306efa19ba1b2427db38e70d3f6 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 16 Jan 2015 23:01:51 +0100 Subject: [PATCH] tlp: add runit services --- srcpkgs/tlp/files/tlp/finish | 2 ++ srcpkgs/tlp/files/tlp/run | 3 +++ srcpkgs/tlp/template | 5 ++--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 srcpkgs/tlp/files/tlp/finish create mode 100755 srcpkgs/tlp/files/tlp/run diff --git a/srcpkgs/tlp/files/tlp/finish b/srcpkgs/tlp/files/tlp/finish new file mode 100755 index 00000000000..d210ad64bee --- /dev/null +++ b/srcpkgs/tlp/files/tlp/finish @@ -0,0 +1,2 @@ +#!/bin/sh +exec tlp init stop diff --git a/srcpkgs/tlp/files/tlp/run b/srcpkgs/tlp/files/tlp/run new file mode 100755 index 00000000000..457c416c21d --- /dev/null +++ b/srcpkgs/tlp/files/tlp/run @@ -0,0 +1,3 @@ +#!/bin/sh +tlp init start +exec pause diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template index bd8b007eb17..219c4421d8d 100644 --- a/srcpkgs/tlp/template +++ b/srcpkgs/tlp/template @@ -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