Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=892cae71ef42e4bfa54d440a253a371d56dff0d2
commit 892cae71ef42e4bfa54d440a253a371d56dff0d2 Author: James Buren <[email protected]> Date: Mon Jun 4 05:11:07 2012 -0500 cpuspeed-1.5-1-x86_64 * remove package diff --git a/source/apps-extra/cpuspeed/FrugalBuild b/source/apps-extra/cpuspeed/FrugalBuild deleted file mode 100644 index ddeb7a6..0000000 --- a/source/apps-extra/cpuspeed/FrugalBuild +++ /dev/null @@ -1,37 +0,0 @@ -# Compiling Time: 0.01 SBU -# Maintainer: Priyank Gosalia <[email protected]> - -pkgname=cpuspeed -pkgver=1.5 -pkgrel=1 -pkgdesc="A daemon that saves laptop battery by controlling the cpu speed" -url="http://carlthompson.net/Software/CPUSpeed" -depends=('glibc') -groups=('apps-extra') -archs=('i686' 'x86_64') -backup=('etc/cpuspeed.conf') -up2date="Flasttar $url" -source=(http://carlthompson.net/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 \ - rc.cpuspeed README.Frugalware) - -build() -{ - Fcd - - CFLAGS+=" -fno-exceptions" - Fmessage "Compiling cpuspeed" - Fmessage "gcc -o cpuspeed ${CFLAGS} cpuspeed.cc" - gcc -o cpuspeed ${CFLAGS} cpuspeed.cc || Fdie - Finstallrel 755 cpuspeed /sbin/cpuspeed - - # Config file - Ffilerel cpuspeed.conf etc/cpuspeed.conf - - Frcd2 - Fdoc README.Frugalware -} - -sha1sums=('e81351722ad5c77ac039bca13dcbbf4f8b82ec14' \ - '3367e0ac78e3300451f78f147e1d3d6b52580229' \ - '89ebfe7a4f25b1652a560d9537c0c3b79ab95d97') -# optimization OK diff --git a/source/apps-extra/cpuspeed/README.Frugalware b/source/apps-extra/cpuspeed/README.Frugalware deleted file mode 100644 index 7743b2b..0000000 --- a/source/apps-extra/cpuspeed/README.Frugalware +++ /dev/null @@ -1,13 +0,0 @@ -After installing cpuspeed, make sure you edit the configuration file -before starting it. The configuration file is located in '/etc/cpuspeed.conf'. - -Set the correct CPUFreq driver name in the confiuration file by setting the DRIVER value. -for eg: if you want to use the p4-clockmod driver, your cpuspeed configuration file -should contain: - --------------------- -DRIVER="p4-clockmod" --------------------- - -For a list of drivers, check this directory -'/lib/modules/_your_kernel_version_/kernel/arch/i386/kernel/cpu/cpufreq' diff --git a/source/apps-extra/cpuspeed/rc.cpuspeed b/source/apps-extra/cpuspeed/rc.cpuspeed deleted file mode 100644 index ebea0b1..0000000 --- a/source/apps-extra/cpuspeed/rc.cpuspeed +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh - -# (c) 2006 Priyank M.G. <[email protected]> -# portions of this file copied from the original cpuspeed.rc -# rc.cpuspeed for Frugalware -# distributed under GPL License - -# chkconfig: 2345 85 15 -# description: A daemon that minimizes power consumption by dynamically changing CPU speed (for laptops) - -source /lib/initscripts/functions -TEXTDOMAIN=cpuspeed -TEXTDOMAINDIR=/lib/initscripts/messages -actions=(restart start status stop) -daemon=$"cpuspeed daemon" -pid="pidof cpuspeed 2> /dev/null" - -[ -f /etc/cpuspeed.conf ] && . /etc/cpuspeed.conf - -rc_start() -{ - if [ -z "$(eval $pid)" ] - then - [ -e /var/lock/cpuspeed ] && exit - # make sure the userspace CPUFreq governor module is loaded - /sbin/modprobe -q cpufreq_userspace - - if [ ! -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver ] - then - if [ -n "$DRIVER" ] - then - # attempt to load scaling_driver if not loaded but it is specified in config - /sbin/modprobe -q $DRIVER - else - # if driver not specified - hint "Error: No driver specified in cpuspeed.conf" - hint "Specify a valid driver name in /etc/cpuspeed.conf" - return 0 - fi - fi - - start_msg - # Abort if unable to load a driver - if [ ! -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver ] - then - ok 999 - else - /sbin/cpuspeed -d $OPTS - RETVAL=$? - [ $RETVAL = 0 ] && touch /var/lock/cpuspeed - ok $? - fi - - else - ok 999 - fi -} - -rc_stop() -{ - stop_msg - if [ ! -z "$(eval $pid)" ]; then - killall cpuspeed - rm -f /var/lock/cpuspeed - ok $? - else - ok 999 - fi -} - -rc_exec $1 - _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
