[arch-commits] Commit in laptop-mode-tools/repos/community-any (5 files)

Lukas Jirkovsky stativ at nymeria.archlinux.org
Thu May 16 10:33:01 UTC 2013


    Date: Thursday, May 16, 2013 @ 12:33:01
  Author: stativ
Revision: 90954

archrelease: copy trunk to community-any

Added:
  laptop-mode-tools/repos/community-any/PKGBUILD
    (from rev 90953, laptop-mode-tools/trunk/PKGBUILD)
  laptop-mode-tools/repos/community-any/laptop-mode.install
    (from rev 90953, laptop-mode-tools/trunk/laptop-mode.install)
Deleted:
  laptop-mode-tools/repos/community-any/PKGBUILD
  laptop-mode-tools/repos/community-any/laptop-mode
  laptop-mode-tools/repos/community-any/laptop-mode.install

---------------------+
 PKGBUILD            |  125 ++++++++++++++++++++++++--------------------------
 laptop-mode         |   57 ----------------------
 laptop-mode.install |   28 +++++------
 3 files changed, 76 insertions(+), 134 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-16 10:32:57 UTC (rev 90953)
+++ PKGBUILD	2013-05-16 10:33:01 UTC (rev 90954)
@@ -1,63 +0,0 @@
-# $Id: PKGBUILD 140455 2011-10-14 20:07:03Z eric $
-# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
-# Contributor: Eric Bélanger <eric at archlinux.org>
-
-pkgname=laptop-mode-tools
-pkgver=1.63
-pkgrel=1
-pkgdesc="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')
-optdepends=('acpid: ACPI support'
-            'bluez: bluetooth support'
-            'hdparm: hard disk power management'
-            'sdparm: SCSI disk power management'
-            'ethtool: ethernet support'
-            'wireless_tools: WiFi support'
-            'xorg-xset: DPMS standby 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
-        etc/laptop-mode/conf.d/bluetooth.conf
-        etc/laptop-mode/conf.d/configuration-file-control.conf
-        etc/laptop-mode/conf.d/cpufreq.conf
-        etc/laptop-mode/conf.d/dpms-standby.conf
-        etc/laptop-mode/conf.d/eee-superhe.conf
-        etc/laptop-mode/conf.d/ethernet.conf
-        etc/laptop-mode/conf.d/exec-commands.conf
-        etc/laptop-mode/conf.d/hal-polling.conf
-        etc/laptop-mode/conf.d/intel-hda-powersave.conf
-        etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
-        etc/laptop-mode/conf.d/lcd-brightness.conf
-        etc/laptop-mode/conf.d/nmi-watchdog.conf
-        etc/laptop-mode/conf.d/pcie-aspm.conf
-        etc/laptop-mode/conf.d/runtime-pm.conf
-        etc/laptop-mode/conf.d/sched-mc-power-savings.conf
-        etc/laptop-mode/conf.d/sched-smt-power-savings.conf
-        etc/laptop-mode/conf.d/start-stop-programs.conf
-        etc/laptop-mode/conf.d/terminal-blanking.conf
-        etc/laptop-mode/conf.d/usb-autosuspend.conf
-        etc/laptop-mode/conf.d/video-out.conf
-        etc/laptop-mode/conf.d/wireless-ipw-power.conf
-        etc/laptop-mode/conf.d/wireless-iwl-power.conf
-        etc/laptop-mode/conf.d/wireless-power.conf
-        etc/laptop-mode/laptop-mode.conf
-        etc/laptop-mode/lm-profiler.conf)
-install=laptop-mode.install
-source=("http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz"
-        'laptop-mode')
-md5sums=('58d7dbffe9a60746a67f4b2a27ab284f'
-         '4d3b4d95c6532451b3dba588c83fb86b')
-
-build() {
-  cd "$srcdir/${pkgname}_$pkgver"
-}
-
-package() {
-  cd "$srcdir/${pkgname}_$pkgver"
-  make DESTDIR="$pkgdir" INIT_D=none MAN_D=/usr/share/man LIB_D=/usr/lib install
-
-  install -D -m755 "$srcdir/laptop-mode" "$pkgdir/etc/rc.d/laptop-mode"
-}

