logrotate-vl.spec 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. Summary: Rotates, compresses, removes and mails system log files.
  2. Summary(ja): システムのログファイルを圧縮/削除するプログラム
  3. Name: logrotate
  4. Version: 3.16.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Base
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPL
  10. Url: https://fedorahosted.org/logrotate/
  11. Source: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.xz
  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.conf $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. * Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.16.0-1
  79. - new upstream release.
  80. * Sun Jun 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-2
  81. - drop Patch0 (get the same effect by another way).
  82. * Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
  83. - new upstream release.
  84. - changed location of Source0.
  85. - imported Patch0 from rawhide.
  86. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.6-1
  87. - rebuild with VineSeed environment
  88. * Thu Oct 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.6-1
  89. - new upstream release
  90. * Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1
  91. - new upstream release
  92. - add Url
  93. - add patches from fedora
  94. - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098
  95. - fix #671926 - fixed crash when tabooext is used in config file
  96. - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes
  97. - fix #666677 - preserve ACLs when rotating files
  98. - fix #644309 - mention all logrotate params in man page
  99. - fix #638629 - better size directive description
  100. - fixed AUTHORS in man page
  101. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1
  102. - new upstream release
  103. - spec in UTF-8
  104. * Wed Jun 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.4-1vl1
  105. - based on 3.7.4-1 from Rawhide
  106. * Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1
  107. - add new "minsize" option (#173088)
  108. * Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3
  109. - correct man page "extension" option description (#185318)
  110. * Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11
  111. - man description for "nodateext" option (#171577)
  112. - remove not working "pattern" option (#171577)
  113. * Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3
  114. - even when sharedscript option used, do postrotate
  115. script before compress (#167575)
  116. * Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2
  117. - allow yearly rotations(#134612)
  118. * Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12
  119. - enhance logrotate with "dateext", "maxage"
  120. * Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1
  121. - based on 3.6.8-1 from Rawhide
  122. - add Requires, BuildRequires popt
  123. * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
  124. - Old patch from pm@debian.org
  125. * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
  126. - Fixes from bugzilla
  127. * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
  128. - Commit patch from Fidelis Assis <fidelis@embratel.net.br>
  129. * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
  130. - Commit fix for #65299
  131. * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
  132. - Commit fix for #62560
  133. * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
  134. - Apply various bugfix patches from the openwall people
  135. * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
  136. - Fix bug #55809 (include logrotate.status in %files)
  137. - Fix bug #58328 (incorrect error detection when reading state file)
  138. - Allow 'G' size specifier from bug #57242
  139. * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
  140. - patch from Alexander Kourakos <awk@awks.org> to stop the shared
  141. postrotate/prerotate scripts from running if none of the log(s) need
  142. rotating. All log files are now checked for rotation in one batch,
  143. rather than sequentially.
  144. - more fixes from Paul Martin <pm@debian.org>
  145. * Thu Oct 4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2
  146. - added noreplace flag (%%config file is not replaced)
  147. * Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  148. - 3.5.4-1vl1
  149. - based on 3.5.4-1 from Rawhide
  150. - use better macros (%%{_tmppath}, %%{_sbindir})
  151. - added Japanese summary and description
  152. * Thu Jan 4 2001 Bill Nottingham <notting@redhat.com>
  153. - %defattr
  154. * Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
  155. - see CHANGES
  156. * Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
  157. - see CHANGES
  158. * Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
  159. - see CHANGES
  160. * Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
  161. - support spaces in filenames
  162. - added sharedscripts
  163. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  164. - use %%{_mandir} for man pages
  165. * Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
  166. - don't rotate lastlog
  167. * Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
  168. - gzipped manpages