Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37540325
en ru br
Репозитории ALT
S:3.20.1-alt2
5.1: 3.7.9-alt0.M51.1
4.1: 3.6.2-alt4
4.0: 3.6.2-alt4
3.0: 3.6.2-alt3
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: logrotate

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

Name: logrotate
Version: 3.6.2
Release: alt4

Summary: Rotates, compresses, and mails system logs
License: GPL
Group: File tools
Packager: Dmitry V. Levin <ldv at altlinux.org>

# cvs -d :pserver:anonymous at rhlinux.redhat.com:/usr/local/CVS co logrotate

Source: logrotate-%version.tar
Source1: logrotate.cron

Patch1: logrotate-3.6.2-alt-config.patch
Patch2: logrotate-3.6.2-owl-alt-man.patch
Patch3: logrotate-3.6.2-alt-taboo.patch
Patch4: logrotate-3.6.2-alt-run_script.patch
Patch5: logrotate-3.6.2-alt-owl-fchmod-fchown-race.patch
Patch6: logrotate-3.6.2-alt-snprintf.patch
Patch7: logrotate-3.6.2-alt-messages.patch

Provides: /etc/logrotate.d

# Automatically added by buildreq on Sun Jan 20 2002

BuildRequires: libpopt-devel

%description
The logrotate utility is designed to simplify the administration of log
files on a system which generates a lot of log files.  logrotate allows
for the automatic rotation, compression, removal and mailing of log files.
logrotate can be set to handle a log file daily, weekly, monthly or
when the log file gets to a certain size.  Normally, logrotate runs as
a daily cron job.

%prep
%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

%build
%make_build

%install
%make_install install \
PREFIX=%buildroot \
BINDIR=%_sbindir \
MANDIR=%_mandir
mkdir -p %buildroot{/etc/logrotate.d,/var/run/logrotate}

install -pD -m640 examples/logrotate-default %buildroot/etc/logrotate.conf
install -pD -m755 %_sourcedir/logrotate.cron %buildroot/etc/cron.daily/logrotate
install -pD -m644 /dev/null %buildroot%_localstatedir/logrotate/status

%post
if [ ! -s %_localstatedir/logrotate/status -a -s %_localstatedir/logrotate.status ]; then
mv -f %_localstatedir/logrotate.status %_localstatedir/logrotate/status
fi

%files
%_sbindir/*
%config(noreplace) /etc/cron.daily/logrotate
%config(noreplace) /etc/logrotate.conf
%_mandir/man?/*
%attr(750,root,root) %dir /etc/logrotate.d
%attr(700,root,root) %dir /var/run/logrotate
%attr(700,root,root) %dir %_localstatedir/logrotate
%attr(644,root,root) %verify(not size md5 mtime) %config(noreplace) %_localstatedir/logrotate/status
%doc CHANGES

%changelog

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

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