summaryrefslogtreecommitdiff
path: root/community/linux-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-27 01:12:11 -0800
committerroot <root@rshg054.dnsready.net>2013-01-27 01:12:11 -0800
commit3ed565983048f1226dd3f258a3f0acaf04536dda (patch)
tree9ea304021502408af54b935da41441afb7e4bd62 /community/linux-tools
parent7d3e94229ca9849421d263542eb2c61f64a91c10 (diff)
Sun Jan 27 01:11:57 PST 2013
Diffstat (limited to 'community/linux-tools')
-rw-r--r--community/linux-tools/PKGBUILD5
-rw-r--r--community/linux-tools/cpupower.install13
2 files changed, 16 insertions, 2 deletions
diff --git a/community/linux-tools/PKGBUILD b/community/linux-tools/PKGBUILD
index 469f475a4..a8d585b1a 100644
--- a/community/linux-tools/PKGBUILD
+++ b/community/linux-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 82779 2013-01-24 12:23:58Z seblu $
+# $Id: PKGBUILD 82938 2013-01-25 23:54:11Z seblu $
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
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 @@ package_cpupower() {
depends=('bash' 'pciutils')
conflicts=('cpufrequtils')
replaces=('cpufrequtils')
+ install=cpupower.install
pushd linux-$pkgver/tools/power/cpupower
make \
diff --git a/community/linux-tools/cpupower.install b/community/linux-tools/cpupower.install
new file mode 100644
index 000000000..10e07ae52
--- /dev/null
+++ b/community/linux-tools/cpupower.install
@@ -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: