1 Summary: A flexible log file rotation program for Apache
2 Summary(pl): Program do elastycznej rotacji logów serwera Apache
6 License: Apache license
7 Group: Networking/Daemons
8 Source0: http://www.ford-mason.co.uk/resources/cronolog/cronolog-%{version}.tar.gz
9 # Source0-md5: 18cf20d712b9aa83a766fe70234ceec8
10 URL: http://www.ford-mason.co.uk/resources/cronolog/
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 "cronolog" is a simple program that reads log messages from its input
15 and writes them to a set of output files, the names of which are
16 constructed using template and the current date and time. The template
17 uses the same format specifiers as the Unix date command (which are
18 the same as the standard C strftime library function).
21 "cronolog" jest prostym programem czytaj±cym logi i zapisuj±cym
22 je do plików wyj¶ciowych, których nazwy mo¿na tworzyæ u¿ywaj±c
23 szablonu oraz bie¿±cego czasu i daty. Szablony korzystaj± z tego
24 samego formatu co polecenie date systemu Unix (który jest taki
25 sam jak dla standardowej funkcji C strftime).
26 Dziêki u¿yciu mechanizmu "piped logs", program ten mo¿e byæ stosowany
27 do rotacji logów, która nie wymaga restartowania serwera Apache.
30 %setup -q -n %{name}-%{version}
38 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
50 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_sbindir}/cronolog
56 %attr(755,root,root) %{_sbindir}/cronosplit