1 |
bangert 09/10/27 09:07:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cpufreqd-2.3.4-r1.ebuild |
5 |
Log: |
6 |
fix logical error for CPU_ALL in cpu_evaluate (bug #187581), fix building with >lm_sensors-3 (bug #233481) |
7 |
(Portage version: 2.2_rc46/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.56 sys-power/cpufreqd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpufreqd/ChangeLog?rev=1.56&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpufreqd/ChangeLog?rev=1.56&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpufreqd/ChangeLog?r1=1.55&r2=1.56 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v |
19 |
retrieving revision 1.55 |
20 |
retrieving revision 1.56 |
21 |
diff -u -r1.55 -r1.56 |
22 |
--- ChangeLog 20 Oct 2009 13:06:45 -0000 1.55 |
23 |
+++ ChangeLog 27 Oct 2009 09:07:18 -0000 1.56 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-power/cpufreqd |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.55 2009/10/20 13:06:45 bangert Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.56 2009/10/27 09:07:18 bangert Exp $ |
29 |
+ |
30 |
+*cpufreqd-2.3.4-r1 (27 Oct 2009) |
31 |
+ |
32 |
+ 27 Oct 2009; Thilo Bangert <bangert@g.o> |
33 |
+ +files/2.2.1-cpu_all.patch, +cpufreqd-2.3.4-r1.ebuild, |
34 |
+ +files/cpufreqd-2.3.4-lm_sensors-3.patch: |
35 |
+ fix logical error for CPU_ALL in cpu_evaluate (bug #187581), fix building |
36 |
+ with >lm_sensors-3 (bug #233481) |
37 |
|
38 |
*cpufreqd-2.3.4 (20 Oct 2009) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-power/cpufreqd/cpufreqd-2.3.4-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.3.4-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.3.4-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: cpufreqd-2.3.4-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.3.4-r1.ebuild,v 1.1 2009/10/27 09:07:18 bangert Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
NVCLOCK_VERSION="0.8b" |
59 |
|
60 |
DESCRIPTION="CPU Frequency Daemon" |
61 |
HOMEPAGE="http://www.linux.it/~malattia/wiki/index.php/Cpufreqd" |
62 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 |
63 |
nvidia? ( http://www.linuxhardware.org/nvclock/nvclock${NVCLOCK_VERSION}.tar.gz )" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
68 |
|
69 |
IUSE="acpi apm lm_sensors nforce2 nvidia pmu" |
70 |
RDEPEND=">=sys-power/cpufrequtils-002 |
71 |
lm_sensors? ( >sys-apps/lm_sensors-3 )" |
72 |
DEPEND="sys-apps/sed |
73 |
${RDEPEND}" |
74 |
|
75 |
src_prepare() { |
76 |
epatch "${FILESDIR}"/${PN}-conf.d.patch |
77 |
epatch "${FILESDIR}"/2.2.1-cpu_all.patch |
78 |
use lm_sensors && epatch "${FILESDIR}"/${P}-lm_sensors-3.patch |
79 |
|
80 |
if use nvidia; then |
81 |
cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION} |
82 |
epatch "${FILESDIR}"/nvclock${NVCLOCK_VERSION}-fpic.patch |
83 |
fi |
84 |
} |
85 |
|
86 |
src_configure() { |
87 |
local config |
88 |
|
89 |
if use nvidia; then |
90 |
cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION} |
91 |
econf \ |
92 |
--disable-gtk \ |
93 |
--disable-qt \ |
94 |
--disable-nvcontrol \ |
95 |
|| die "econf nvclock failed" |
96 |
emake -j1 || die "emake nvclock failed" |
97 |
config="--enable-nvclock=${WORKDIR}/nvclock${NVCLOCK_VERSION}" |
98 |
fi |
99 |
|
100 |
cd "${S}" |
101 |
econf \ |
102 |
$(use_enable acpi) \ |
103 |
$(use_enable apm) \ |
104 |
$(use_enable lm_sensors sensors) \ |
105 |
$(use_enable nforce2) \ |
106 |
$(use_enable pmu) \ |
107 |
${config} \ |
108 |
|| die "econf failed" |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
if use nvidia; then |
113 |
cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION} |
114 |
fi |
115 |
|
116 |
cd "${S}" |
117 |
emake || die "make failed" |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
emake DESTDIR="${D}" install || die "make install failed" |
122 |
rm -rf "${D}"/usr/$(get_libdir)/*.la |
123 |
dodoc AUTHORS ChangeLog NEWS README TODO |
124 |
newinitd "${FILESDIR}"/${PN}-init.d ${PN} |
125 |
} |
126 |
|
127 |
pkg_postinst() { |
128 |
if [ -f "${ROOT}"/etc/conf.d/cpufreqd ] ; then |
129 |
ewarn "An old \"/etc/conf.d/cpufreqd\" file was found. It breaks" |
130 |
ewarn "the new init script! Please remove it." |
131 |
ewarn "# rm /etc/conf.d/cpufreqd" |
132 |
fi |
133 |
} |