[521] | 1 | Summary: Rotates, compresses, removes and mails system log files. |
---|
| 2 | Summary(ja): システムのログファイルを圧縮/削除するプログラム |
---|
| 3 | Name: logrotate |
---|
[3438] | 4 | Version: 3.7.9 |
---|
[521] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | License: GPL |
---|
| 7 | Group: System Environment/Base |
---|
[3438] | 8 | Url: https://fedorahosted.org/logrotate/ |
---|
| 9 | |
---|
[521] | 10 | Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz |
---|
[3438] | 11 | Patch1: logrotate-3.7.8-man-authors.patch |
---|
| 12 | Patch2: logrotate-3.7.9-man-size.patch |
---|
| 13 | Patch3: logrotate-3.7.9-man-page.patch |
---|
| 14 | Patch4: logrotate-3.7.9-config.patch |
---|
| 15 | Patch5: logrotate-3.7.9-acl.patch |
---|
| 16 | Patch6: logrotate-3.7.9-tabooext.patch |
---|
| 17 | Patch7: logrotate-3.7.9-shred.patch |
---|
| 18 | Patch8: logrotate-3.7.9-statefile.patch |
---|
| 19 | Patch9: logrotate-3.7.9-atomic-create.patch |
---|
| 20 | |
---|
[521] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[3438] | 22 | BuildRequires: popt-devel |
---|
[521] | 23 | Requires: coreutils >= 5.92 |
---|
| 24 | Requires: popt |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | The logrotate utility is designed to simplify the administration of |
---|
| 28 | log files on a system which generates a lot of log files. Logrotate |
---|
| 29 | allows for the automatic rotation compression, removal and mailing of |
---|
| 30 | log files. Logrotate can be set to handle a log file daily, weekly, |
---|
| 31 | monthly or when the log file gets to a certain size. Normally, |
---|
| 32 | logrotate runs as a daily cron job. |
---|
| 33 | |
---|
| 34 | Install the logrotate package if you need a utility to deal with the |
---|
| 35 | log files on your system. |
---|
| 36 | |
---|
| 37 | %description -l ja |
---|
| 38 | logrotate ユーティリティは,ログファイルを大量に生成するシステムでの |
---|
| 39 | ログファイル管理を楽にする目的で作られています. |
---|
| 40 | logrotate はログファイルを古いものから順にリネームしたり, |
---|
| 41 | 圧縮したり,メールで送ったりすることが出来ます. |
---|
| 42 | logrotate の処理は,毎日/毎週/毎月といった単位でも設定出来ますし, |
---|
| 43 | ログファイルが一定サイズに達した時に処理する様にすることも出来ます. |
---|
| 44 | 通常は logrotate は cron によって毎日実行される様になっています. |
---|
| 45 | |
---|
| 46 | システム上のログファイルを管理するツールが必要なら |
---|
| 47 | logrotate パッケージをインストールして下さい. |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | |
---|
[3438] | 52 | %patch1 -p2 |
---|
| 53 | %patch2 |
---|
| 54 | %patch3 -p1 |
---|
| 55 | %patch4 |
---|
| 56 | %patch5 -p2 |
---|
| 57 | %patch6 -p1 |
---|
| 58 | %patch7 |
---|
| 59 | %patch8 |
---|
| 60 | %patch9 -p1 |
---|
| 61 | |
---|
[521] | 62 | %build |
---|
| 63 | make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" |
---|
| 64 | |
---|
| 65 | %install |
---|
| 66 | rm -rf $RPM_BUILD_ROOT |
---|
| 67 | make PREFIX=$RPM_BUILD_ROOT BINDIR=%{_sbindir} MANDIR=%{_mandir} install |
---|
| 68 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily |
---|
| 70 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib |
---|
| 71 | |
---|
| 72 | install -m 644 examples/logrotate-default $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.conf |
---|
| 73 | install -m 755 examples/logrotate.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/logrotate |
---|
| 74 | touch $RPM_BUILD_ROOT%{_localstatedir}/lib/logrotate.status |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | rm -rf $RPM_BUILD_ROOT |
---|
| 78 | |
---|
| 79 | %files |
---|
| 80 | %defattr(-,root,root) |
---|
| 81 | %doc CHANGES |
---|
| 82 | %attr(0755, root, root) %{_sbindir}/logrotate |
---|
| 83 | %attr(0644, root, root) %{_mandir}/man8/logrotate.8* |
---|
[3438] | 84 | %attr(0644, root, root) %{_mandir}/man5/logrotate.conf.5* |
---|
[521] | 85 | %attr(0755, root, root) %{_sysconfdir}/cron.daily/logrotate |
---|
| 86 | %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf |
---|
| 87 | %attr(0755, root, root) %dir %{_sysconfdir}/logrotate.d |
---|
| 88 | %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[3438] | 91 | * Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1 |
---|
| 92 | - new upstream release |
---|
| 93 | - add Url |
---|
| 94 | - add patches from fedora |
---|
| 95 | - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098 |
---|
| 96 | - fix #671926 - fixed crash when tabooext is used in config file |
---|
| 97 | - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes |
---|
| 98 | - fix #666677 - preserve ACLs when rotating files |
---|
| 99 | - fix #644309 - mention all logrotate params in man page |
---|
| 100 | - fix #638629 - better size directive description |
---|
| 101 | - fixed AUTHORS in man page |
---|
| 102 | |
---|
[521] | 103 | * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1 |
---|
| 104 | - new upstream release |
---|
| 105 | - spec in UTF-8 |
---|
| 106 | |
---|
| 107 | * Wed Jun 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.4-1vl1 |
---|
| 108 | - based on 3.7.4-1 from Rawhide |
---|
| 109 | * Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1 |
---|
| 110 | - add new "minsize" option (#173088) |
---|
| 111 | * Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3 |
---|
| 112 | - correct man page "extension" option description (#185318) |
---|
| 113 | * Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11 |
---|
| 114 | - man description for "nodateext" option (#171577) |
---|
| 115 | - remove not working "pattern" option (#171577) |
---|
| 116 | * Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3 |
---|
| 117 | - even when sharedscript option used, do postrotate |
---|
| 118 | script before compress (#167575) |
---|
| 119 | * Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2 |
---|
| 120 | - allow yearly rotations(#134612) |
---|
| 121 | * Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12 |
---|
| 122 | - enhance logrotate with "dateext", "maxage" |
---|
| 123 | |
---|
| 124 | * Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1 |
---|
| 125 | - based on 3.6.8-1 from Rawhide |
---|
| 126 | - add Requires, BuildRequires popt |
---|
| 127 | * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1 |
---|
| 128 | - Old patch from pm@debian.org |
---|
| 129 | * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1 |
---|
| 130 | - Fixes from bugzilla |
---|
| 131 | * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1 |
---|
| 132 | - Commit patch from Fidelis Assis <fidelis@embratel.net.br> |
---|
| 133 | * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1 |
---|
| 134 | - Commit fix for #65299 |
---|
| 135 | * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1 |
---|
| 136 | - Commit fix for #62560 |
---|
| 137 | * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1 |
---|
| 138 | - Apply various bugfix patches from the openwall people |
---|
| 139 | * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1 |
---|
| 140 | - Fix bug #55809 (include logrotate.status in %files) |
---|
| 141 | - Fix bug #58328 (incorrect error detection when reading state file) |
---|
| 142 | - Allow 'G' size specifier from bug #57242 |
---|
| 143 | * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1 |
---|
| 144 | - patch from Alexander Kourakos <awk@awks.org> to stop the shared |
---|
| 145 | postrotate/prerotate scripts from running if none of the log(s) need |
---|
| 146 | rotating. All log files are now checked for rotation in one batch, |
---|
| 147 | rather than sequentially. |
---|
| 148 | - more fixes from Paul Martin <pm@debian.org> |
---|
| 149 | |
---|
| 150 | * Thu Oct 4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2 |
---|
| 151 | - added noreplace flag (%%config file is not replaced) |
---|
| 152 | |
---|
| 153 | * Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 154 | - 3.5.4-1vl1 |
---|
| 155 | - based on 3.5.4-1 from Rawhide |
---|
| 156 | - use better macros (%%{_tmppath}, %%{_sbindir}) |
---|
| 157 | - added Japanese summary and description |
---|
| 158 | |
---|
| 159 | * Thu Jan 4 2001 Bill Nottingham <notting@redhat.com> |
---|
| 160 | - %defattr |
---|
| 161 | |
---|
| 162 | * Wed Jan 03 2001 Preston Brown <pbrown@redhat.com> |
---|
| 163 | - see CHANGES |
---|
| 164 | |
---|
| 165 | * Tue Aug 15 2000 Erik Troan <ewt@redhat.com> |
---|
| 166 | - see CHANGES |
---|
| 167 | |
---|
| 168 | * Sun Jul 23 2000 Erik Troan <ewt@redhat.com> |
---|
| 169 | - see CHANGES |
---|
| 170 | |
---|
| 171 | * Tue Jul 11 2000 Erik Troan <ewt@redhat.com> |
---|
| 172 | - support spaces in filenames |
---|
| 173 | - added sharedscripts |
---|
| 174 | |
---|
| 175 | * Sun Jun 18 2000 Matt Wilson <msw@redhat.com> |
---|
| 176 | - use %%{_mandir} for man pages |
---|
| 177 | |
---|
| 178 | * Thu Feb 24 2000 Erik Troan <ewt@redhat.com> |
---|
| 179 | - don't rotate lastlog |
---|
| 180 | |
---|
| 181 | * Thu Feb 03 2000 Erik Troan <ewt@redhat.com> |
---|
| 182 | - gzipped manpages |
---|