]> git.pld-linux.org Git - packages/logrotate.git/blame - logrotate.spec
- updated to 3.8.3
[packages/logrotate.git] / logrotate.spec
CommitLineData
c859e311
ER
1# TODO
2# - bug: when logrotate.status is written truncated (due disk getting full) and
3# the line is partial, it will complain erronously that the line is too long
4# while it just doesn't have the second DATE column. and that error should be
5# ignored as warning not fatal as error.
99e01202 6#
360d9203 7# Conditional build:
c1a84c5a 8%bcond_without acl # build without ACLs support
971f6ad2 9%bcond_without selinux # build without SELinux support
99e01202 10#
a9077c2d 11Summary: Rotates, compresses, removes and mails system log files
fc062c54
ER
12Summary(de.UTF-8): Rotiert, komprimiert und verschickt Systemlogs
13Summary(es.UTF-8): Hace el rutado, comprime y envía mail de logs del sistema
14Summary(fr.UTF-8): Fait tourner, compresse, et envoie par mail les connexions au système
15Summary(pl.UTF-8): System rotacji i kompresowania logów
16Summary(pt_BR.UTF-8): Rotaciona, comprime e envia mail de logs do sistema
17Summary(ru.UTF-8): Ротирует, компрессирует, удаляет и отправляет по почте лог-файлы
18Summary(tr.UTF-8): Sistem günlüklerini yönlendirir, sıkıştırır ve mektup olarak yollar
19Summary(uk.UTF-8): Ротує, компресує, видаляє та відправляє поштою лог-файли
696caff4 20Name: logrotate
04d03761
JB
21Version: 3.8.3
22Release: 1
971f6ad2 23License: GPL v2
4ebceb10 24Group: Applications/System
12d0b792 25Source0: https://fedorahosted.org/releases/l/o/logrotate/%{name}-%{version}.tar.gz
04d03761 26# Source0-md5: df67c8bda9139131d919931da443794d
876d3ef4 27Source1: %{name}.conf
7edee911 28Source2: %{name}.sysconfig
9361faf7 29Patch0: %{name}-cron.patch
736e97b1 30Patch1: %{name}-man.patch
cee13d63 31Patch2: tabooext.patch
12d0b792 32URL: https://fedorahosted.org/logrotate/
c1a84c5a 33%{?with_acl:BuildRequires: acl-devel}
e37ea7b1 34%{?with_selinux:BuildRequires: libselinux-devel}
99e01202 35BuildRequires: popt-devel >= 1.3
e3a1a7ab 36Requires: coreutils
cda4bc19 37Requires: crondaemon
b3a5c230 38Requires: filesystem >= 4.0-4
6b20ff2b 39Requires: gzip
015fb5e8 40Requires: setup >= 2.4.6
2ba54a5a 41Suggests: /bin/mail
5deb0f04 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e80fc1f7 43
1bd207cb
JB
44%define statdir /var/lib/misc
45
e80fc1f7 46%description
48058559 47The logrotate utility is designed to simplify the administration of
48log files on a system which generates a lot of log files. Logrotate
49allows for the automatic rotation compression, removal and mailing of
50log files. Logrotate can be set to handle a log file daily, weekly,
51monthly or when the log file gets to a certain size. Normally,
52logrotate runs as a daily cron job.
e80fc1f7 53
7afa4f64 54%description -l de.UTF-8
e80fc1f7 55Logrotate vereinfacht die Verwaltung von Systemen, die sehr viele
48058559 56Log-Dateien erzeugen, indem es das automatische Rotieren,
7afa4f64
JR
57Komprimieren, Entfernen, und Senden von Log-Dateien ermöglicht. Jede
58Log-Datei kann täglich, wöchentlich oder monatlich verarbeitet werden,
59wenn sie zu groß wird.
60
61%description -l es.UTF-8
62Logrotate fue proyectado para facilitar la administración de sistemas
63que generan gran número de archivos de log. Permite automatización en
64la rotación, compresión, remoción y envío de mail de archivos de logs.
4ebceb10 65Cada archivo de log puede ser tratado diariamente, semanalmente,
66mensualmente o cuanto crezca demasiado.
6a0a66b5 67
7afa4f64
JR
68%description -l fr.UTF-8
69Logrotate est conçu pour faciliter l'administration de systèmes qui
70générent un grand nombre de fichiers de \"log\". Il permet le
71roulement, la suppréssion la compression et l'envoi automatiques de
72ces fichiers. Chaque fichier de \"log\" peut être pris en charge de
73manière quotidienne, hebdomadaire, mensuelle, ou quand il devient trop
48058559 74volumineux.
e80fc1f7 75
7afa4f64
JR
76%description -l pl.UTF-8
77Logrotate jest przeznaczony do łatwej administracji plikami logów.
78Program ten pozwala na automatyczną kompresję logów. Może kontrolować
79logi raz dziennie, raz na miesiąc, raz na tydzień lub wtedy kiedy
80pliki z logami systemowymi są już duże.
e80fc1f7 81
7afa4f64
JR
82%description -l pt_BR.UTF-8
83Logrotate foi projetado para facilitar a administração de sistemas que
84geram grande número de arquivos de log. Permite automatização na
85rotação, compressão, remoção e envio de mail de arquivos de logs. Cada
894360d3 86arquivo de log pode ser tratado diariamente, semanalmente, mensalmente
87ou quanto crescer demais.
82588add 88
7afa4f64
JR
89%description -l ru.UTF-8
90Logrotate предназначен для облегчения администрирования системы,
91которая генерирует большое количество файлов с логами. Он позволяет
92автоматически ротировать, компрессировать, удалять и посылать файлы с
93логами по e-mail. Каждый лог может обрабатываться ежедневно,
94еженедельно, ежемесячно или по достижении определенного размера.
95
96%description -l tr.UTF-8
97logrotate çok fazla sayıda günlük dosyası üreten sistemlerin
98yönetimini kolaylaştırmak için tasarlanmıştır. Kayıt dosyalarının
99otomatik olarak yönlendirilmesini, sıkıştırılmasını, silinmesinı ve
100mektup olarak yollanmasını sağlar. Her dosya günlük, haftalık, aylık
101olarak ya da çok büyük boyutlara ulaştığında işlenebilir.
102
103%description -l uk.UTF-8
104Logrotate призначений для полегшення адміністрування системи, яка
105генерує велику кількість файлів з логами. Він дозволяє автоматично
106ротувати, компресувати, видаляти та посилати поштою лог-файли. Кожен
107лог може оброблятися щоденно, щотижня, щомісяця або по досягненні
108визначеного розміру.
82588add 109
e80fc1f7 110%prep
dc6f0c74 111%setup -q
ab57b5f3 112%patch0 -p1
736e97b1 113%patch1 -p1
cee13d63 114%patch2 -p1
e80fc1f7 115
116%build
1bd207cb 117%{__make} \
eded0803 118 CC="%{__cc}" \
99e01202 119 RPM_OPT_FLAGS="%{rpmcflags}" \
c1a84c5a 120 WITH_ACL=%{?with_acl:yes}%{!?with_acl:no} \
e37ea7b1 121 WITH_SELINUX=%{?with_selinux:yes}%{!?with_selinux:no} \
1bd207cb 122 STATEFILE="%{statdir}/logrotate.status"
e80fc1f7 123
124%install
125rm -rf $RPM_BUILD_ROOT
7edee911 126install -d $RPM_BUILD_ROOT/etc/{cron.daily,logrotate.d,sysconfig} \
4d0bc79e 127 $RPM_BUILD_ROOT{%{_mandir},%{statdir}}
e80fc1f7 128
0a863b0d 129%{__make} install \
a9077c2d 130 BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
131 MANDIR=$RPM_BUILD_ROOT%{_mandir}
01a0c524 132
cee13d63
ER
133cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.conf
134cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/logrotate
4ec7f55f 135install -p examples/logrotate.cron $RPM_BUILD_ROOT/etc/cron.daily/logrotate
1bd207cb 136> $RPM_BUILD_ROOT%{statdir}/logrotate.status
e80fc1f7 137
138%clean
139rm -rf $RPM_BUILD_ROOT
140
82be549b
ER
141%triggerpostun -- %{name} < 3.7.8-4
142%{__sed} -i -e 's,olddir /var/log/archiv$,olddir /var/log/archive,' %{_sysconfdir}/logrotate.conf %{_sysconfdir}/logrotate.d/* || :
143
007c1a92 144%post
1bd207cb
JB
145if [ -f /var/lib/logrotate.status ]; then
146 mv -f /var/lib/logrotate.status %{statdir}/logrotate.status
147else
148 touch %{statdir}/logrotate.status
149 chmod 000 %{statdir}/logrotate.status
e2aefaf5 150 chown root:root %{statdir}/logrotate.status
1bd207cb
JB
151 chmod 640 %{statdir}/logrotate.status
152fi
007c1a92 153
e80fc1f7 154%files
696caff4 155%defattr(644,root,root,755)
82588add 156%doc CHANGES
4f94bac4 157%attr(755,root,root) %{_sbindir}/logrotate
0737934f 158%attr(750,root,root) /etc/cron.daily/logrotate
015fb5e8 159%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
c859e311 160%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
1bd207cb 161%attr(640,root,root) %ghost %{statdir}/logrotate.status
4ec7f55f 162%{_mandir}/man5/logrotate.conf.5*
e3a1a7ab 163%{_mandir}/man8/logrotate.8*
This page took 0.189247 seconds and 4 git commands to generate.