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