summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-28 08:33:34 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-28 08:33:34 +0000
commit28ef32c2e2750bc7ea86ce21e97e657d55bb1cd7 (patch)
tree293475f9262cb639d6287df15944c641b255678b /sys-apps/speedfreq
parentver bump #45540 (diff)
downloadhistorical-28ef32c2e2750bc7ea86ce21e97e657d55bb1cd7.tar.gz
historical-28ef32c2e2750bc7ea86ce21e97e657d55bb1cd7.tar.bz2
historical-28ef32c2e2750bc7ea86ce21e97e657d55bb1cd7.zip
fix python include #43118
Diffstat (limited to 'sys-apps/speedfreq')
-rw-r--r--sys-apps/speedfreq/ChangeLog8
-rw-r--r--sys-apps/speedfreq/files/digest-speedfreq-0.7.2-r11
-rw-r--r--sys-apps/speedfreq/speedfreq-0.7.2-r1.ebuild72
3 files changed, 78 insertions, 3 deletions
diff --git a/sys-apps/speedfreq/ChangeLog b/sys-apps/speedfreq/ChangeLog
index 0c839d6e5f74..bfd790c9e41a 100644
--- a/sys-apps/speedfreq/ChangeLog
+++ b/sys-apps/speedfreq/ChangeLog
@@ -1,9 +1,11 @@
# ChangeLog for sys-apps/speedfreq
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/speedfreq/ChangeLog,v 1.3 2004/03/15 17:34:55 tantive Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/speedfreq/ChangeLog,v 1.4 2004/03/28 08:33:34 vapier Exp $
- 15 Mar 2004; Michael Imhof <tantive@gentoo.org> speedfreq-0.7.2.ebuild:
- Unmasked on x86.
+*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)
diff --git a/sys-apps/speedfreq/files/digest-speedfreq-0.7.2-r1 b/sys-apps/speedfreq/files/digest-speedfreq-0.7.2-r1
new file mode 100644
index 000000000000..8bf05d80f4d6
--- /dev/null
+++ b/sys-apps/speedfreq/files/digest-speedfreq-0.7.2-r1
@@ -0,0 +1 @@
+MD5 2d7fd41953f888469831a3fc0b622d42 speedfreq-0.7.2.tar.gz 31079
diff --git a/sys-apps/speedfreq/speedfreq-0.7.2-r1.ebuild b/sys-apps/speedfreq/speedfreq-0.7.2-r1.ebuild
new file mode 100644
index 000000000000..a54a356bdac9
--- /dev/null
+++ b/sys-apps/speedfreq/speedfreq-0.7.2-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/speedfreq/speedfreq-0.7.2-r1.ebuild,v 1.1 2004/03/28 08:33:34 vapier 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"
+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
+}
+
+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/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
+}