Author: baggins Date: Fri May 6 18:07:29 2011 GMT Module: packages Tag: HEAD ---- Log message: - rel 3 - eanbled sensors support (builds and works) - removed "percent to absolute value" conversion, it's not needed
---- Files affected: packages/cpufreqd: cpufreqd.spec (1.42 -> 1.43) ---- Diffs: ================================================================ Index: packages/cpufreqd/cpufreqd.spec diff -u packages/cpufreqd/cpufreqd.spec:1.42 packages/cpufreqd/cpufreqd.spec:1.43 --- packages/cpufreqd/cpufreqd.spec:1.42 Sun Apr 24 10:16:45 2011 +++ packages/cpufreqd/cpufreqd.spec Fri May 6 20:07:24 2011 @@ -3,7 +3,6 @@ # TODO: # - loading modules in init-script, if needed # - missing plugin: nvclock -# - disabled plugin: sensors (needs update to build with lm_sensors 3.x) # - move plugins into separate packages? (some is needed, because of additional deps) # - update Polish translations # @@ -11,7 +10,7 @@ Summary(pl.UTF-8): Skalowanie częstotliwości procesora Name: cpufreqd Version: 2.4.2 -Release: 2 +Release: 3 License: GPL v2 Group: Applications/System Source0: http://dl.sourceforge.net/cpufreqd/%{name}-%{version}.tar.bz2 @@ -23,6 +22,7 @@ BuildRequires: automake BuildRequires: cpufrequtils-devel BuildRequires: libtool +BuildRequires: lm_sensors-devel BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sysfsutils-devel Requires(post): sed >= 4.0 @@ -59,7 +59,7 @@ %{__automake} %configure \ --libdir=%{_libdir}/%{name} \ - --disable-sensors + --enable-sensors %{__make} %install @@ -75,22 +75,6 @@ rm -rf $RPM_BUILD_ROOT %post -if [ "$1" = 1 ]; then - # Modify config file for 2.6 - if [ -d /sys/devices/system/cpu/cpu0/cpufreq ] ; then - # translate percentages in integer values - CPUFREQD_MAX_SPEED=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq` - CPUFREQD_MIN_SPEED=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq` - CPUFREQD_MHIGH_SPEED=$(( $CPUFREQD_MAX_SPEED / 100 * 66 )) - CPUFREQD_MLOW_SPEED=$(( $CPUFREQD_MAX_SPEED / 100 * 33 )) - sed -i -e "s/100%/$CPUFREQD_MAX_SPEED/; \ - s/66%/$CPUFREQD_MHIGH_SPEED/; \ - s/33%/$CPUFREQD_MLOW_SPEED/; \ - s/0%/$CPUFREQD_MIN_SPEED/;" \ - %{_sysconfdir}/cpufreqd.conf - fi -fi - /sbin/chkconfig --add cpufreqd %service cpufreqd restart "CPU FREQ daemon" @@ -117,6 +101,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.43 2011/05/06 18:07:24 baggins +- rel 3 +- eanbled sensors support (builds and works) +- removed "percent to absolute value" conversion, it's not needed + Revision 1.42 2011/04/24 08:16:45 baggins - rel 2 - fix battery parameters detection problems ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cpufreqd/cpufreqd.spec?r1=1.42&r2=1.43&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
