Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37562316
en ru br
Репозитории ALT
5.1: 1.00-alt1
4.1: 1.00-alt0.M41.1
4.0: 0.95-alt2
3.0: 0.95-alt2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: powernowd

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

# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
Name: powernowd
Version: 1.00
Release: alt0.M41.1

Summary: PowerNow Daemon controls the speed and voltage of CPUs.
Group: System/Servers
License: GPL
Url: http://www.deater.net/john/%name.html

Source: http://www.deater.net/john/%name-%version.tar.gz
Source1: powernowd.rc
Source2: powernowd.8

BuildRequires: rpm-build-compat >= 0.95

%description
This is a simple client to the CPUFreq driver that uses Linux kernel
v2.5/v2.6  sysfs interface. You need a supported CPU and a kernel that
supports sysfs to run this daemon. The name is somewhat misleading, as
this will work with any CPUfreq capable processor, not just processors
supporting AMD's PowerNow! technology.  However, it is designed to work
better on processors that support more then 2 frequency steps like
those with AMD's PowerNow! or the new Pentium M processors.

%prep
%setup -q

%build
%__cc $RPM_OPT_FLAGS -o powernowd powernowd.c

%install
%__cat > powernowd.sysconfig <<__EOF__
# place here the option passed to powernowd.
# They are described in powernowd(8)
#
#   -n   Include 'nice'd processes in calculations
#   -m   Modes of operation, can be 0, 1, 2, or 3:
#          0 = SINE, 1 = AGGRESSIVE (default), 2 = PASSIVE, 3 = LEAPS
#   -s   Frequency step in kHz (default = 100000)
#   -p   Polling frequency in msecs (default = 1000)
#   -u   CPU usage upper limit percentage [0 .. 100, default 80]
#   -l   CPU usage lower limit percentage [0 .. 100, default 20]
#   -c   Specify number of threads per power-managed core (required)

OPTIONS="-c 1"

__EOF__

%__install -pD %name %buildroot/%_sbindir/%name
%__install -pD %SOURCE1 %buildroot/%_initdir/%name
%__install -pD -m644 %SOURCE2 %buildroot/%_mandir/man8/%name.8
%__install -pD -m644 powernowd.sysconfig %buildroot/%_sysconfdir/sysconfig/%name

%post
%post_service %name

%preun
%preun_service %name
%files
%_sbindir/*
%_man8dir/*
%config %_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/%name
%doc README

%changelog

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

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