Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added sys-power/cpufreqd + current_now patch

  • Loading branch information...
commit f2506d745fb8f74842f4ec9e4aa6267121fab3dc 1 parent a998f17
Jean-Christophe Petkovich authored
View
364 sys-power/cpufreqd/ChangeLog
@@ -0,0 +1,364 @@
+# ChangeLog for sys-power/cpufreqd
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.63 2010/07/19 19:18:34 josejx Exp $
+
+ 19 Jul 2010; Joseph Jezak <josejx@gentoo.org> cpufreqd-2.4.2.ebuild:
+ Marked ppc stable for bug #323195.
+
+ 27 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> cpufreqd-2.1.1.ebuild:
+ Remove support for obsolete lm_sensors.
+
+ 14 Jun 2010; Christian Faulhammer <fauli@gentoo.org> cpufreqd-2.4.2.ebuild:
+ stable x86, bug 323195
+
+ 13 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> cpufreqd-2.4.2.ebuild:
+ amd64 stable wrt #323195
+
+*cpufreqd-2.4.2 (26 May 2010)
+
+ 26 May 2010; Thilo Bangert <bangert@gentoo.org> +cpufreqd-2.4.2.ebuild:
+ version bump (#318959)
+
+*cpufreqd-2.3.4-r2 (10 Jan 2010)
+
+ 10 Jan 2010; Thilo Bangert <bangert@gentoo.org> +cpufreqd-2.3.4-r2.ebuild,
+ +files/cpufreqd-2.3.4-lm_sensors-3-r2.patch:
+ fix cpu temp detection - bug #295044
+
+*cpufreqd-2.3.4-r1 (27 Oct 2009)
+
+ 27 Oct 2009; Thilo Bangert <bangert@gentoo.org>
+ +files/2.2.1-cpu_all.patch, +cpufreqd-2.3.4-r1.ebuild,
+ +files/cpufreqd-2.3.4-lm_sensors-3.patch:
+ fix logical error for CPU_ALL in cpu_evaluate (bug #187581), fix building
+ with >lm_sensors-3 (bug #233481)
+
+*cpufreqd-2.3.4 (20 Oct 2009)
+
+ 20 Oct 2009; Thilo Bangert <bangert@gentoo.org>
+ -files/cpufreqd-2.1.1-init.d, +cpufreqd-2.3.4.ebuild:
+ version bump (bug #233481) - fixes install of broken .la files (bug
+ #268701) - remove obsolet init script
+
+ 20 Oct 2009; Thilo Bangert <bangert@gentoo.org> cpufreqd-2.1.1.ebuild,
+ files/cpufreqd-init.d:
+ be more descriptive as to what went wrong (bug #198113)
+
+ 16 Oct 2009; Thilo Bangert <bangert@gentoo.org> cpufreqd-2.1.1.ebuild,
+ cpufreqd-2.2.0-r2.ebuild, cpufreqd-2.2.1.ebuild:
+ fix dep on lm_sensors (<3) bug #244588
+
+ 16 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
+ add GLEP 56 USE flag desc from use.local.desc
+
+ 11 Oct 2007; Tom Gall <tgall@gentoo.org> cpufreqd-2.2.1.ebuild:
+ added ~ppc64 bug #195191
+
+ 17 May 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
+ Assigning sys-power/cpufreqd directly to mobile at gentoo.org.
+
+ 17 May 2007; Christian Heim <phreak@gentoo.org>
+ -files/cpufreqd-2.2.0-init.d, -files/cpufreqd-2.2.1-init.d,
+ +files/cpufreqd-init.d, cpufreqd-2.2.0-r2.ebuild, cpufreqd-2.2.1.ebuild:
+ Cleaning up $FILESDIR.
+
+ 13 Mar 2007; Christian Heim <phreak@gentoo.org>
+ +files/cpufreqd-conf.d.patch, cpufreqd-2.2.0-r2.ebuild,
+ cpufreqd-2.2.1.ebuild:
+ Fixing the "movie" rule of cpufreqd. Thanks to Matthew Schultz <mattsch at
+ gmail.com> in #169334.
+
+ 30 Nov 2006; Piotr Jaroszyński <peper@gentoo.org> cpufreqd-2.2.1.ebuild:
+ No need to sed the config any more, thanks to Alon Bar-Lev
+ <alonbl@gentoo.org>, bug #156096.
+
+*cpufreqd-2.2.1 (30 Nov 2006)
+
+ 30 Nov 2006; Piotr Jaroszyński <peper@gentoo.org>
+ +files/cpufreqd-2.2.1-init.d, +cpufreqd-2.2.1.ebuild:
+ Version bump.
+
+ 30 Nov 2006; Piotr Jaroszyński <peper@gentoo.org>
+ -files/cpufreqd-2.0.0-init.d, -files/cpufreqd-2.1.0-init.d,
+ -cpufreqd-1.2.3.ebuild, -cpufreqd-2.0.0.ebuild, -cpufreqd-2.1.0.ebuild:
+ Remove old versions.
+
+ 13 Nov 2006; Joseph Jezak <josejx@gentoo.org> cpufreqd-2.1.1.ebuild:
+ Marked ppc stable for bug #153260.
+
+ 04 Nov 2006; Danny van Dyk <kugelfang@gentoo.org> cpufreqd-2.1.1.ebuild:
+ Marked stable on amd64.
+
+ 29 Oct 2006; Andrej Kacian <ticho@gentoo.org> cpufreqd-2.1.1.ebuild:
+ Stable on x86, bug #153260.
+
+ 24 Oct 2006; Piotr Jaroszyński <peper@gentoo.org>
+ files/cpufreqd-2.2.0-init.d:
+ Fixed the init script to start if at least one cpu supports freq scaling.
+
+*cpufreqd-2.2.0-r2 (22 Oct 2006)
+
+ 22 Oct 2006; Christian Heim <phreak@gentoo.org>
+ -files/cpufreqd-2.2.0-Makefile.am.patch, files/cpufreqd-2.2.0-init.d,
+ -cpufreqd-2.2.0-r1.ebuild, +cpufreqd-2.2.0-r2.ebuild:
+ Another revision bump, seems my initial intention (the one in #152096)
+ wasn't that good. Reverting my changes. Furthermore, seems like I missed to
+ add automake to the DEPEND, #152290 (thanks to t35t0r <t35t0r at
+ gmail.com>).
+
+*cpufreqd-2.2.0-r1 (20 Oct 2006)
+
+ 20 Oct 2006; Christian Heim <phreak@gentoo.org>
+ +files/cpufreqd-2.2.0-Makefile.am.patch, files/cpufreqd-2.2.0-init.d,
+ -cpufreqd-2.2.0.ebuild, +cpufreqd-2.2.0-r1.ebuild:
+ Revision bump, fixing #152096 (by installing cpufreqd into /etc/conf.d);
+ Adding an extra comment to the init-script, why it could fail (#152057).
+ Thanks to Daniel Franke for both.
+
+ 16 Oct 2006; Christian Heim <phreak@gentoo.org>
+ +files/cpufreqd-2.2.0-init.d:
+ Adding the init-script for 2.2.0, thanks to Calchan for reporting it.
+
+ 14 Oct 2006; Christian Heim <phreak@gentoo.org> cpufreqd-2.2.0.ebuild:
+ Dropping from nvclock-0.8b2 to 0.8b (thanks to Marijn Schouten and Bernard
+ Cafarelli in #150478).
+
+*cpufreqd-2.2.0 (07 Oct 2006)
+
+ 07 Oct 2006; Christian Heim <phreak@gentoo.org>
+ +files/nvclock0.8b2-fpic.patch, +cpufreqd-2.2.0.ebuild:
+ Version bump. Also bumping the nvclock to use the latest one available from
+ UPSTREAM (0.8b2).
+
+ 07 Oct 2006; Christian Heim <phreak@gentoo.org> cpufreqd-2.1.0.ebuild,
+ cpufreqd-2.1.1.ebuild:
+ Fixing the DEPEND to use only cpufrequtils-002 or greater, since 001 has
+ known issues with 2.6.18 and setting the governor (thanks alonbl for
+ reporting). Closes #150304.
+
+ 13 Jul 2006; Christian Heim <phreak@gentoo.org> metadata.xml,
+ cpufreqd-1.2.3.ebuild, cpufreqd-2.0.0.ebuild, cpufreqd-2.1.0.ebuild,
+ cpufreqd-2.1.1.ebuild:
+ Fix Quotes; Taking temporary maintainership
+
+ 04 Jul 2006; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.1.1-init.d:
+ Added missing file, bug #138906.
+
+*cpufreqd-2.1.1 (23 Jun 2006)
+
+ 23 Jun 2006; Henrik Brix Andersen <brix@gentoo.org>
+ +cpufreqd-2.1.1.ebuild:
+ Version bump, fixes bug #137396.
+
+*cpufreqd-2.1.0 (20 Jun 2006)
+
+ 20 Jun 2006; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.1.0-init.d, +cpufreqd-2.1.0.ebuild:
+ Version bump, thanks to Alon Bar-Lev in bug #137396.
+
+ 11 May 2006; Henrik Brix Andersen <brix@gentoo.org>
+ files/cpufreqd-2.0.0-init.d:
+ Make init script start after lm_sensors, thanks to Andrea Ratto in bug #132599.
+
+ 08 May 2006; Jason Wever <weeve@gentoo.org> cpufreqd-2.0.0.ebuild:
+ Added ~sparc keyword.
+
+ 14 Feb 2006; Henrik Brix Andersen <brix@gentoo.org>
+ files/cpufreqd-2.0.0-init.d:
+ Do not use --quiet with start-stop-daemon.
+
+ 19 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> cpufreqd-2.0.0.ebuild:
+ Add warning message about missing plug-ins, thanks to Earthwings.
+
+ 19 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> cpufreqd-2.0.0.ebuild:
+ Stable on amd64.
+
+ 02 Jan 2006; Michael Hanselmann <hansmi@gentoo.org> cpufreqd-2.0.0.ebuild:
+ Stable on ppc.
+
+ 30 Dec 2005; Henrik Brix Andersen <brix@gentoo.org> cpufreqd-2.0.0.ebuild:
+ Stable on x86.
+
+ 22 Dec 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/nvclock0.8b-fpic.patch, cpufreqd-2.0.0.ebuild:
+ Compile nvclock with -fPIC, bug #111675.
+
+*cpufreqd-2.0.0 (27 Nov 2005)
+
+ 27 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0-init.d, -files/cpufreqd-2.0.0-pre1-cpufreqd.conf,
+ -files/cpufreqd-2.0.0-pre1-nv.patch, -files/cpufreqd-2.0.0_pre1-init.d,
+ -files/cpufreqd-2.0.0_pre2-init.d, -cpufreqd-2.0.0_pre1-r1.ebuild,
+ -cpufreqd-2.0.0_pre2.ebuild, +cpufreqd-2.0.0.ebuild:
+ Version bump, bug #113676. Removed pre-releases.
+
+ 21 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
+ cpufreqd-2.0.0_pre1-r1.ebuild, cpufreqd-2.0.0_pre2.ebuild:
+ Do not set RDEPEND=${DEPEND}.
+
+*cpufreqd-2.0.0_pre2 (02 Nov 2005)
+
+ 02 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0_pre2-init.d, +cpufreqd-2.0.0_pre2.ebuild:
+ Version bump.
+
+ 22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -files/cpufreqd-2.0.0-beta4-cpu_interval_inconsistency.diff,
+ -files/cpufreqd-2.0.0_beta4-init.d, -cpufreqd-1.2.2.ebuild,
+ -cpufreqd-2.0.0_beta4.ebuild, -cpufreqd-2.0.0_beta4-r1.ebuild,
+ -cpufreqd-2.0.0_pre1.ebuild:
+ Pruned old versions.
+
+ 21 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ cpufreqd-2.0.0_pre1.ebuild, cpufreqd-2.0.0_pre1-r1.ebuild:
+ Fix USE flag type-o.
+
+ 17 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ cpufreqd-2.0.0_pre1-r1.ebuild:
+ Apply nvclock patch conditionally.
+
+*cpufreqd-2.0.0_pre1-r1 (17 Oct 2005)
+
+ 17 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ files/cpufreqd-2.0.0-pre1-nv.patch, +cpufreqd-2.0.0_pre1-r1.ebuild:
+ Updated nvclock plug-in.
+
+*cpufreqd-2.0.0_pre1 (16 Oct 2005)
+
+ 16 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/nvclock0.8b-fd.patch, +files/cpufreqd-2.0.0-pre1-cpufreqd.conf,
+ +files/cpufreqd-2.0.0-pre1-nv.patch, +files/cpufreqd-2.0.0_pre1-init.d,
+ +cpufreqd-2.0.0_pre1.ebuild:
+ Version bump, bug #107334 and bug #103877. Thanks to Prakash Punnoor.
+
+ 17 Sep 2005; Ciaran McCreesh <ciaranm@gentoo.org> ChangeLog:
+ Converted to UTF-8, fixed encoding screwups
+
+ 02 Sep 2005; Henrik Brix Andersen <brix@gentoo.org>
+ files/cpufreqd-2.0.0_beta4-init.d:
+ Added 'use logger' to init script.
+
+*cpufreqd-2.0.0_beta4-r1 (29 Aug 2005)
+
+ 29 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0-beta4-cpu_interval_inconsistency.diff,
+ +cpufreqd-2.0.0_beta4-r1.ebuild:
+ Added patch from upstream to fix cpu/cpu_interval confusion as noted in bug
+ #103798.
+
+ 28 Aug 2005; Marcus D. Hanwell <cryos@gentoo.org> cpufreqd-1.2.3.ebuild:
+ Stable on amd64.
+
+*cpufreqd-2.0.0_beta4 (26 Aug 2005)
+
+ 26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0_beta4-init.d, +cpufreqd-2.0.0_beta4.ebuild:
+ New beta release, bug #103798.
+
+ 26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ -files/1.1.2-prefer-sysfs.patch, -files/cpufreqd-1.2.2-memleaks.patch,
+ -cpufreqd-1.1.2-r1.ebuild, -cpufreqd-1.2.2-r1.ebuild:
+ Pruned old versions.
+
+ 01 Jul 2005; Joseph Jezak <josejx@gentoo.org> cpufreqd-1.2.3.ebuild:
+ Marked ppc stable.
+
+ 24 Jun 2005; <brix@gentoo.org> cpufreqd-1.2.3.ebuild:
+ Stable on x86.
+
+ 26 May 2005; <brix@gentoo.org> cpufreqd-1.2.2-r1.ebuild:
+ Stabilizing on x86 to close memory leaks.
+
+*cpufreqd-1.2.3 (24 May 2005)
+
+ 24 May 2005; <brix@gentoo.org> +cpufreqd-1.2.3.ebuild:
+ Version bump.
+
+*cpufreqd-1.2.2-r1 (16 May 2005)
+
+ 16 May 2005; <brix@gentoo.org> +files/cpufreqd-1.2.2-memleaks.patch,
+ +cpufreqd-1.2.2-r1.ebuild:
+ Close memleaks, bug #92610.
+
+ 07 Apr 2005; Simon Stelling <blubb@gentoo.org> cpufreqd-1.2.2.ebuild:
+ stable on amd64
+
+*cpufreqd-1.2.2 (14 Mar 2005)
+*cpufreqd-1.1.2-r1 (14 Mar 2005)
+
+ 14 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org>
+ +files/1.1.2-prefer-sysfs.patch, +metadata.xml, +cpufreqd-1.1.2-r1.ebuild,
+ +cpufreqd-1.2.2.ebuild:
+ Moved from sys-apps/cpufreqd to sys-power/cpufreqd.
+
+ 02 Mar 2005; Henrik Brix Andersen <brix@gentoo.org> cpufreqd-1.2.2.ebuild:
+ Stable on x86.
+
+*cpufreqd-1.2.2 (29 Jan 2005)
+
+ 29 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> +cpufreqd-1.2.2.ebuild:
+ Version bump, fixing bug #61368. This version allows using percentages under
+ kernel 2.6.x. Transfering ownership to the mobile herd.
+
+*cpufreqd-1.1.2-r1 (27 Jul 2004)
+
+ 27 Jul 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/1.1.2-prefer-sysfs.patch, -cpufreqd-1.1.1.ebuild,
+ +cpufreqd-1.1.2-r1.ebuild, -cpufreqd-1.1.2.ebuild, -cpufreqd-1.1.ebuild:
+ Verison bump to fix init.d script bug #46959 et al, add patch to use sysfs
+ over procfs #43567 by Dennis Nienhüser, and add amd64 #58127 by James Couzens.
+
+ 23 Jul 2004; Alexander Gabert <pappy@gentoo.org> cpufreqd-1.1.1.ebuild,
+ cpufreqd-1.1.2.ebuild, cpufreqd-1.1.ebuild:
+ changed logic for filtering/suppressing PIE building, thanks to solar
+
+ 22 Jul 2004; Alexander Gabert <pappy@gentoo.org> cpufreqd-1.1.1.ebuild,
+ cpufreqd-1.1.2.ebuild, cpufreqd-1.1.ebuild:
+ library load errors and segfaults when built as automatic PIE, disabling PIE
+ support for all packages
+
+*cpufreqd-1.1.2 (20 Jul 2004)
+
+ 20 Jul 2004; <solar@gentoo.org> cpufreqd-1.1.2.ebuild:
+ version bump and added logic to disable the building of PIE by default for
+ this package. Some code in it seems to use abolute memory locations
+
+ 30 Jun 2004; Aron Griffis <agriffis@gentoo.org> cpufreqd-1.1.1.ebuild,
+ cpufreqd-1.1.ebuild:
+ sync IUSE (missing), add sed-4 dep
+
+*cpufreqd-1.1.1 (08 Feb 2004)
+
+ 08 Feb 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #40823 by plasmagunman.
+
+*cpufreqd-1.1 (26 Jan 2004)
+
+ 26 Jan 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #39483 by heiko hübscher.
+
+*cpufreqd-1.1_rc1-r1 (21 Nov 2003)
+
+ 21 Nov 2003; Michael Imhof <tantive@gentoo.org> cpufreqd-1.1_rc1-r1.ebuild:
+ Had to correct the included init-script. Closes #33968.
+
+*cpufreqd-1.1_rc1 (19 Nov 2003)
+
+ 19 Nov 2003; Michael Imhof <tantive@gentoo.org> cpufreqd-1.1_rc1.ebuild:
+ Version bumped. Closes #33793.
+
+*cpufreqd-1.0.1-r1 (07 Oct 2003)
+
+ 02 Aug 2003; Michael Imhof <tantive@gentoo.org> cpufreqd-1.0.1-r1.ebuild:
+ Version bumped. Should close #25665.
+
+*cpufreqd-1.0.1 (02 Aug 2003)
+
+ 02 Aug 2003; Michael Imhof <tantive@gentoo.org> cpufreqd-1.0.1.ebuild:
+ Version bumped. Should close #25665.
+
+*cpufreqd-1.0 (23 Jul 2003)
+
+ 23 Jul 2003; Michael Imhof <tantive@gentoo.org> cpufreqd-1.0.ebuild :
+ Initial release. Taken from cpufreqd.sf.net.
View
9 sys-power/cpufreqd/Manifest
@@ -0,0 +1,9 @@
+AUX cpufreqd-2.4.2-fix-current_now.patch 5140 RMD160 21d5d1cf6d0514ae6c06141b121ec779a4f7ff3c SHA1 1a05357bc6b616b119cb406b30c9882a50707d96 SHA256 151a51472d49f840f3258bd71b4d11046571f7ceb0ecf8a333933a220604fca2
+AUX cpufreqd-conf.d.patch 269 RMD160 7d597a9fefff26dc0270a94ee6c360e1322390b7 SHA1 9ce182311b269da517f4f126aa485af1dded5423 SHA256 2e4c34e87daffb5929717ba6e91a36c0e85db1e042ff10a1483617f5f4d424e1
+AUX cpufreqd-init.d 1156 RMD160 b64937c969717b5d7234a447b6e548b4c4269638 SHA1 9159187780cd31f657c8f771e534d7d55e2d68c3 SHA256 3fe98f8535e2e7e67f834865d0c3c18d2594d0aa1066e42b06b160955e1c8cf9
+AUX nvclock0.8b-fpic.patch 641 RMD160 08f803b690e1ebf69859b48604bc746a1ee3c0fd SHA1 57581e5b9201c57d811f5ebee61e7dc28bf2efad SHA256 c6dfdc3ecf84b7bd8f0eb7729aff4b3f9fde0bcce2ade0aa1765483bd486e159
+DIST cpufreqd-2.4.2.tar.bz2 299946 RMD160 a6c762dd34f5a74387b37b64843dbf968bc3c28d SHA1 88ff75f3f3d457c49178f1e557ba5435651e1427 SHA256 3b7810a3d244d9b10c8c151fd6037e7d14c9889cdf5cdff1867bd978b9f7482a
+DIST nvclock0.8b.tar.gz 353127 RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 SHA1 ff0a9fe81a8f3227338ffccae143310df1b18551 SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393
+EBUILD cpufreqd-2.4.2.ebuild 2057 RMD160 2547a14dff936bb6946be2ce8a8122e57d55e3ea SHA1 9b00fa16433d7b8dca59396f13352b09d0864f35 SHA256 909eb782d3163b7acfceadca173976e0d1348f15208d8a17b669bfff2b6d9c0e
+MISC ChangeLog 13247 RMD160 d6755074d5bbd276b361f39ec67c88ed626775e9 SHA1 3578007c8229cccd2a6d8c08bb67c23df69d510e SHA256 21c155b67a60ef60418284775cc855c5d0a89293906cf5dc6dd2f1cd61add887
+MISC metadata.xml 423 RMD160 d843208101d0e0aef245a5d5219e23ba0c7a38a6 SHA1 a88afdeb4b95664870a648ee552b15c329b6a8a9 SHA256 acc4e407d32dcef3e0806c8fec555d9b5bc59cfc5d38f5e989dd5fea62723c93
View
85 sys-power/cpufreqd/cpufreqd-2.4.2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.4.2.ebuild,v 1.4 2010/07/19 19:18:34 josejx Exp $
+
+EAPI="2"
+
+inherit eutils
+
+NVCLOCK_VERSION="0.8b"
+
+DESCRIPTION="CPU Frequency Daemon"
+HOMEPAGE="http://www.linux.it/~malattia/wiki/index.php/Cpufreqd"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ nvidia? ( http://www.linuxhardware.org/nvclock/nvclock${NVCLOCK_VERSION}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
+
+IUSE="acpi apm lm_sensors nforce2 nvidia pmu"
+RDEPEND=">=sys-power/cpufrequtils-002
+ sys-fs/sysfsutils
+ lm_sensors? ( >sys-apps/lm_sensors-3 )"
+DEPEND="sys-apps/sed
+ ${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-conf.d.patch
+
+ if use nvidia; then
+ cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
+ epatch "${FILESDIR}"/nvclock${NVCLOCK_VERSION}-fpic.patch
+ fi
+
+ epatch "${FILESDIR}/${P}-fix-current_now.patch"
+}
+
+src_configure() {
+ local config
+
+ if use nvidia; then
+ cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
+ econf \
+ --disable-gtk \
+ --disable-qt \
+ --disable-nvcontrol \
+ || die "econf nvclock failed"
+ emake -j1 || die "emake nvclock failed"
+ config="--enable-nvclock=${WORKDIR}/nvclock${NVCLOCK_VERSION}"
+ fi
+
+ cd "${S}"
+ econf \
+ $(use_enable acpi) \
+ $(use_enable apm) \
+ $(use_enable lm_sensors sensors) \
+ $(use_enable nforce2) \
+ $(use_enable pmu) \
+ ${config} \
+ || die "econf failed"
+}
+
+src_compile() {
+ if use nvidia; then
+ cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
+ fi
+
+ cd "${S}"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ rm -rf "${D}"/usr/$(get_libdir)/*.la
+ dodoc AUTHORS ChangeLog NEWS README TODO
+ newinitd "${FILESDIR}"/${PN}-init.d ${PN}
+}
+
+pkg_postinst() {
+ if [ -f "${ROOT}"/etc/conf.d/cpufreqd ] ; then
+ ewarn "An old \"/etc/conf.d/cpufreqd\" file was found. It breaks"
+ ewarn "the new init script! Please remove it."
+ ewarn "# rm /etc/conf.d/cpufreqd"
+ fi
+}
View
176 sys-power/cpufreqd/files/cpufreqd-2.4.2-fix-current_now.patch
@@ -0,0 +1,176 @@
+--- cpufreqd-2.4.2/src/cpufreqd_acpi_battery.c 2010-03-28 04:34:54.000000000 -0700
++++ cpufreqd-2.4.2/src/cpufreqd_acpi_battery.c 2010-11-21 18:51:32.000000000 -0800
+@@ -29,12 +29,15 @@
+
+ #define POWER_SUPPLY "power_supply"
+ #define BATTERY_TYPE "Battery"
++#define PRESENT "present"
++#define STATUS "status"
++//energy batter properties
+ #define ENERGY_FULL "energy_full"
+ #define ENERGY_NOW "energy_now"
++#define POWER_NOW "power_now"
++//charge battery properties
+ #define CHARGE_FULL "charge_full"
+ #define CHARGE_NOW "charge_now"
+-#define PRESENT "present"
+-#define STATUS "status"
+ #define CURRENT_NOW "current_now"
+
+ struct battery_info {
+@@ -45,11 +48,11 @@
+ int is_present;
+
+ struct sysfs_class_device *cdev;
+- struct sysfs_attribute *energy_full; /* last full capacity */
+- struct sysfs_attribute *energy_now; /* remaining capacity */
++ struct sysfs_attribute *full_capacity; /* last full capacity */
++ struct sysfs_attribute *remaining_capacity; /* remaining capacity */
+ struct sysfs_attribute *present;
+ struct sysfs_attribute *status;
+- struct sysfs_attribute *current_now; /* present rate */
++ struct sysfs_attribute *draw_rate; /* present rate */
+
+ int open;
+ };
+@@ -87,16 +90,16 @@
+
+ if (!binfo->open) return;
+
+- if (binfo->energy_full)
+- put_attribute(binfo->energy_full);
+- if (binfo->energy_now)
+- put_attribute(binfo->energy_now);
++ if (binfo->full_capacity)
++ put_attribute(binfo->full_capacity);
++ if (binfo->remaining_capacity)
++ put_attribute(binfo->remaining_capacity);
+ if (binfo->present)
+ put_attribute(binfo->present);
+ if (binfo->status)
+ put_attribute(binfo->status);
+- if (binfo->current_now)
+- put_attribute(binfo->current_now);
++ if (binfo->draw_rate)
++ put_attribute(binfo->draw_rate);
+
+ binfo->open = 0;
+ }
+@@ -104,11 +107,11 @@
+ static int read_battery(struct battery_info *binfo) {
+ clog(LOG_DEBUG, "%s - reading battery levels\n", binfo->cdev->name);
+
+- if (read_int(binfo->current_now, &binfo->present_rate) != 0) {
++ if (read_int(binfo->draw_rate, &binfo->present_rate) != 0) {
+ clog(LOG_ERR, "Skipping %s\n", binfo->cdev->name);
+ return -1;
+ }
+- if (read_int(binfo->energy_now, &binfo->remaining) != 0) {
++ if (read_int(binfo->remaining_capacity, &binfo->remaining) != 0) {
+ clog(LOG_ERR, "Skipping %s\n", binfo->cdev->name);
+ return -1;
+ }
+@@ -120,38 +123,88 @@
+ binfo->cdev->name, binfo->remaining);
+ return 0;
+ }
++
++/* open energy battery specific attributes */
++static int read_energy_battery_attributes(struct battery_info *binfo)
++{
++ binfo->full_capacity = get_class_device_attribute(binfo->cdev, ENERGY_FULL);
++ if(!binfo->full_capacity)
++ {
++ return -1;
++ }
++
++ binfo->remaining_capacity = get_class_device_attribute(binfo->cdev, ENERGY_NOW);
++ if(!binfo->remaining_capacity)
++ {
++ return -1;
++ }
++
++ binfo->draw_rate = get_class_device_attribute(binfo->cdev, POWER_NOW);
++ if(!binfo->draw_rate)
++ {
++ return -1;
++ }
++
++ return 0;
++}
++
++/* open charge battery specific attributes */
++static int read_charge_battery_attributes(struct battery_info *binfo)
++{
++ binfo->full_capacity = get_class_device_attribute(binfo->cdev, CHARGE_FULL);
++ if(!binfo->full_capacity)
++ {
++ return -1;
++ }
++
++ binfo->remaining_capacity = get_class_device_attribute(binfo->cdev, CHARGE_NOW);
++ if(!binfo->remaining_capacity)
++ {
++ return -1;
++ }
++
++ binfo->draw_rate = get_class_device_attribute(binfo->cdev, CURRENT_NOW);
++ if(!binfo->draw_rate)
++ {
++ return -1;
++ }
++
++ return 0;
++}
++
+ /* open all the required attributes and set the open status */
+ static int open_battery(struct battery_info *binfo) {
+ binfo->open = 1;
+
+- binfo->energy_full = get_class_device_attribute(binfo->cdev, ENERGY_FULL);
+- if (!binfo->energy_full) {
+- /* try the "charge_full" name */
+- binfo->energy_full = get_class_device_attribute(binfo->cdev,
+- CHARGE_FULL);
+- if (!binfo->energy_full)
++ //attempt to open energy attribute
++ struct sysfs_attribute *tmp_attribute = get_class_device_attribute(binfo->cdev, ENERGY_FULL);
++
++ if(!tmp_attribute)
++ {
++ if(read_charge_battery_attributes(binfo) != 0)
++ {
+ return -1;
++ }
+ }
+- binfo->energy_now = get_class_device_attribute(binfo->cdev, ENERGY_NOW);
+- if (!binfo->energy_now) {
+- /* try the "charge_now" name */
+- binfo->energy_now = get_class_device_attribute(binfo->cdev, CHARGE_NOW);
+- if (!binfo->energy_now)
++ else
++ {
++ put_attribute(tmp_attribute);
++ if(read_energy_battery_attributes(binfo) != 0)
++ {
+ return -1;
++ }
+ }
++
+ binfo->present = get_class_device_attribute(binfo->cdev, PRESENT);
+ if (!binfo->present)
+ return -1;
+ binfo->status = get_class_device_attribute(binfo->cdev, STATUS);
+ if (!binfo->status)
+ return -1;
+- binfo->current_now = get_class_device_attribute(binfo->cdev, CURRENT_NOW);
+- if (!binfo->current_now)
+- return -1;
+
+ /* read the last full capacity, this is not going to change
+ * very often, so no need to poke it later */
+- if (read_int(binfo->energy_full, &binfo->capacity) != 0) {
++ if (read_int(binfo->full_capacity, &binfo->capacity) != 0) {
+ clog(LOG_WARNING, "Couldn't read %s capacity (%s)\n",
+ binfo->cdev->name, strerror(errno));
+ return -1;
View
10 sys-power/cpufreqd/files/cpufreqd-conf.d.patch
@@ -0,0 +1,10 @@
+--- cpufreqd.conf.orig 2007-03-04 11:18:43.000000000 -0600
++++ cpufreqd.conf 2007-03-04 11:19:01.000000000 -0600
+@@ -135,7 +135,6 @@
+ programs=xine,mplayer,gmplayer
+ battery_interval=0-100
+ acpi_temperature=0-60
+-cpu_interval=0-100
+ profile=Performance High
+ [/Rule]
+
View
44 sys-power/cpufreqd/files/cpufreqd-init.d
@@ -0,0 +1,44 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/files/cpufreqd-init.d,v 1.2 2009/10/20 10:21:34 bangert Exp $
+
+CONFIGFILE=/etc/cpufreqd.conf
+
+depend() {
+ need localmount
+ use logger lm_sensors
+}
+
+checkconfig() {
+ if [[ ! -f ${CONFIGFILE} ]]; then
+ eerror "Configuration file ${CONFIGFILE} not found"
+ return 1
+ fi
+
+ if [[ ! -e /proc/cpufreq ]] ; then
+ for cpu in /sys/devices/system/cpu/cpu[0-9]* ; do
+ # We need just one cpu supporting freq scaling.
+ [[ -e ${cpu}/cpufreq ]] && return 0
+ done
+ eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ"
+ eerror "Make sure that the appropiate kernel drivers for your CPU are"
+ eerror "built-in or loaded."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting CPU Frequency Daemon"
+ start-stop-daemon --start --exec /usr/sbin/cpufreqd -- \
+ -f ${CONFIGFILE}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping CPU Frequency Daemon"
+ start-stop-daemon --stop --exec /usr/sbin/cpufreqd
+ eend ${?}
+}
View
13 sys-power/cpufreqd/files/nvclock0.8b-fpic.patch
@@ -0,0 +1,13 @@
+diff -urp nvclock0.8b/src/backend/Makefile.in nvclock0.8b-fpic/src/backend/Makefile.in
+--- nvclock0.8b/src/backend/Makefile.in 2005-12-22 11:57:27.000000000 +0100
++++ nvclock0.8b-fpic/src/backend/Makefile.in 2005-12-22 11:56:29.000000000 +0100
+@@ -5,7 +5,7 @@ RANLIB=@RANLIB@
+ system=@system@
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ OBJECTS=backend.o bios.o config.o error.o nv30.o nv31.o nv40.o info.o overclock.o i2c.o xf86i2c.o lm99.o f75375.o w83l785r.o libc_wrapper.o
+-CFLAGS=-I../.. -I../nvcontrol
++CFLAGS=-I../.. -I../nvcontrol -fPIC
+
+ ifeq ($(system), FreeBSD)
+ OBJECTS+=back_bsd.o
+Only in nvclock0.8b/src/backend: Makefile.in.~1.9.~
View
12 sys-power/cpufreqd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>mobile</herd>
+ <use>
+ <flag name='nforce2'>Enable support for nforce2 voltage settings
+ plug-in</flag>
+ <flag name='nvidia'>Enable nvidia overclocking
+ (<pkg>media-video/nvclock</pkg>) plug-in</flag>
+ <flag name='pmu'>Enable Power Management Unit plug-in</flag>
+ </use>
+</pkgmetadata>
Please sign in to comment.
Something went wrong with that request. Please try again.