[arch-commits] Commit in tlp/repos/community-any (4 files)
Maxime Gauduin
alucryd at archlinux.org
Tue Feb 24 09:51:32 UTC 2015
Date: Tuesday, February 24, 2015 @ 10:51:32
Author: alucryd
Revision: 128169
archrelease: copy trunk to community-any
Added:
tlp/repos/community-any/PKGBUILD
(from rev 128168, tlp/trunk/PKGBUILD)
tlp/repos/community-any/tlp-arch.patch
(from rev 128168, tlp/trunk/tlp-arch.patch)
Deleted:
tlp/repos/community-any/PKGBUILD
tlp/repos/community-any/tlp-arch.patch
----------------+
PKGBUILD | 120 +++++++++++++++++++++++++++----------------------------
tlp-arch.patch | 103 ++++++++++++++++++++++++++++-------------------
2 files changed, 122 insertions(+), 101 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-24 09:51:19 UTC (rev 128168)
+++ PKGBUILD 2015-02-24 09:51:32 UTC (rev 128169)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Marc Schulte <bomba at nerdstube.de>
-
-pkgbase=tlp
-pkgname=('tlp' 'tlp-rdw')
-pkgver=0.7
-pkgrel=1
-arch=('any')
-url='http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html'
-license=('GPL2' 'GPL3')
-source=("https://github.com/linrunner/TLP/archive/${pkgver}.tar.gz"
- 'tlp-arch.patch')
-sha256sums=('bd313f478f897a658f2ca7db9665b8ce6796431b952f7df9aa80e59072cea4ea'
- '836a07ebb222d7d696ac33d8596a9b129debb70793bb4dbb6283ce8311ea303c')
-
-prepare() {
- cd TLP-${pkgver}
-
- patch -Np1 -i ../tlp-arch.patch
-}
-
-package_tlp() {
- pkgdesc='Linux Advanced Power Management'
- depends=('hdparm' 'iw' 'pciutils' 'rfkill' 'usbutils' 'util-linux')
- optdepends=('acpi_call: Sandy Bridge and newer ThinkPad battery functions'
- 'ethtool: Disable Wake On Lan'
- 'lsb-release: Display LSB release version in tlp-stat'
- 'smartmontools: Display S.M.A.R.T. data in tlp-stat'
- 'tp_smapi: ThinkPad battery functions'
- 'x86_energy_perf_policy: Set energy versus performance policy on x86 processors')
- conflicts=('laptop-mode-tools' 'pm-utils')
- backup=('etc/default/tlp')
-
- cd TLP-${pkgver}
-
- export TLP_SBIN='/usr/bin'
- export TLP_ULIB='/usr/lib/udev'
- export TLP_SYSD='/usr/lib/systemd/system'
- export TLP_NO_INIT='1'
- export TLP_NO_PMUTILS='1'
- export TLP_WITH_SYSTEMD='1'
-
- make DESTDIR="${pkgdir}" install-tlp
-
- install -dm 755 "${pkgdir}"/usr/share/man/man{1,8}
- install -m 644 man/*.1 "${pkgdir}"/usr/share/man/man1/
- install -m 644 man/*.8 "${pkgdir}"/usr/share/man/man8/
-}
-
-package_tlp-rdw() {
- pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
- depends=('networkmanager' 'tlp')
-
- cd TLP-${pkgver}
-
- make DESTDIR="${pkgdir}" install-rdw
-}
-
-# vim: ts=2 sw=2 et:
Copied: tlp/repos/community-any/PKGBUILD (from rev 128168, tlp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-02-24 09:51:32 UTC (rev 128169)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Marc Schulte <bomba at nerdstube.de>
+
+pkgbase=tlp
+pkgname=('tlp' 'tlp-rdw')
+pkgver=0.7
+pkgrel=2
+arch=('any')
+url='http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html'
+license=('GPL2' 'GPL3')
+source=("https://github.com/linrunner/TLP/archive/${pkgver}.tar.gz"
+ 'tlp-arch.patch')
+sha256sums=('bd313f478f897a658f2ca7db9665b8ce6796431b952f7df9aa80e59072cea4ea'
+ '833ed3348a46afee9c20119452c98d07caf050d955961beb4fdef76ff4e4a59a')
+
+prepare() {
+ cd TLP-${pkgver}
+
+ patch -Np1 -i ../tlp-arch.patch
+}
+
+package_tlp() {
+ pkgdesc='Linux Advanced Power Management'
+ depends=('hdparm' 'iw' 'pciutils' 'rfkill' 'usbutils' 'util-linux')
+ optdepends=('acpi_call: Sandy Bridge and newer ThinkPad battery functions'
+ 'ethtool: Disable Wake On Lan'
+ 'lsb-release: Display LSB release version in tlp-stat'
+ 'smartmontools: Display S.M.A.R.T. data in tlp-stat'
+ 'tp_smapi: ThinkPad battery functions'
+ 'x86_energy_perf_policy: Set energy versus performance policy on x86 processors')
+ conflicts=('laptop-mode-tools' 'pm-utils')
+ backup=('etc/default/tlp')
+
+ cd TLP-${pkgver}
+
+ export TLP_SBIN='/usr/bin'
+ export TLP_ULIB='/usr/lib/udev'
+ export TLP_SYSD='/usr/lib/systemd/system'
+ export TLP_NO_INIT='1'
+ export TLP_NO_PMUTILS='1'
+ export TLP_WITH_SYSTEMD='1'
+
+ make DESTDIR="${pkgdir}" install-tlp
+
+ install -dm 755 "${pkgdir}"/usr/share/man/man{1,8}
+ install -m 644 man/*.1 "${pkgdir}"/usr/share/man/man1/
+ install -m 644 man/*.8 "${pkgdir}"/usr/share/man/man8/
+}
+
+package_tlp-rdw() {
+ pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
+ depends=('networkmanager' 'tlp')
+
+ cd TLP-${pkgver}
+
+ make DESTDIR="${pkgdir}" install-rdw
+}
+
+# vim: ts=2 sw=2 et:
Deleted: tlp-arch.patch
===================================================================
--- tlp-arch.patch 2015-02-24 09:51:19 UTC (rev 128168)
+++ tlp-arch.patch 2015-02-24 09:51:32 UTC (rev 128169)
@@ -1,41 +0,0 @@
-diff -rupN tlp.orig/tlp.rules tlp/tlp.rules
---- tlp.orig/tlp.rules 2015-01-10 02:43:33.341388989 +0100
-+++ tlp/tlp.rules 2015-01-10 02:45:33.361390081 +0100
-@@ -4,7 +4,7 @@
- # This software is licensed under the GPL v2 or later.
-
- # handle change of power source ac/bat
--ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/sbin/tlp auto"
-+ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/tlp auto"
-
- # handle added usb devices (exclude subdevices via DRIVER=="USB")
--ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/lib/udev/tlp-usb-udev %p"
-+ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/tlp-usb-udev %p"
-diff -rupN tlp.orig/tlp.service tlp/tlp.service
---- tlp.orig/tlp.service 2015-01-10 02:43:33.341388989 +0100
-+++ tlp/tlp.service 2015-01-10 02:43:48.678055785 +0100
-@@ -11,8 +11,8 @@ Before=shutdown.target
- [Service]
- Type=simple
- RemainAfterExit=yes
--ExecStart=/usr/sbin/tlp init start
--ExecStop=/usr/sbin/tlp init stop
-+ExecStart=/usr/bin/tlp init start
-+ExecStop=/usr/bin/tlp init stop
-
- [Install]
- WantedBy=multi-user.target
-diff -rupN tlp.orig/tlp-sleep.service tlp/tlp-sleep.service
---- tlp.orig/tlp-sleep.service 2015-01-10 02:43:33.341388989 +0100
-+++ tlp/tlp-sleep.service 2015-01-10 02:43:48.678055785 +0100
-@@ -11,8 +11,8 @@ StopWhenUnneeded=yes
- [Service]
- Type=oneshot
- RemainAfterExit=yes
--ExecStart=/usr/sbin/tlp suspend
--ExecStop=/usr/sbin/tlp resume
-+ExecStart=/usr/bin/tlp suspend
-+ExecStop=/usr/bin/tlp resume
-
- [Install]
- WantedBy=sleep.target
Copied: tlp/repos/community-any/tlp-arch.patch (from rev 128168, tlp/trunk/tlp-arch.patch)
===================================================================
--- tlp-arch.patch (rev 0)
+++ tlp-arch.patch 2015-02-24 09:51:32 UTC (rev 128169)
@@ -0,0 +1,62 @@
+diff -rupN TLP-0.7.orig/Makefile TLP-0.7/Makefile
+--- TLP-0.7.orig/Makefile 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/Makefile 2015-02-24 10:45:59.877307094 +0100
+@@ -67,7 +67,7 @@ endif
+ install -D -m 644 thinkpad-radiosw $(_ACPI)/events/thinkpad-radiosw
+ install -m 755 thinkpad-radiosw.sh $(_ACPI)/
+ ifneq ($(TLP_NO_BASHCOMP),1)
+- install -D -m 644 tlp.bash_completion $(DESTDIR)/etc/bash_completion.d/tlp
++ install -D -m 644 tlp.bash_completion $(DESTDIR)/usr/share/bash-completion/completions/tlp
+ endif
+
+ install-rdw:
+@@ -102,7 +102,7 @@ uninstall-tlp:
+ rm -f $(_PLIB)/sleep.d/49tlp
+ rm $(_ACPI)/events/thinkpad-radiosw
+ rm $(_ACPI)/thinkpad-radiosw.sh
+- rm -f $(DESTDIR)/etc/bash_completion.d/tlp
++ rm -f $(DESTDIR)/usr/share/bash-completion/completions/tlp
+
+ uninstall-rdw:
+ # Package tlp-rdw
+diff -rupN TLP-0.7.orig/tlp.rules TLP-0.7/tlp.rules
+--- TLP-0.7.orig/tlp.rules 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/tlp.rules 2015-02-24 10:41:35.026696729 +0100
+@@ -4,7 +4,7 @@
+ # This software is licensed under the GPL v2 or later.
+
+ # handle change of power source ac/bat
+-ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/sbin/tlp auto"
++ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", RUN+="/usr/bin/tlp auto"
+
+ # handle added usb devices (exclude subdevices via DRIVER=="USB")
+-ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/lib/udev/tlp-usb-udev %p"
++ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/udev/tlp-usb-udev %p"
+diff -rupN TLP-0.7.orig/tlp.service TLP-0.7/tlp.service
+--- TLP-0.7.orig/tlp.service 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/tlp.service 2015-02-24 10:41:35.026696729 +0100
+@@ -12,8 +12,8 @@ Before=shutdown.target
+ [Service]
+ Type=simple
+ RemainAfterExit=yes
+-ExecStart=/usr/sbin/tlp init start
+-ExecStop=/usr/sbin/tlp init stop
++ExecStart=/usr/bin/tlp init start
++ExecStop=/usr/bin/tlp init stop
+
+ [Install]
+ WantedBy=multi-user.target
+diff -rupN TLP-0.7.orig/tlp-sleep.service TLP-0.7/tlp-sleep.service
+--- TLP-0.7.orig/tlp-sleep.service 2015-02-24 10:41:23.600434433 +0100
++++ TLP-0.7/tlp-sleep.service 2015-02-24 10:41:35.026696729 +0100
+@@ -11,8 +11,8 @@ StopWhenUnneeded=yes
+ [Service]
+ Type=oneshot
+ RemainAfterExit=yes
+-ExecStart=/usr/sbin/tlp suspend
+-ExecStop=/usr/sbin/tlp resume
++ExecStart=/usr/bin/tlp suspend
++ExecStop=/usr/bin/tlp resume
+
+ [Install]
+ WantedBy=sleep.target
More information about the arch-commits
mailing list