Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37561460
en ru br
ALT Linux repositórios
S:1.2.2-alt3_24

Group :: Sistema/Servidores
RPM: and

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name:      and
Version:   1.2.2
Release:   alt3_24
Summary:   Auto nice daemon

License:   GPLv2
Group:     System/Servers

URL:       http://and.sourceforge.net
Source0:   http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:   and.sysconf
Source2:   and.service
Patch1:    and-1.2.2-makefile.patch

Obsoletes: and-sysvinit < %{version}-%{release}
Provides:  and-sysvinit = %{version}-%{release}

Obsoletes:  and-units < %{version}-%{release}
Provides:   and-units = %{version}-%{release}



provides: and-sysvinit = %{version}-%{release}
Obsoletes: and-sysvinit < 1.2.2-11

provides: and-units = %{version}-%{release}
Obsoletes: and-units < 1.2.2-11
Source44: import.info



%description
The auto nice daemon renices and even kills jobs according to their CPU time,
owner, and command name. This is especially useful on production machines with
lots of concurrent CPU-intensive jobs and users that tend to forget to
nice their jobs.

%prep            
%setup1 -q
%patch1 -p1 -b .org

%build
make %{?_smp_mflags} \
    CFLAGS='%{optflags}' \
    PREFIX=%{_prefix} \
    INSTALL_ETC=%{_sysconfdir} \
    INSTALL_SBIN=%{_sbindir} \
    INSTALL_MAN=%{_mandir}

%install
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_mandir}/man5
make PREFIX=%{buildroot}%{_prefix} \
    INSTALL_ETC=%{buildroot}%{_sysconfdir} \
    INSTALL_SBIN=%{buildroot}%{_sbindir} \
    INSTALL_MAN=%{buildroot}%{_mandir} install

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/and

mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}

%post
%post_service and

%preun
%preun_service and

%files
%doc README LICENSE CHANGELOG
%config(noreplace) %{_sysconfdir}/and/
%config(noreplace) %{_sysconfdir}/sysconfig/and
%{_sbindir}/*
%{_mandir}/man5/**
%{_mandir}/man8/**
%{_unitdir}/and.service

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009