Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=0a982d0c72e7bae7b79427e6e8038d6674e1d439

commit 0a982d0c72e7bae7b79427e6e8038d6674e1d439
Author: James Buren <r...@frugalware.org>
Date:   Wed Jun 6 03:33:20 2012 -0500

laptop-mode-tools-1.61-2-x86_64
* convert to use systemd schema

diff --git a/source/apps-extra/laptop-mode-tools/FrugalBuild 
b/source/apps-extra/laptop-mode-tools/FrugalBuild
index 4aaf1cd..8491497 100644
--- a/source/apps-extra/laptop-mode-tools/FrugalBuild
+++ b/source/apps-extra/laptop-mode-tools/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=laptop-mode-tools
pkgver=1.61
-pkgrel=1
+pkgrel=2
pkgdesc="A kernel mode that allows you to extend the battery life of your 
laptop"
url="http://www.samwel.tk/laptop_mode/";
depends=('hdparm' 'acpid')
@@ -41,15 +41,19 @@ up2date="Flasttar $url/packages/tarball"
source=($url/tools/downloads/${pkgname}_${pkgver}.tar.gz $pkgname.service)
sha1sums=('218073e83fd7eee0e1c8f301b6d8fec6cadefcdc' \
'5dc51cc9aa910f6806d0eaddf0f3ab2bc1552839')
+_F_systemd_units=(laptop-mode-tools=e)
+Finclude systemd

build() {
Fcd
Fsed "etc/udev" "lib/udev" install.sh
-        make DESTDIR="$Fdestdir" INIT_D=none MAN_D=/usr/share/man install || 
Fdie
+        make DESTDIR="$Fdestdir" INIT_D=none MAN_D=/usr/share/man APM=disabled 
PMU=disabled install || Fdie
Fmkdir /etc/tmpfiles.d
cat > $Fdestdir/etc/tmpfiles.d/laptop-mode-tools.conf << EOF
d $Flocalstatedir/run/laptop-mode-tools 0755 root root -
EOF
Fmkdir lib/systemd/system/
Finstall 0644 $pkgname.service /lib/systemd/system/$pkgname.service
+
+       Fgenscriptlet
}
diff --git a/source/apps-extra/laptop-mode-tools/laptop-mode-tools.install 
b/source/apps-extra/laptop-mode-tools/laptop-mode-tools.install
deleted file mode 100644
index 938402f..0000000
--- a/source/apps-extra/laptop-mode-tools/laptop-mode-tools.install
+++ /dev/null
@@ -1,34 +0,0 @@
-post_install()
-{
-       systemctl daemon-reload >/dev/null 2>&1
-       echo "To enable laptop-mode-tools on boot:"
-       echo "systemctl enable laptop-mode-tools.service"
-       #systemctl enable laptop-mode-tools.service >/dev/null 2>&1
-}
-
-post_upgrade()
-{
-       systemctl daemon-reload >/dev/null 2>&1
-       systemctl try-restart laptop-mode-tools.service >/dev/null 2>&1
-       echo "To enable laptop-mode-tools on boot:"
-       echo "systemctl enable laptop-mode-tools.service"
-       #systemctl enable laptop-mode-tools.service >/dev/null 2>&1
-}
-
-pre_remove()
-{
-       systemctl stop laptop-mode-tools.service >/dev/null 2>&1
-       systemctl disable laptop-mode-tools.service >/dev/null 2>&1
-}
-
-post_remove()
-{
-       systemctl daemon-reload >/dev/null 2>&1
-}
-
-op=$1
-shift
-
-$op $*
-
-# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to