-MD5 d2abd6b55179a572a9e446bc0e6ab54f ChangeLog 1153
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 3fb6c0734002411db70dc59323b324a8 speedfreq-0.5.ebuild 1819
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 fecad0323b80ea17fa5ad6f4afb8b06b speedfreq-0.7.2-r2.ebuild 1947
MD5 a6a2fc75140efbe75b0627df30f43818 speedfreq-0.7.2-r1.ebuild 1931
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 941c6c8b5e1f5f09034739a7524a1529 speedfreq-0.7.2.ebuild 1821
-MD5 4ae134571b43465ff61cbd376539f6cf files/0.7.2-python-ver.patch 348
+MD5 d2abd6b55179a572a9e446bc0e6ab54f ChangeLog 1153
+MD5 3fb6c0734002411db70dc59323b324a8 speedfreq-0.5.ebuild 1819
MD5 d46afb4e9c52383f9cd2f8d52413e25e files/battery.sh 790
-MD5 384a3c0ba9c47cef45f4b202e69f5581 files/digest-speedfreq-0.5 64
-MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2 66
+MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2-r2 66
MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2-r1 66
+MD5 f96b11d757583258d2fff576c68b06e2 files/digest-speedfreq-0.7.2 66
MD5 2d45ddb123b7fda1e575f896856ac082 files/speedfreq.conf 776
+MD5 4ae134571b43465ff61cbd376539f6cf files/0.7.2-python-ver.patch 348
+MD5 9cd026350463268af426e1a2cb8f6d97 files/battery-new.sh 1185
MD5 845ee0032b019b990a09877bc015e838 files/speedfreq.rc 1332
+MD5 384a3c0ba9c47cef45f4b202e69f5581 files/digest-speedfreq-0.5 64
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBZ7ABFhz/XBeRBtARAiAnAKCZZwpriTwfNHDrLE+T0bWPj0sQdACgmH6A
+3NA8s39pfK2lJNUx8KYtgO8=
+=j/3G
+-----END PGP SIGNATURE-----
--- /dev/null
+#!/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
--- /dev/null
+MD5 2d7fd41953f888469831a3fc0b622d42 speedfreq-0.7.2.tar.gz 31079
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/speedfreq/speedfreq-0.7.2-r2.ebuild,v 1.1 2004/10/09 09:31:36 cardoe 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-apps/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
+}