summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2005-09-06 13:11:57 +0000
committerDoug Goldstein <cardoe@gentoo.org>2005-09-06 13:11:57 +0000
commit9470bec3486283f17a5b7ab3df3eb272c24d0b45 (patch)
tree8b71da36633eaa5dde7bc11d78ed3aee7473b059 /sys-power
parentoggvorbis -> vorbis for bug #94254. (diff)
downloadhistorical-9470bec3486283f17a5b7ab3df3eb272c24d0b45.tar.gz
historical-9470bec3486283f17a5b7ab3df3eb272c24d0b45.tar.bz2
historical-9470bec3486283f17a5b7ab3df3eb272c24d0b45.zip
No upstream activity. Has been replaced by other versions. Not supported
by us. Lots of unresolved bugs. Features missing. Any other reasons?
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/speedfreq/ChangeLog55
-rw-r--r--sys-power/speedfreq/Manifest25
-rw-r--r--sys-power/speedfreq/files/0.7.2-python-ver.patch11
-rwxr-xr-xsys-power/speedfreq/files/battery-new.sh41
-rwxr-xr-xsys-power/speedfreq/files/battery.sh27
-rw-r--r--sys-power/speedfreq/files/digest-speedfreq-0.51
-rw-r--r--sys-power/speedfreq/files/digest-speedfreq-0.7.21
-rw-r--r--sys-power/speedfreq/files/digest-speedfreq-0.7.2-r11
-rw-r--r--sys-power/speedfreq/files/digest-speedfreq-0.7.2-r21
-rw-r--r--sys-power/speedfreq/files/speedfreq.conf17
-rwxr-xr-xsys-power/speedfreq/files/speedfreq.rc51
-rw-r--r--sys-power/speedfreq/metadata.xml5
-rw-r--r--sys-power/speedfreq/speedfreq-0.5.ebuild66
-rw-r--r--sys-power/speedfreq/speedfreq-0.7.2-r1.ebuild75
-rw-r--r--sys-power/speedfreq/speedfreq-0.7.2-r2.ebuild76
-rw-r--r--sys-power/speedfreq/speedfreq-0.7.2.ebuild66
16 files changed, 0 insertions, 519 deletions
diff --git a/sys-power/speedfreq/ChangeLog b/sys-power/speedfreq/ChangeLog
deleted file mode 100644
index 19770202df9f..000000000000
--- a/sys-power/speedfreq/ChangeLog
+++ /dev/null
@@ -1,55 +0,0 @@
-# ChangeLog for sys-power/speedfreq
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/ChangeLog,v 1.3 2005/03/15 19:18:43 ciaranm Exp $
-
- 15 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> speedfreq-0.5.ebuild,
- speedfreq-0.7.2.ebuild, speedfreq-0.7.2-r1.ebuild,
- speedfreq-0.7.2-r2.ebuild:
- Dependency update: sys-apps/acpid -> sys-power/acpid.
-
-*speedfreq-0.7.2-r2 (14 Mar 2005)
-*speedfreq-0.7.2-r1 (14 Mar 2005)
-*speedfreq-0.7.2 (14 Mar 2005)
-*speedfreq-0.5 (14 Mar 2005)
-
- 14 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org>
- +files/0.7.2-python-ver.patch, +files/battery.sh, +files/battery-new.sh,
- +files/speedfreq.conf, +files/speedfreq.rc, +metadata.xml,
- +speedfreq-0.5.ebuild, +speedfreq-0.7.2.ebuild,
- +speedfreq-0.7.2-r1.ebuild, +speedfreq-0.7.2-r2.ebuild:
- Moved from sys-apps/speedfreq to sys-power/speedfreq.
-
- 09 Oct 2004; Doug Goldstein <cardoe@gentoo.org>
- +speedfreq-0.7.2-r2.ebuild, +files/battery-new.sh:
- added support for BAT0 and BAT1 (bug #66670)
-
- 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- speedfreq-0.7.2.ebuild:
- Masked speedfreq-0.7.2.ebuild stable for ppc
-
- 24 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org>
- speedfreq-0.7.2-r1.ebuild:
- posix chown (bug #58131)
-
- 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> speedfreq-0.5.ebuild,
- speedfreq-0.7.2.ebuild:
- QA - fix use invocation
-
- 10 May 2004; Daniel Ahlberg <aliz@gentoo.org> speedfreq-0.7.2-r1.ebuild:
- Added amd64 keyword, closing #50573.
-
-*speedfreq-0.7.2-r1 (28 Mar 2004)
-
- 28 Mar 2004; Mike Frysinger <vapier@gentoo.org> :
- Fix python search paths and use `make install` #43118.
-
-*speedfreq-0.7.2 (25 Feb 2004)
-
- 25 Feb 2004; Michael Imhof <tantive@gentoo.org> speedfreq-0.7.2.ebuild,
- files/speedfreq.rc:
- Version bumped. Fixed error in init-script.
-
-*speedfreq-0.5 (20 Aug 2003)
-
- 20 Aug 2003; Christian Axelsson <smiler@lanil.mine.nu> speedfreq-0.5.ebuild :
- Initial release. #26973
diff --git a/sys-power/speedfreq/Manifest b/sys-power/speedfreq/Manifest
deleted file mode 100644
index 80b79a9526f7..000000000000
--- a/sys-power/speedfreq/Manifest
+++ /dev/null
@@ -1,25 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 76904031795f546d17a2821afda8e308 speedfreq-0.7.2-r1.ebuild 1931
-MD5 d8bc4f6e1fe76cf04011d89d01e4c503 speedfreq-0.7.2.ebuild 1822
-MD5 9fa94b527615f98737479bd6db01d919 ChangeLog 2000
-MD5 dae7e7dd27260afa6193cf8a3d3be7df speedfreq-0.5.ebuild 1820
-MD5 eee89c8735d6571c7f6c181e5d143ee2 speedfreq-0.7.2-r2.ebuild 1950
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2 66
-MD5 4ae134571b43465ff61cbd376539f6cf files/0.7.2-python-ver.patch 348
-MD5 d46afb4e9c52383f9cd2f8d52413e25e files/battery.sh 790
-MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2-r1 66
-MD5 6647ea7257f5af7778675e678181e062 files/speedfreq.rc 1332
-MD5 ec528182b5f97ed77b798e760bfef35b files/speedfreq.conf 776
-MD5 384a3c0ba9c47cef45f4b202e69f5581 files/digest-speedfreq-0.5 64
-MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2-r2 66
-MD5 9cd026350463268af426e1a2cb8f6d97 files/battery-new.sh 1185
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFCNzV0LLFUmVNQ7rkRAmJEAKCNFSA5lciuCjaj6xcJ3F4NqqMEXgCeJrL0
-XqsHgnd12jxoUUlW383yuEI=
-=iUtw
------END PGP SIGNATURE-----
diff --git a/sys-power/speedfreq/files/0.7.2-python-ver.patch b/sys-power/speedfreq/files/0.7.2-python-ver.patch
deleted file mode 100644
index c6149ab3a9c7..000000000000
--- a/sys-power/speedfreq/files/0.7.2-python-ver.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig 2004-03-28 14:01:19.591638320 -0500
-+++ Makefile 2004-03-28 14:01:45.188746968 -0500
-@@ -14,7 +14,7 @@
- MAN ?= $(PREFIX)/share/man
- LIB ?= $(PREFIX)/lib
- INC ?= $(PREFIX)/include
--PY_VER ?= 2.2
-+PY_VER ?= $(shell python -c "import sys; print sys.version[0:3]")
- PY_INC ?= /usr/include/python$(PY_VER)
-
- INITD ?= /etc/rc.d/init.d
diff --git a/sys-power/speedfreq/files/battery-new.sh b/sys-power/speedfreq/files/battery-new.sh
deleted file mode 100755
index ab8f54e18a72..000000000000
--- a/sys-power/speedfreq/files/battery-new.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Battery acpi script that set different speedfreq modes depending on AC adapter
-# Can only handle one battery at the time, will add support for more when I get time
-#
-# To use this script add the following lines to /etc/acpi/events/default
-# event=battery.*
-# action=/etc/acpi/battery.sh %e
-
-set $*
-source /etc/conf.d/speedfreq
-[ "${SPEEDFREQ_SPEED}" != "auto" ] && exit 0
-
-case "$2" in
- BAT0)
- if [ $4 -eq 00000001 ] && [ -f /proc/acpi/battery/BAT0/state ] ; then
- action="`cat /proc/acpi/battery/BAT0/state | grep charging | cut -c 26-`"
- case $action in
- charging) /usr/bin/speedfreq -p performance
- logger "A/C adapter plugged in"
- ;;
- discharging) /usr/bin/speedfreq -p powersave
- logger "A/C adapter plugged out"
- ;;
- esac
- fi
- ;;
-
- BAT1)
- if [ $4 -eq 00000001 ] && [ -f /proc/acpi/battery/BAT1/state ] ; then
- action="`cat /proc/acpi/battery/BAT1/state | grep charging | cut -c 26-`"
- case $action in
- charging) /usr/bin/speedfreq -p performance
- logger "A/C adapter plugged in"
- ;;
- discharging) /usr/bin/speedfreq -p powersave
- logger "A/C adapter plugged out"
- ;;
- esac
- fi
- ;;
-esac
diff --git a/sys-power/speedfreq/files/battery.sh b/sys-power/speedfreq/files/battery.sh
deleted file mode 100755
index b9da7d15da5e..000000000000
--- a/sys-power/speedfreq/files/battery.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-# Battery acpi script that set different speedfreq modes depending on AC adapter
-# Can only handle one battery at the time, will add support for more when I get time
-#
-# To use this script add the following lines to /etc/acpi/events/default
-# event=battery.*
-# action=/etc/acpi/battery.sh %e
-
-set $*
-source /etc/conf.d/speedfreq
-[ "${SPEEDFREQ_SPEED}" != "auto" ] && exit 0
-
-case "$2" in
- BAT1)
- if [ $4 -eq 00000001 ] && [ -f /proc/acpi/battery/BAT1/state ] ; then
- action="`cat /proc/acpi/battery/BAT1/state | grep charging | cut -c 26-`"
- case $action in
- charging) /usr/bin/speedfreq -p performance
- logger "A/C adapter plugged in"
- ;;
- discharging) /usr/bin/speedfreq -p powersave
- logger "A/C adapter plugged out"
- ;;
- esac
- fi
- ;;
-esac
diff --git a/sys-power/speedfreq/files/digest-speedfreq-0.5 b/sys-power/speedfreq/files/digest-speedfreq-0.5
deleted file mode 100644
index 36b9ba324f40..000000000000
--- a/sys-power/speedfreq/files/digest-speedfreq-0.5
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d014030819b2d54e068ba44ccb124080 speedfreq-0.5.tar.gz 14178
diff --git a/sys-power/speedfreq/files/digest-speedfreq-0.7.2 b/sys-power/speedfreq/files/digest-speedfreq-0.7.2
deleted file mode 100644
index 8bf05d80f4d6..000000000000
--- a/sys-power/speedfreq/files/digest-speedfreq-0.7.2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2d7fd41953f888469831a3fc0b622d42 speedfreq-0.7.2.tar.gz 31079
diff --git a/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r1 b/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r1
deleted file mode 100644
index 8bf05d80f4d6..000000000000
--- a/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2d7fd41953f888469831a3fc0b622d42 speedfreq-0.7.2.tar.gz 31079
diff --git a/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r2 b/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r2
deleted file mode 100644
index 8bf05d80f4d6..000000000000
--- a/sys-power/speedfreq/files/digest-speedfreq-0.7.2-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2d7fd41953f888469831a3fc0b622d42 speedfreq-0.7.2.tar.gz 31079
diff --git a/sys-power/speedfreq/files/speedfreq.conf b/sys-power/speedfreq/files/speedfreq.conf
deleted file mode 100644
index 4ed4d0c7fb71..000000000000
--- a/sys-power/speedfreq/files/speedfreq.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/files/speedfreq.conf,v 1.1 2005/03/14 21:57:10 ciaranm Exp $
-
-# Select here how you want your CPU to be controlled
-# If you select auto you should use the battery.sh script
-# provided with this ebuild to control speed depending on A/C status
-# acceptable values:
-# powersave maximise power savings
-# performance maximise performance
-# dynamic adjust speed according to CPU load (default)
-# NNN set CPU to a fixed speed of NNN MHz
-# auto let the init script detect current battery status
-SPEEDFREQ_SPEED="auto"
-
-# For more options refer to `speedfreqd -h`
-SPEEDFREQ_OPTS=""
diff --git a/sys-power/speedfreq/files/speedfreq.rc b/sys-power/speedfreq/files/speedfreq.rc
deleted file mode 100755
index 585f4daa3068..000000000000
--- a/sys-power/speedfreq/files/speedfreq.rc
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/files/speedfreq.rc,v 1.1 2005/03/14 21:57:10 ciaranm Exp $
-
-depend() {
- need modules logger
- use acpid
-}
-
-check_battery() {
- [ "${SPEEDFREQ_SPEED}" == "auto" ] || return 0
-
- local status=""
- if [ -e /proc/acpi/battery/BAT0/state ] ; then
- status="$(awk '/^charging/ {print $NF}' /proc/acpi/battery/BAT0/state)"
- elif [ -e /proc/acpi/battery/BAT1/state ] ; then
- status="$(awk '/^charging/ {print $NF}' /proc/acpi/battery/BAT1/state)"
- elif [ -e /proc/pmu/info ] ; then
- status="$(awk '/^AC Power/ {print $NF}' /proc/pmu/info)"
- [ ${status} -eq 1 ] \
- && status="charging" \
- || status="discharging"
- fi
-
- case ${status} in
- charging) SPEEDFREQ_SPEED=performance;;
- discharging) SPEEDFREQ_SPEED=powersave;;
- *) SPEEDFREQ_SPEED=performance;;
- esac
- return 0
-}
-
-start() {
- check_battery
-
- ebegin "Starting speedfreq"
- /usr/sbin/speedfreqd -P /var/run/speedfreq.pid -p ${SPEEDFREQ_SPEED} ${SPEEDFREQ_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping speedfreq"
- if [ -e /var/run/speedfreq.pid ] ; then
- local pid="$(</var/run/speedfreq.pid)"
- kill ${pid} >& /dev/null
- eend $? "Could not kill pid '${pid}'"
- else
- eend 1 "Lost pid file :("
- fi
-}
diff --git a/sys-power/speedfreq/metadata.xml b/sys-power/speedfreq/metadata.xml
deleted file mode 100644
index 96a2d586367d..000000000000
--- a/sys-power/speedfreq/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>base-system</herd>
-</pkgmetadata>
diff --git a/sys-power/speedfreq/speedfreq-0.5.ebuild b/sys-power/speedfreq/speedfreq-0.5.ebuild
deleted file mode 100644
index ce6305782a06..000000000000
--- a/sys-power/speedfreq/speedfreq-0.5.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/speedfreq-0.5.ebuild,v 1.2 2005/03/15 19:18:43 ciaranm Exp $
-
-DESCRIPTION="daemon to control the CPU speed in 2.6 kernels"
-HOMEPAGE="http://www.goop.org/~jeremy/speedfreq/"
-SRC_URI="http://www.goop.org/~jeremy/speedfreq/${P}.tar.gz"
-
-LICENSE="GPL-1"
-SLOT="0"
-KEYWORDS="x86 ppc"
-IUSE="acpi"
-
-DEPEND="!ppc? ( acpi? ( sys-power/acpid ) )"
-
-is_2_6_kernel() {
- local KV_major="$(echo "${KV}" | cut -d. -f1)"
- local KV_minor="$(echo "${KV}" | cut -d. -f2)"
- [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] \
- && return 0 \
- || return 1
-}
-
-pkg_setup() {
- check_KV
- if [ ! is_2_6_kernel ] ; then
- eerror "This only works with 2.6.x kernels"
- die "Only works with 2.6.x kernels, not ${KV}"
- fi
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" || die "compile of speedfreq failed"
-}
-
-src_install() {
- dosbin speedfreqd
- dobin speedfreq
- doman *.[38]
- dolib.so libspeedfreq.so.1
- dosym libspeedfreq.so.1 /usr/lib/libspeedfreq.so
- exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
- insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
- insinto /usr/include
- doins speedfreq.h
- dodoc README
- if use acpi ; then
- exeinto /etc/acpi
- doexe ${FILESDIR}/battery.sh
- fi
-}
-
-pkg_postinst() {
- if use acpi ; then
- echo
- einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
- einfo "To use it add the following lines to your /etc/acpi/default/events"
- einfo " event=battery.*"
- einfo " action=/etc/acpi/battery.sh %e"
- einfo "Note that this only supports one battery at the time"
- echo
- einfo "Configuration should be done in /etc/conf.d/speedfreq"
- einfo "Make sure that you have sysfs mounted on /sys"
- echo
- fi
-}
diff --git a/sys-power/speedfreq/speedfreq-0.7.2-r1.ebuild b/sys-power/speedfreq/speedfreq-0.7.2-r1.ebuild
deleted file mode 100644
index ac59afea5cfa..000000000000
--- a/sys-power/speedfreq/speedfreq-0.7.2-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/speedfreq-0.7.2-r1.ebuild,v 1.2 2005/03/15 19:18:43 ciaranm Exp $
-
-inherit eutils
-
-DESCRIPTION="daemon to control the CPU speed in 2.6 kernels"
-HOMEPAGE="http://www.goop.org/~jeremy/speedfreq/"
-SRC_URI="http://www.goop.org/~jeremy/speedfreq/${P}.tar.gz"
-
-LICENSE="GPL-1"
-SLOT="0"
-KEYWORDS="x86 ppc ~amd64"
-IUSE="acpi"
-
-DEPEND="!ppc? ( acpi? ( sys-power/acpid ) )"
-
-is_2_6_kernel() {
- local KV_major="$(echo "${KV}" | cut -d. -f1)"
- local KV_minor="$(echo "${KV}" | cut -d. -f2)"
- [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] \
- && return 0 \
- || return 1
-}
-
-pkg_setup() {
- check_KV
- if [ ! is_2_6_kernel ] ; then
- eerror "This only works with 2.6.x kernels"
- die "Only works with 2.6.x kernels, not ${KV}"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PV}-python-ver.patch
- sed -i \
- -e 's/root\.root/root:root/' Makefile \
- || die "sed Makefile failed"
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" || die "compile of speedfreq failed"
-}
-
-src_install() {
- make \
- PREFIX=${D}/usr \
- INITD=${T} \
- install \
- || die "make install failed"
- exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
- insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
- dodoc README
- if use acpi ; then
- exeinto /etc/acpi
- doexe ${FILESDIR}/battery.sh
- fi
-}
-
-pkg_postinst() {
- if use acpi ; then
- echo
- einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
- einfo "To use it add the following lines to your /etc/acpi/events/default"
- einfo " event=battery.*"
- einfo " action=/etc/acpi/battery.sh %e"
- einfo "Note that this only supports one battery at the time"
- echo
- einfo "Configuration should be done in /etc/conf.d/speedfreq"
- einfo "Make sure that you have sysfs mounted on /sys"
- echo
- fi
-}
diff --git a/sys-power/speedfreq/speedfreq-0.7.2-r2.ebuild b/sys-power/speedfreq/speedfreq-0.7.2-r2.ebuild
deleted file mode 100644
index d03d48154929..000000000000
--- a/sys-power/speedfreq/speedfreq-0.7.2-r2.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/speedfreq-0.7.2-r2.ebuild,v 1.2 2005/03/15 19:18:43 ciaranm Exp $
-
-inherit eutils
-
-DESCRIPTION="daemon to control the CPU speed in 2.6 kernels"
-HOMEPAGE="http://www.goop.org/~jeremy/speedfreq/"
-SRC_URI="http://www.goop.org/~jeremy/speedfreq/${P}.tar.gz"
-
-LICENSE="GPL-1"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~amd64"
-IUSE="acpi"
-
-DEPEND="!ppc? ( acpi? ( sys-power/acpid ) )"
-
-is_2_6_kernel() {
- local KV_major="$(echo "${KV}" | cut -d. -f1)"
- local KV_minor="$(echo "${KV}" | cut -d. -f2)"
- [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] \
- && return 0 \
- || return 1
-}
-
-pkg_setup() {
- check_KV
- if [ ! is_2_6_kernel ] ; then
- eerror "This only works with 2.6.x kernels"
- die "Only works with 2.6.x kernels, not ${KV}"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PV}-python-ver.patch
-
- sed -i \
- -e 's/root\.root/root:root/' Makefile \
- || die "sed Makefile failed"
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" || die "compile of speedfreq failed"
-}
-
-src_install() {
- make \
- PREFIX=${D}/usr \
- INITD=${T} \
- install \
- || die "make install failed"
- exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
- insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
- dodoc README
- if use acpi ; then
- exeinto /etc/acpi
- newexe ${FILESDIR}/battery-new.sh battery.sh
- fi
-}
-
-pkg_postinst() {
- if use acpi ; then
- echo
- einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
- einfo "To use it add the following lines to your /etc/acpi/events/default"
- einfo " event=battery.*"
- einfo " action=/etc/acpi/battery.sh %e"
- einfo "Note that this only supports one battery at the time"
- echo
- einfo "Configuration should be done in /etc/conf.d/speedfreq"
- einfo "Make sure that you have sysfs mounted on /sys"
- echo
- fi
-}
diff --git a/sys-power/speedfreq/speedfreq-0.7.2.ebuild b/sys-power/speedfreq/speedfreq-0.7.2.ebuild
deleted file mode 100644
index 2127b47f7e32..000000000000
--- a/sys-power/speedfreq/speedfreq-0.7.2.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/speedfreq/speedfreq-0.7.2.ebuild,v 1.2 2005/03/15 19:18:43 ciaranm Exp $
-
-DESCRIPTION="daemon to control the CPU speed in 2.6 kernels"
-HOMEPAGE="http://www.goop.org/~jeremy/speedfreq/"
-SRC_URI="http://www.goop.org/~jeremy/speedfreq/${P}.tar.gz"
-
-LICENSE="GPL-1"
-SLOT="0"
-KEYWORDS="x86 ppc"
-IUSE="acpi"
-
-DEPEND="!ppc? ( acpi? ( sys-power/acpid ) )"
-
-is_2_6_kernel() {
- local KV_major="$(echo "${KV}" | cut -d. -f1)"
- local KV_minor="$(echo "${KV}" | cut -d. -f2)"
- [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] \
- && return 0 \
- || return 1
-}
-
-pkg_setup() {
- check_KV
- if [ ! is_2_6_kernel ] ; then
- eerror "This only works with 2.6.x kernels"
- die "Only works with 2.6.x kernels, not ${KV}"
- fi
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" || die "compile of speedfreq failed"
-}
-
-src_install() {
- dosbin speedfreqd
- dobin speedfreq
- doman *.[38]
- dolib.so libspeedfreq.so.1
- dosym libspeedfreq.so.1 /usr/lib/libspeedfreq.so
- exeinto /etc/init.d ; newexe ${FILESDIR}/speedfreq.rc speedfreq
- insinto /etc/conf.d ; newins ${FILESDIR}/speedfreq.conf speedfreq
- insinto /usr/include
- doins speedfreq.h
- dodoc README
- if use acpi ; then
- exeinto /etc/acpi
- doexe ${FILESDIR}/battery.sh
- fi
-}
-
-pkg_postinst() {
- if use acpi ; then
- echo
- einfo "A sample script for powercontrol has been placed in /etc/acpi/battery.sh"
- einfo "To use it add the following lines to your /etc/acpi/default/events"
- einfo " event=battery.*"
- einfo " action=/etc/acpi/battery.sh %e"
- einfo "Note that this only supports one battery at the time"
- echo
- einfo "Configuration should be done in /etc/conf.d/speedfreq"
- einfo "Make sure that you have sysfs mounted on /sys"
- echo
- fi
-}