Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37578702
en ru br
Репозитории ALT
S:2.4.3-alt3
5.1: 2.3.4-alt1
4.1: 2.2.1-alt1
4.0: 2.2.1-alt1
3.0: 1.2.3-alt2
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: cpufreqd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: CPU frequency scaling daemon
Name: cpufreqd
Version: 1.2.3
Release: alt2
License: GPL
Group: System/Kernel and hardware
Source: %name-%version.tar.gz
Source1: %name.init
Source2: %name.conf-2.4
Source3: %name.conf-2.6

Url: http://sourceforge.net/projects/cpufreqd/

Requires: lib%name = %version-%release

BuildRequires: gcc-c++ hostinfo libstdc++-devel

%description
cpufreqd is meant to be a replacement of the speedstep applet you
can find on some other OS, it monitors battery level, AC state and
running programs and adjusts the frequency of the processor according to
a set of rules specified in the config file (see cpufreqd.conf (5)).

It works only a kernel patched with the cpufreq patch.
You also need a supported processor, often found in laptop computer.

%package -n lib%name
Summary: Libraries for cpufreqd
Group: System/Libraries
Requires: %name = %version-%release

%description -n lib%name
This packages contains some library needed by cpufreqd.

%prep
%setup -q

perl -pi -e "s|-o root -g root ||g" Makefile.in

%build
%configure
%make

%install
%makeinstall

%__install -d %buildroot%_initdir
%__install %SOURCE1 %buildroot%_initdir/%name
%__install -m640 %SOURCE2 %buildroot%_sysconfdir/%name.conf-2.4
%__install -m640 %SOURCE3 %buildroot%_sysconfdir/%name.conf-2.6

%post
%post_service cpufreqd

%preun
%preun_service cpufreqd

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%doc AUTHORS COPYING INSTALL README TODO ChangeLog examples
%_sbindir/*
%attr(640,root,root) %config(noreplace) %_sysconfdir/%name.conf-2.4
%attr(640,root,root) %config(noreplace) %_sysconfdir/%name.conf-2.6
%_initdir/%name
%_mandir/man?/*

%files -n lib%name
%_libdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin