[arch-commits] CVS update of extra/system/laptop-mode-tools (PKGBUILD laptop-mode)
Aaron Griffin
aaron at archlinux.org
Tue Jan 8 13:03:07 UTC 2008
Date: Tuesday, January 8, 2008 @ 08:03:07
Author: aaron
Path: /home/cvs-extra/extra/system/laptop-mode-tools
Modified: PKGBUILD (1.12 -> 1.13) laptop-mode (1.3 -> 1.4)
upgpkg: laptop-mode-tools 1.35-2
FS#9126: Guess I missed the rc.d script merge
-------------+
PKGBUILD | 8 +++++---
laptop-mode | 7 +++----
2 files changed, 8 insertions(+), 7 deletions(-)
Index: extra/system/laptop-mode-tools/PKGBUILD
diff -u extra/system/laptop-mode-tools/PKGBUILD:1.12 extra/system/laptop-mode-tools/PKGBUILD:1.13
--- extra/system/laptop-mode-tools/PKGBUILD:1.12 Tue Jan 8 00:59:44 2008
+++ extra/system/laptop-mode-tools/PKGBUILD Tue Jan 8 08:03:06 2008
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD,v 1.12 2008/01/08 05:59:44 aaron Exp $
+# $Id: PKGBUILD,v 1.13 2008/01/08 13:03:06 aaron Exp $
# Maintainer : Aaron, phrakture, Griffin <aaron at archlinux.org>
# Contributor: Christopher "nuopus" Cox <nuopus at gmail.com>
pkgname=laptop-mode-tools
pkgver=1.35
-pkgrel=1
+pkgrel=2
pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
arch=(i686 x86_64)
url="http://www.samwel.tk/laptop_mode/"
@@ -13,7 +13,6 @@
source=(http://www.samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_${pkgver}.tar.gz \
laptop-mode)
backup=(etc/laptop-mode/laptop-mode.conf)
-md5sums=('e89dd846e4e88d117fc666842c109221' '023c4935e30ae52669798f3543d57ef9')
build()
{
@@ -41,4 +40,7 @@
chmod 755 $startdir/pkg/etc/power/scripts.d/laptop-mode
chmod 755 $startdir/pkg/etc/power/event.d/laptop-mode
chmod 755 $startdir/pkg/etc/acpi/actions/*
+
+ # Our state dir
+ mkdir -p $startdir/pkg/var/run/laptop-mode-tools/
}
Index: extra/system/laptop-mode-tools/laptop-mode
diff -u extra/system/laptop-mode-tools/laptop-mode:1.3 extra/system/laptop-mode-tools/laptop-mode:1.4
--- extra/system/laptop-mode-tools/laptop-mode:1.3 Wed Oct 24 01:54:56 2007
+++ extra/system/laptop-mode-tools/laptop-mode Tue Jan 8 08:03:06 2008
@@ -3,13 +3,12 @@
. /etc/rc.conf
. /etc/rc.d/functions
-
test -f /usr/sbin/laptop_mode || exit 0
case "$1" in
start)
stat_busy "Starting laptop-mode"
- touch /var/run/laptop-mode-enabled
+ touch /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode auto init >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
@@ -20,7 +19,7 @@
;;
stop)
stat_busy "Stopping laptop-mode"
- rm -f /var/run/laptop-mode-enabled
+ rm -f /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode stop init >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
@@ -31,7 +30,7 @@
;;
restart)
stat_busy "Restarting laptop-mode"
- touch /var/run/laptop-mode-enabled
+ touch /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode auto init force >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
More information about the arch-commits
mailing list