[arch-commits] Commit in laptop-mode-tools/repos (3 files)

Lukas Jirkovsky stativ at nymeria.archlinux.org
Sat Jun 1 17:27:51 UTC 2013


    Date: Saturday, June 1, 2013 @ 19:27:51
  Author: stativ
Revision: 92149

archrelease: copy trunk to community-staging-any

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

---------------------+
 PKGBUILD            |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++
 laptop-mode.install |   14 +++++++++++
 2 files changed, 76 insertions(+)

Copied: laptop-mode-tools/repos/community-staging-any/PKGBUILD (from rev 92148, laptop-mode-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2013-06-01 17:27:51 UTC (rev 92149)
@@ -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=3
+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-utils: 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' '{}' ';'
+}

Copied: laptop-mode-tools/repos/community-staging-any/laptop-mode.install (from rev 92148, laptop-mode-tools/trunk/laptop-mode.install)
===================================================================
--- community-staging-any/laptop-mode.install	                        (rev 0)
+++ community-staging-any/laptop-mode.install	2013-06-01 17:27:51 UTC (rev 92149)
@@ -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