[arch-commits] Commit in laptop-mode-tools/repos/community-any (6 files)
Lukas Jirkovsky
stativ at nymeria.archlinux.org
Sun Mar 24 12:53:27 UTC 2013
Date: Sunday, March 24, 2013 @ 13:53:27
Author: stativ
Revision: 86916
archrelease: copy trunk to community-any
Added:
laptop-mode-tools/repos/community-any/PKGBUILD
(from rev 86915, laptop-mode-tools/trunk/PKGBUILD)
laptop-mode-tools/repos/community-any/laptop-mode
(from rev 86915, laptop-mode-tools/trunk/laptop-mode)
laptop-mode-tools/repos/community-any/laptop-mode.install
(from rev 86915, 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 | 133 +++++++++++++++++++++++---------------------------
laptop-mode | 114 +++++++++++++++++++++---------------------
laptop-mode.install | 28 +++++-----
3 files changed, 134 insertions(+), 141 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-03-24 12:53:12 UTC (rev 86915)
+++ PKGBUILD 2013-03-24 12:53:27 UTC (rev 86916)
@@ -1,70 +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.62
-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/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=('a14283b14f09bb9b03f7faf928c07bb6'
- '4d3b4d95c6532451b3dba588c83fb86b')
-
-build() {
- cd "$srcdir/${pkgname}_$pkgver"
-
- # install udev to rules to a systemd wide directory
- # ie use /usr/lib/udev/rules.d/ instead of /etc/udev/rules.d/
- # do the same for systemd
- sed -i 's|/etc/udev|/usr/lib/udev|g' install.sh
- # see /lib -> /usr/lib move
- sed -i 's|DESTDIR/lib|DESTDIR/usr/lib|g' install.sh
- sed -i 's|"/lib|"/usr/lib|g' etc/rules/99-laptop-mode.rules
-}
-
-package() {
- cd "$srcdir/${pkgname}_$pkgver"
- make DESTDIR="$pkgdir" INIT_D=none MAN_D=/usr/share/man install
-
- install -D -m755 "$srcdir/laptop-mode" "$pkgdir/etc/rc.d/laptop-mode"
-}
Copied: laptop-mode-tools/repos/community-any/PKGBUILD (from rev 86915, laptop-mode-tools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-03-24 12:53:27 UTC (rev 86916)
@@ -0,0 +1,63 @@
+# $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"
+}
Deleted: laptop-mode
===================================================================
--- laptop-mode 2013-03-24 12:53:12 UTC (rev 86915)
+++ laptop-mode 2013-03-24 12:53:27 UTC (rev 86916)
@@ -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
Copied: laptop-mode-tools/repos/community-any/laptop-mode (from rev 86915, laptop-mode-tools/trunk/laptop-mode)
===================================================================
--- laptop-mode (rev 0)
+++ laptop-mode 2013-03-24 12:53:27 UTC (rev 86916)
@@ -0,0 +1,57 @@
+#!/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-03-24 12:53:12 UTC (rev 86915)
+++ laptop-mode.install 2013-03-24 12:53:27 UTC (rev 86916)
@@ -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 86915, laptop-mode-tools/trunk/laptop-mode.install)
===================================================================
--- laptop-mode.install (rev 0)
+++ laptop-mode.install 2013-03-24 12:53:27 UTC (rev 86916)
@@ -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