[arch-commits] Commit in linux-tools/trunk (PKGBUILD cpupower.install)

Sébastien Luttringer seblu at nymeria.archlinux.org
Fri Jan 25 23:27:21 UTC 2013


    Date: Saturday, January 26, 2013 @ 00:27:21
  Author: seblu
Revision: 82932

upkg: 3.7-5

- fix FS#33549

Added:
  linux-tools/trunk/cpupower.install
Modified:
  linux-tools/trunk/PKGBUILD

------------------+
 PKGBUILD         |    3 ++-
 cpupower.install |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-01-25 21:40:40 UTC (rev 82931)
+++ PKGBUILD	2013-01-25 23:27:21 UTC (rev 82932)
@@ -4,7 +4,7 @@
 pkgbase=linux-tools
 pkgname=('libtraceevent' 'perf' 'cpupower' 'x86_energy_perf_policy' 'usbip')
 pkgver=3.7
-pkgrel=4
+pkgrel=5
 license=('GPL2')
 arch=('i686' 'x86_64')
 url='http://www.kernel.org'
@@ -108,6 +108,7 @@
   depends=('bash' 'pciutils')
   conflicts=('cpufrequtils')
   replaces=('cpufrequtils')
+  install=cpupower.install
 
   pushd linux-$pkgver/tools/power/cpupower
   make \

Added: cpupower.install
===================================================================
--- cpupower.install	                        (rev 0)
+++ cpupower.install	2013-01-25 23:27:21 UTC (rev 82932)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  if [ "$(vercmp $2 3.7-4)" -le 0 ]; then
+    cat << EOF
+===> cpupower startup config file moved to /etc/default/cpupower
+EOF
+    fi
+}
+
+# vim:set ts=2 sw=2 ft=sh et:




More information about the arch-commits mailing list