]> git.pld-linux.org Git - packages/cpufreqd.git/blobdiff - cpufreqd.spec
- rel 3
[packages/cpufreqd.git] / cpufreqd.spec
index 5364354ebd3d8729fc2139b7660a1b6681782eed..a4cc182c7f699502b077f9e5d81abd1a051f65a6 100644 (file)
@@ -1,22 +1,27 @@
+#
 # TODO:
-# - loading modules in init-script, if needed
-# - missing plugin: nvclock, sensors
-# - move plugins into separate packages? (some is needed, because of additional deps)
-Summary:       Scales your cpu frequency
+#   - loading modules in init-script, if needed
+#   - missing plugin: nvclock
+#   - move plugins into separate packages? (some is needed, because of additional deps)
+#   - update Polish translations
+#
+Summary:       Fully configurable daemon for dynamic frequency and voltage scaling
 Summary(pl.UTF-8):     Skalowanie częstotliwości procesora
 Name:          cpufreqd
-Version:       2.2.1
-Release:       2
+Version:       2.4.2
+Release:       3
 License:       GPL v2
 Group:         Applications/System
 Source0:       http://dl.sourceforge.net/cpufreqd/%{name}-%{version}.tar.bz2
-# Source0-md5: e66f22915c8ce609cd0c8f254da11c08
+# Source0-md5: 2ca80a77849c9a69b81e27c1843c97f5
 Source1:       %{name}.init
-URL:           http://cpufreqd.sourceforge.net/
+Patch0:                %{name}-battery.patch
+URL:           http://www.linux.it/~malattia/wiki/index.php/Cpufreqd
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: cpufrequtils-devel
 BuildRequires: libtool
+BuildRequires: lm_sensors-devel
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sysfsutils-devel
 Requires(post):        sed >= 4.0
@@ -25,9 +30,16 @@ Requires:    rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This daemon monitors /proc/apm for the battery status and scales your
-cpu frequency according to a set of rules. It is very useful for
-providing maximum battery life but good cpu speed at the same time.
+A small daemon to adjust cpu speed and voltage (and not only) for
+kernels using any of the cpufreq drivers available. Cpufreqd is not a
+userspace governor.
+Cpufreqd allows you to apply governor profiles from rules based on
+battery level, ac status, temperature (ACPI or sensors), running
+programs, cpu usage and (maybe) more. You can also change your nforce
+FSB clock and video card frequency (NVidia only) or execute arbitrary
+commands when a specific rule is applied.
+You need a CPU with frequency and voltage scaling capabilities and a
+Linux kernel with cpufreq support.
 
 %description -l pl.UTF-8
 Ten demon monitoruje stan baterii przez /proc/apm i skaluje
@@ -37,6 +49,7 @@ jednocześnie dobrej szybkości procesora.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -44,7 +57,8 @@ jednocześnie dobrej szybkości procesora.
 %{__autoconf}
 %{__automake}
 %configure \
-       --libdir=%{_libdir}/%{name}
+       --libdir=%{_libdir}/%{name} \
+       --enable-sensors
 %{__make}
 
 %install
@@ -60,22 +74,6 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 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"
 
This page took 0.07523 seconds and 4 git commands to generate.