logrotate-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. Summary: Rotates, compresses, removes and mails system log files.
  2. Summary(ja): システムのログファイルを圧縮/削除するプログラム
  3. Name: logrotate
  4. Version: 3.19.0
  5. Release: 1%{?_dist_release}
  6. Group: system
  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. %debug_package
  36. %prep
  37. %setup -q
  38. #perl -pi -e 's|/usr/sbin/logrotate|/usr/sbin/logrotate -l syslog|' examples/logrotate.cron
  39. %build
  40. export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.status\\\""
  41. ./autogen.sh
  42. %configure
  43. make %{?_smp_mflags}
  44. %check
  45. make test
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. make install DESTDIR=$RPM_BUILD_ROOT
  49. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
  50. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily
  51. mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate
  52. install -p -m 644 examples/logrotate.conf $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.conf
  53. install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/logrotate
  54. touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate/logrotate.status
  55. %pre
  56. # If /var/lib/logrotate/logrotate.status does not exist, create it and copy
  57. # the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
  58. # script, otherwise the /var/lib/logrotate/logrotate.status would not be there,
  59. # because during the update, it is removed/renamed.
  60. if [ ! -d %{_localstatedir}/lib/logrotate/ -a -f %{_localstatedir}/lib/logrotate.status ]; then
  61. mkdir -p %{_localstatedir}/lib/logrotate
  62. cp -a %{_localstatedir}/lib/logrotate.status %{_localstatedir}/lib/logrotate
  63. fi
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %files
  67. %defattr(-,root,root)
  68. %{!?_licensedir:%global license %%doc}
  69. %license COPYING
  70. %doc CHANGES
  71. %attr(0755, root, root) %{_sbindir}/logrotate
  72. %attr(0644, root, root) %{_mandir}/man8/logrotate.8*
  73. %attr(0644, root, root) %{_mandir}/man5/logrotate.conf.5*
  74. %attr(0755, root, root) %{_sysconfdir}/cron.daily/logrotate
  75. %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf
  76. %attr(0755, root, root) %dir %{_sysconfdir}/logrotate.d
  77. %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
  78. %changelog
  79. * Fri Jan 14 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.19.0-1
  80. - new upstream release.
  81. * Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.16.0-1
  82. - new upstream release.
  83. * Sun Jun 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-2
  84. - drop Patch0 (get the same effect by another way).
  85. * Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
  86. - new upstream release.
  87. - changed location of Source0.
  88. - imported Patch0 from rawhide.
  89. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.6-1
  90. - rebuild with VineSeed environment
  91. * Thu Oct 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.6-1
  92. - new upstream release
  93. * Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1
  94. - new upstream release
  95. - add Url
  96. - add patches from fedora
  97. - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098
  98. - fix #671926 - fixed crash when tabooext is used in config file
  99. - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes
  100. - fix #666677 - preserve ACLs when rotating files
  101. - fix #644309 - mention all logrotate params in man page
  102. - fix #638629 - better size directive description
  103. - fixed AUTHORS in man page
  104. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1
  105. - new upstream release
  106. - spec in UTF-8
  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. * Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1
  124. - based on 3.6.8-1 from Rawhide
  125. - add Requires, BuildRequires popt
  126. * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
  127. - Old patch from pm@debian.org
  128. * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
  129. - Fixes from bugzilla
  130. * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
  131. - Commit patch from Fidelis Assis <fidelis@embratel.net.br>
  132. * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
  133. - Commit fix for #65299
  134. * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
  135. - Commit fix for #62560
  136. * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
  137. - Apply various bugfix patches from the openwall people
  138. * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
  139. - Fix bug #55809 (include logrotate.status in %files)
  140. - Fix bug #58328 (incorrect error detection when reading state file)
  141. - Allow 'G' size specifier from bug #57242
  142. * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
  143. - patch from Alexander Kourakos <awk@awks.org> to stop the shared
  144. postrotate/prerotate scripts from running if none of the log(s) need
  145. rotating. All log files are now checked for rotation in one batch,
  146. rather than sequentially.
  147. - more fixes from Paul Martin <pm@debian.org>
  148. * Thu Oct 4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2
  149. - added noreplace flag (%%config file is not replaced)
  150. * Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  151. - 3.5.4-1vl1
  152. - based on 3.5.4-1 from Rawhide
  153. - use better macros (%%{_tmppath}, %%{_sbindir})
  154. - added Japanese summary and description
  155. * Thu Jan 4 2001 Bill Nottingham <notting@redhat.com>
  156. - %defattr
  157. * Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
  158. - see CHANGES
  159. * Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
  160. - see CHANGES
  161. * Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
  162. - see CHANGES
  163. * Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
  164. - support spaces in filenames
  165. - added sharedscripts
  166. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  167. - use %%{_mandir} for man pages
  168. * Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
  169. - don't rotate lastlog
  170. * Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
  171. - gzipped manpages