[arch-commits] Commit in laptop-mode-tools/trunk (ChangeLog PKGBUILD laptop-mode)

Eric Bélanger eric at archlinux.org
Sat Dec 5 08:31:23 UTC 2009


    Date: Saturday, December 5, 2009 @ 03:31:22
  Author: eric
Revision: 60458

upgpkg: laptop-mode-tools 1.52-2
    Added acpid optdepends (close FS#17378)

Modified:
  laptop-mode-tools/trunk/ChangeLog
  laptop-mode-tools/trunk/PKGBUILD
  laptop-mode-tools/trunk/laptop-mode

-------------+
 ChangeLog   |    4 +++-
 PKGBUILD    |    7 ++++---
 laptop-mode |    5 +++--
 3 files changed, 10 insertions(+), 6 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog	2009-12-05 08:29:50 UTC (rev 60457)
+++ ChangeLog	2009-12-05 08:31:22 UTC (rev 60458)
@@ -1,6 +1,8 @@
-2009-11-26  Eric Belanger  <eric at archlinux.org>
+2009-12-05  Eric Belanger  <eric at archlinux.org>
 
+	* laptop-mode-tools 1.52-2
 	* Added check for /var/run/laptop-mode-tools in daemon script (close FS#17240)
+	* Added acpid optdepends (close FS#17378)
 
 2009-10-14  Eric Belanger  <eric at archlinux.org>
 

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-12-05 08:29:50 UTC (rev 60457)
+++ PKGBUILD	2009-12-05 08:31:22 UTC (rev 60458)
@@ -4,12 +4,13 @@
 
 pkgname=laptop-mode-tools
 pkgver=1.52
-pkgrel=1
+pkgrel=2
 pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
 arch=('any')
 url="http://www.samwel.tk/laptop_mode/"
 license=('GPL')
 depends=('bash' 'hdparm')
+optdepends=('acpid: for ACPI support')
 backup=(etc/laptop-mode/conf.d/ac97-powersave.conf
         etc/laptop-mode/conf.d/auto-hibernate.conf
         etc/laptop-mode/conf.d/battery-level-polling.conf
@@ -33,8 +34,8 @@
         etc/laptop-mode/laptop-mode.conf
         etc/laptop-mode/lm-profiler.conf)
 source=(http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz laptop-mode)
-md5sums=('75841694db2dfc9e5adb29c160b514ee' '241a0e07fc3b340b3381bcde8a74b71d')
-sha1sums=('80fcb3600315ec6f60cad52c6c7166cccc4ca4fc' 'e69239683c320ecc4c27060eb2ace768d06696bc')
+md5sums=('75841694db2dfc9e5adb29c160b514ee' 'fe47441f14e2b39c2fe473685f04395f')
+sha1sums=('80fcb3600315ec6f60cad52c6c7166cccc4ca4fc' 'f98e3c35d365c7aa0e662ec61c2991640640ac9b')
 
 build() {
   cd "${srcdir}/${pkgname}_${pkgver}"

Modified: laptop-mode
===================================================================
--- laptop-mode	2009-12-05 08:29:50 UTC (rev 60457)
+++ laptop-mode	2009-12-05 08:31:22 UTC (rev 60458)
@@ -3,10 +3,11 @@
 . /etc/rc.conf
 . /etc/rc.d/functions
 
-test -f /usr/sbin/laptop_mode || exit 0
-
 case "$1" in
   start)
+    if [ -x /etc/rc.d/acpid ]; then
+      ck_daemon acpid && /etc/rc.d/acpid start
+    fi
     stat_busy "Starting laptop-mode"
     [ ! -d /var/run/laptop-mode-tools ] && install -d /var/run/laptop-mode-tools
     touch /var/run/laptop-mode-tools/enabled




More information about the arch-commits mailing list