logrotate-vl.spec 7.7 KB

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