summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/cpufrequtils
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/extra-testing/cpufrequtils
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/extra-testing/cpufrequtils')
-rw-r--r--abs/extra-testing/cpufrequtils/PKGBUILD32
-rw-r--r--abs/extra-testing/cpufrequtils/cpufreq.confd14
-rw-r--r--abs/extra-testing/cpufrequtils/cpufreq.rcd60
3 files changed, 0 insertions, 106 deletions
diff --git a/abs/extra-testing/cpufrequtils/PKGBUILD b/abs/extra-testing/cpufrequtils/PKGBUILD
deleted file mode 100644
index c9087aa..0000000
--- a/abs/extra-testing/cpufrequtils/PKGBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 66595 2010-02-01 00:00:07Z giovanni $
-# Maintainer: kevin <kevin@archlinux.org>
-# Contributor: phrakture <aaronmgriffin+gmail+com>
-# Contributor: SpepS <dreamspepser at yahoo dot it>
-
-pkgname=cpufrequtils
-pkgver=008
-pkgrel=1
-pkgdesc="Userspace tools for the kernel cpufreq subsystem"
-arch=('i686' 'x86_64')
-url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
-license=('GPL')
-depends=('sysfsutils')
-backup=('etc/conf.d/cpufreq')
-source=(http://www.kernel.org/pub/linux/utils/kernel/cpufreq/${pkgname}-${pkgver}.tar.bz2
- cpufreq.rcd
- cpufreq.confd)
-options=(!libtool)
-
-build()
-{
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make -j1 || return 1
- make INSTALL="/bin/install -c" mandir=/usr/share/man DESTDIR="${pkgdir}" install || return 1
-
- install -D -m755 ${srcdir}/cpufreq.rcd "${pkgdir}/etc/rc.d/cpufreq" || return 1
- install -D -m644 ${srcdir}/cpufreq.confd "${pkgdir}/etc/conf.d/cpufreq" || return 1
-}
-md5sums=('c59b71c044d463896f3247e8dd83dd7e'
- '7f2b5085df44d2df3e7c2d0b9f6dab08'
- 'baae1f2abffc6bef2bd32a8dd8263c09')
diff --git a/abs/extra-testing/cpufrequtils/cpufreq.confd b/abs/extra-testing/cpufrequtils/cpufreq.confd
deleted file mode 100644
index 2189097..0000000
--- a/abs/extra-testing/cpufrequtils/cpufreq.confd
+++ /dev/null
@@ -1,14 +0,0 @@
-#configuration for cpufreq control
-
-# valid governors:
-# ondemand, performance, powersave,
-# conservative, userspace
-#governor="ondemand"
-
-# limit frequency range (optional)
-# valid suffixes: Hz, kHz (default), MHz, GHz, THz
-#min_freq="2.25GHz"
-#max_freq="3GHz"
-
-# use freq to set up the exact cpu frequency using it with userspace governor
-#freq=
diff --git a/abs/extra-testing/cpufrequtils/cpufreq.rcd b/abs/extra-testing/cpufrequtils/cpufreq.rcd
deleted file mode 100644
index 9bc19b1..0000000
--- a/abs/extra-testing/cpufrequtils/cpufreq.rcd
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-# source application-specific settings
-[ -f /etc/conf.d/cpufreq ] && . /etc/conf.d/cpufreq
-
-case "$1" in
- start)
- stat_busy "Setting cpufreq governing rules"
-
- params=""
- if [ -n "$governor" ]; then
- mod="cpufreq_$governor"
- params="-g $governor"
- grep -qw "$governor" /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors || modprobe -q $mod
- if [ $? -eq 0 ]; then
- if [ "$min_freq" != "" ]; then
- params="$params -d $min_freq"
- fi
- if [ "$max_freq" != "" ]; then
- params="$params -u $max_freq"
- fi
- else
- stat_busy " Cannot load governor module '$governor'"
- stat_fail
- exit
- fi
- fi
-
- if [ "$params" != "" ]; then
- CPUS=$(sed -ne 's/^processor.* \([0-9]\+\)$/\1/p' /proc/cpuinfo)
- stat_append ", cpu"
- for cpu in $CPUS; do
- stat_append " $cpu"
- cpufreq-set -c $cpu $params
- if [ "$freq" != "" ]; then
- cpufreq-set -c $cpu -f $freq
- fi
- done
- stat_done
- else
- stat_busy " Invalid configuration in /etc/conf.d/cpufreq"
- stat_fail
- fi
- ;;
- stop)
- # nothing to do
- ;;
- restart)
- $0 start
- ;;
- set)
- # TODO: make callable... "cpufreq set 800MHz"
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0