logrotate-vl.spec 6.8 KB

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