Copied: laptop-mode-tools/repos/community-any/PKGBUILD (from rev 90953, laptop-mode-tools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-05-16 10:33:01 UTC (rev 90954)
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 140455 2011-10-14 20:07:03Z eric $
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=laptop-mode-tools
+pkgver=1.63
+pkgrel=2
+pkgdesc="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')
+optdepends=('acpid: ACPI support'
+            'bluez: bluetooth support'
+            'hdparm: hard disk power management'
+            'sdparm: SCSI disk power management'
+            'ethtool: ethernet support'
+            'wireless_tools: WiFi support'
+            'xorg-xset: DPMS standby 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
+        etc/laptop-mode/conf.d/bluetooth.conf
+        etc/laptop-mode/conf.d/configuration-file-control.conf
+        etc/laptop-mode/conf.d/cpufreq.conf
+        etc/laptop-mode/conf.d/dpms-standby.conf
+        etc/laptop-mode/conf.d/eee-superhe.conf
+        etc/laptop-mode/conf.d/ethernet.conf
+        etc/laptop-mode/conf.d/exec-commands.conf
+        etc/laptop-mode/conf.d/hal-polling.conf
+        etc/laptop-mode/conf.d/intel-hda-powersave.conf
+        etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
+        etc/laptop-mode/conf.d/lcd-brightness.conf
+        etc/laptop-mode/conf.d/nmi-watchdog.conf
+        etc/laptop-mode/conf.d/pcie-aspm.conf
+        etc/laptop-mode/conf.d/runtime-pm.conf
+        etc/laptop-mode/conf.d/sched-mc-power-savings.conf
+        etc/laptop-mode/conf.d/sched-smt-power-savings.conf
+        etc/laptop-mode/conf.d/start-stop-programs.conf
+        etc/laptop-mode/conf.d/terminal-blanking.conf
+        etc/laptop-mode/conf.d/usb-autosuspend.conf
+        etc/laptop-mode/conf.d/video-out.conf
+        etc/laptop-mode/conf.d/wireless-ipw-power.conf
+        etc/laptop-mode/conf.d/wireless-iwl-power.conf
+        etc/laptop-mode/conf.d/wireless-power.conf
+        etc/laptop-mode/laptop-mode.conf
+        etc/laptop-mode/lm-profiler.conf)
+install=laptop-mode.install
+source=("http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz")
+md5sums=('58d7dbffe9a60746a67f4b2a27ab284f')
+
+build() {
+  cd "$srcdir/${pkgname}_$pkgver"
+}
+
+package() {
+  cd "$srcdir/${pkgname}_$pkgver"
+  make DESTDIR="$pkgdir" INIT_D=none MAN_D=/usr/share/man LIB_D=/usr/lib install
+  # use bin instead of sbin
+  mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
+  find "$pkgdir" -type f -exec sed -i 's|sbin/laptop_mode|bin/laptop_mode|g' '{}' ';'
+}

Deleted: laptop-mode
===================================================================
--- laptop-mode	2013-05-16 10:32:57 UTC (rev 90953)
+++ laptop-mode	2013-05-16 10:33:01 UTC (rev 90954)
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
-  start)
-    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
-    /usr/sbin/laptop_mode auto >/dev/null 2>&1
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon laptop-mode
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping laptop-mode"
-    rm -f /var/run/laptop-mode-tools/enabled
-    /usr/sbin/laptop_mode stop >/dev/null 2>&1
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon laptop-mode
-      stat_done
-    fi
-    ;;
-  restart)
-    stat_busy "Restarting laptop-mode"
-    rm -f /var/run/laptop-mode-tools/enabled
-    /usr/sbin/laptop_mode stop >/dev/null 2>&1
-
-    if [ $? -gt 0 ]; then
-      stat_fail
-      rm_daemon laptop-mode
-    else
-      rm -f /var/run/laptop-mode-tools/*
-      touch /var/run/laptop-mode-tools/enabled
-      /usr/sbin/laptop_mode auto force >/dev/null 2>&1
-      if [ $? -gt 0 ]; then
-        stat_fail
-        rm_daemon laptop-mode
-      else
-        stat_done
-      fi
-    fi
-    ;;
-  status)
-    /usr/sbin/laptop_mode status
-    ;;
-  *)
-      echo "Usage: $0 {stop|start|restart|status}"
-    ;;
-esac
-exit 0

Deleted: laptop-mode.install
===================================================================
--- laptop-mode.install	2013-05-16 10:32:57 UTC (rev 90953)
+++ laptop-mode.install	2013-05-16 10:33:01 UTC (rev 90954)
@@ -1,14 +0,0 @@
-## arg 1:  the new package version
-## arg 2:  the old package version
-post_upgrade() {
-  # do something here
-  if [ `vercmp $2 1.62` -lt 0 ] ; then
-    echo "The systemd service name has changed from \laptop-mode-tools\" to \"laptop-mode\""
-    echo "The change requires the old symlink to be manually removed:"
-    echo "  rm /etc/systemd/system/multi-user.target.wants/laptop-mode-tools.service"
-    echo "The laptop-mode.service can be enabled using:"
-    echo "  systemctl enable laptop-mode"
-  fi
-}
-
-# vim:set ts=2 sw=2 et:

Copied: laptop-mode-tools/repos/community-any/laptop-mode.install (from rev 90953, laptop-mode-tools/trunk/laptop-mode.install)
===================================================================
--- laptop-mode.install	                        (rev 0)
+++ laptop-mode.install	2013-05-16 10:33:01 UTC (rev 90954)
@@ -0,0 +1,14 @@
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  # do something here
+  if [ `vercmp $2 1.62` -lt 0 ] ; then
+    echo "The systemd service name has changed from \laptop-mode-tools\" to \"laptop-mode\""
+    echo "The change requires the old symlink to be manually removed:"
+    echo "  rm /etc/systemd/system/multi-user.target.wants/laptop-mode-tools.service"
+    echo "The laptop-mode.service can be enabled using:"
+    echo "  systemctl enable laptop-mode"
+  fi
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list