From e6c1f2962f1de2acca55dd8b8cb2b34d2e198722 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 26 Jan 2013 20:29:24 +0000 Subject: [PATCH] community/linux-tools to 3.7-5 --- community/linux-tools/PKGBUILD | 3 ++- community/linux-tools/cpupower.install | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 community/linux-tools/cpupower.install diff --git a/community/linux-tools/PKGBUILD b/community/linux-tools/PKGBUILD index ff5889d85..dc2393ba0 100644 --- a/community/linux-tools/PKGBUILD +++ b/community/linux-tools/PKGBUILD @@ -7,7 +7,7 @@ pkgbase=linux-tools pkgname=('libtraceevent' 'perf' 'cpupower' 'usbip') pkgver=3.7 -pkgrel=4 +pkgrel=5 license=('GPL2') arch=('i686' 'x86_64') url='http://www.kernel.org' @@ -112,6 +112,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: