vixie-cron-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. Summary: The Vixie cron daemon for executing specified programs at set times.
  2. Summary(ja): Vixie cron デーモン - 指定された時刻に特定のプログラムを実行する
  3. Name: vixie-cron
  4. Version: 3.0.1
  5. Release: 89%{?_dist_release}
  6. License: distributable
  7. Group: System Environment/Base
  8. Source0: ftp://ftp.vix.com/pub/vixie/vixie-cron-3.0.1.tar.gz
  9. Source1: vixie-cron.init
  10. Patch0: vixie-cron-3.0.1-redhat.patch
  11. Patch1: vixie-cron-3.0.1-security.patch
  12. Patch2: vixie-cron-3.0.1-security2.patch
  13. Patch3: vixie-cron-3.0.1-badsig.patch
  14. Patch4: vixie-cron-3.0.1-crontab.patch
  15. Patch5: vixie-cron-3.0.1-sigchld.patch
  16. Patch6: vixie-cron-3.0.1-sprintf.patch
  17. Patch7: vixie-cron-3.0.1-sigchld2.patch
  18. Patch8: vixie-cron-3.0.1-crond.patch
  19. Patch9: vixie-cron-3.0.1-dst.patch
  20. Patch10: vixie-cron-3.0.1-0days.patch
  21. Patch11: vixie-cron-3.0.1-nodot.patch
  22. Patch12: vixie-cron-3.0.1-syslog.patch
  23. Patch13: vixie-cron-3.0.1-crontabloc.patch
  24. Patch14: vixie-cron-3.0.1-name.patch
  25. Patch15: vixie-cron-3.0.1-time.patch
  26. Patch16: vixie-cron-3.0.1-newtime.patch
  27. Patch17: vixie-cron-3.0.1-buffer.patch
  28. Patch18: vixie-cron-3.0.1-timeaftertime.patch
  29. Patch19: vixie-cron-3.0.1-cront_stdin.patch
  30. Patch20: vixie-cron-3.0.1-fprintf.patch
  31. Patch21: vixie-cron-3.0.1-nonstrip.patch
  32. Patch22: vixie-cron-3.0.1-root_-u-85879.patch
  33. Patch24: vixie-cron-3.0.1-vfork-105616.patch
  34. Patch25: vixie-cron-3.0.1-pie.patch
  35. # Vine Patch(es)
  36. Patch100: vixie-cron-3.0.1-linux.patch
  37. Buildroot: %{_tmppath}/%{name}-%{version}-root
  38. Requires: sysklogd >= 1.3.33-6 bash >= 2.0
  39. #Requires(pre): /sbin/chkconfig /etc/init.d /sbin/service
  40. Requires(pre): /sbin/chkconfig /sbin/service
  41. %description
  42. The vixie-cron package contains the Vixie version of cron. Cron is a
  43. standard UNIX daemon that runs specified programs at scheduled times.
  44. Vixie cron adds better security and more powerful configuration
  45. options to the standard version of cron.
  46. %description -l ja
  47. vixie-cron パッケージには Vixie 版 cron が収録されています.
  48. cron とは標準的な UNIX のデーモンで,予め指定した時刻に特定の
  49. プログラムを実行するものです.Vixie cron は標準の cron に加え,
  50. セキュリティ面を強化し,設定オプションも豊富に追加されています.
  51. %prep
  52. %setup
  53. %patch0 -p1 -b .norh
  54. %patch1 -p1 -b .nomisc
  55. %patch2 -p1 -b .security2
  56. %patch3 -p1 -b .badsig
  57. %patch4 -p1 -b .crontabhole
  58. %patch5 -p1 -b .sigchld
  59. %patch6 -p1 -b .sprintf
  60. %patch7 -p1 -b .sigchld
  61. %patch8 -p1 -b .crond
  62. %patch9 -p1 -b .dst
  63. %patch10 -p1 -b .0days
  64. %patch11 -p1 -b .nodot
  65. %patch12 -p1 -b .syslog
  66. %patch13 -p1 -b .crontabloc
  67. %patch14 -p1 -b .name
  68. %patch15 -p1 -b .time
  69. %patch16 -p1 -b .newtime
  70. %patch17 -p1 -b .buffer
  71. %patch18 -p1 -b .timeaftertime
  72. %patch19 -p1 -b .cront_stdin
  73. %patch20 -p1 -b .fprintf
  74. %patch21 -p1 -b .nonstrip
  75. %patch22 -p1 -b .root_-u
  76. %patch24 -p1 -b .vfork
  77. %ifnarch alpha
  78. %patch25 -p1 -b .pie
  79. %endif
  80. # Vine Patch(es)
  81. %patch100 -p1 -b .linux
  82. %build
  83. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  84. %install
  85. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  86. mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
  87. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
  88. mkdir -p $RPM_BUILD_ROOT%{_initdir}
  89. make install DESTDIR=$RPM_BUILD_ROOT DESTMAN=$RPM_BUILD_ROOT%{_mandir}
  90. mkdir -p $RPM_BUILD_ROOT/var/spool/cron
  91. chmod 700 $RPM_BUILD_ROOT/var/spool/cron
  92. mkdir -p $RPM_BUILD_ROOT/etc/cron.d
  93. chmod 755 $RPM_BUILD_ROOT/etc/cron.d
  94. install -m755 $RPM_SOURCE_DIR/vixie-cron.init $RPM_BUILD_ROOT%{_initdir}/crond
  95. %clean
  96. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  97. %post
  98. /sbin/chkconfig --add crond
  99. %preun
  100. if [ "$1" = 0 ]; then
  101. [ -f /var/lock/subsys/crond ] && /sbin/service crond stop >/dev/null 2>&1
  102. /sbin/chkconfig --del crond
  103. fi
  104. %postun
  105. if [ "$1" -ge "1" ]; then
  106. /sbin/service crond condrestart >/dev/null 2>&1
  107. fi
  108. %triggerpostun -- vixie-cron < 3.0.1-56
  109. /sbin/chkconfig --del crond
  110. /sbin/chkconfig --add crond
  111. %files
  112. %defattr(-,root,root)
  113. /usr/sbin/crond
  114. /usr/bin/crontab
  115. %{_mandir}/man8/crond.*
  116. %{_mandir}/man8/cron.*
  117. %{_mandir}/man5/crontab.*
  118. %{_mandir}/man1/crontab.*
  119. %dir /var/spool/cron
  120. %dir /etc/cron.d
  121. %config %{_initdir}/crond
  122. %changelog
  123. * Wed Mar 3 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.1-89
  124. - fix a trivial typo s/crom/cron/ on the "Happy Dolls Festival" day :-P
  125. * Sun Feb 07 2010 NAKAMURA Kenta <kenta@vinelinux.org> 3.0.1-88
  126. - rebuilt with new toolchain
  127. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl5
  128. - applied new versioning policy, spec in utf-8
  129. * Mon Jul 03 2006 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl3
  130. - s/Copylight/License/
  131. * Thu Mar 25 2004 Tomoya TAKA <taka@vinelinux.org> 3.0.1-87vl2
  132. - don't apply vixie-cron-3.0.1-pie.patch on alpha
  133. * Mon Mar 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.1-87vl1
  134. - rebuild with new toolchains
  135. - based on Fedora development 3.0.1-87
  136. * Wed Feb 4 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-86
  137. - Add security_getenforce check.
  138. * Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-85
  139. - Fix call to is_selinux_enabled()
  140. * Mon Dec 8 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-84
  141. - change daemon flag to 1
  142. * Wed Dec 3 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-83
  143. - Add daemon to make sure child is clean
  144. * Fri Nov 7 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-82
  145. - add vixie-cron-3.0.1-pie.patch to build crond as pie (#108414)
  146. [Ulrich Drepper]
  147. * Tue Sep 30 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-80
  148. - add vixie-cron-3.0.1-vfork-105616.patch to use fork instead of vfork
  149. (#105616) [report and patch from ian@caliban.org]
  150. - update vixie-cron-3.0.1-redhat.patch not to change DESTMAN redundantly
  151. (it is overrriden in the spec file anyway)
  152. * Wed Mar 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-75
  153. - add patch from Valdis Kletnieks to allow root to run "crontab -u <user>"
  154. even for users that aren't allowed to
  155. * Wed Feb 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-74
  156. - fix preun script typo (#75137) [reported by Peter Bieringer]
  157. * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 3.0.1-73
  158. - don't set SIGCHLD to SIG_IGN and then try and wait... (#84046)
  159. * Fri Feb 7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.0.1-72
  160. - adjust cron.d patch so that it ignores file with names that begin with '#'
  161. or end with '~', '.rpmorig', '.rpmsave', or '.rpmnew'
  162. - merge hunk of buffer overflow patch into the cron.d patch
  163. * Sat Jul 20 2002 Akira TAGOH <tagoh@redhat.com> 3.0.1-69
  164. - vixie-cron-3.0.1-nonstrip.patch: applied to fix the stripped binary issue.
  165. * Mon Jun 10 2002 Bill Huang <bhuang@redhat.com>
  166. - Fix preun bugs.(#55340)
  167. - Fix fprintf bugs.(#65209)
  168. * Mon Apr 15 2002 Bill Huang <bhuang@redhat.com>
  169. - Fixed #62963.
  170. * Tue Sep 04 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl2
  171. - remove file depend (/etc/init.d)
  172. * Sun Sep 02 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl1
  173. - based on 3.0.1-63 from Rawhide and rebuilt for Vine
  174. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  175. - Bump release + rebuild.
  176. * Thu Mar 8 2001 Bill Nottingham <notting@redhat.com>
  177. - add patch from Alan Eldridge <alane@geeksrus.net> to
  178. fix double execution of jobs (#29868)
  179. * Mon Feb 11 2001 Bill Nottingham <notting@redhat.com>
  180. - fix buffer overflow in crontab
  181. * Wed Feb 7 2001 Trond Eivind Glomsr <teg@redhat.com>
  182. - fix usage string in initscript (#26533)
  183. * Tue Feb 6 2001 Bill Nottingham <notting@redhat.com>
  184. - fix build with new glibc (#25931)
  185. * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com>
  186. - change i18n mechanism
  187. * Fri Jan 19 2001 Bill Nottingham <notting@redhat.com>
  188. - log as 'crond', not 'CROND' (#19410)
  189. - account for shifts in system clock (#23230, patch from <pererik@onedial.se>)
  190. - i18n-ize initscript
  191. * Thu Aug 24 2000 Than Ngo <than@redhat.com>
  192. - fix to set startup position correct at update
  193. * Wed Aug 24 2000 Than Ngo <than@redhat.com>
  194. - add /sbin/service to Prereq
  195. - call /sbin/service instead service
  196. - fix startup position (Bug #13353)
  197. * Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
  198. - fix crond logging patch (dan@doom.cmc.msu.ru)
  199. - log via syslog (suggestion from jos@xos.nl)
  200. - put system crontab location in crontab(5) (#14842)
  201. * Fri Jul 28 2000 Bill Nottingham <notting@redhat.com>
  202. - fix condrestart
  203. * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com>
  204. - fix reload bug (#14065)
  205. * Fri Jul 14 2000 Bill Nottingham <notting@redhat.com>
  206. - move initscript back
  207. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  208. - automatic rebuild
  209. * Thu Jul 6 2000 Bill Nottingham <notting@redhat.com>
  210. - prereq /etc/init.d
  211. * Mon Jul 3 2000 Bill Nottingham <notting@redhat.com>
  212. - fix %%post; we do condrestart in %%postun
  213. * Thu Jun 29 2000 Bill Nottingham <notting@redhat.com>
  214. - oops, fix init script
  215. * Tue Jun 27 2000 Bill Nottingham <notting@redhat.com>
  216. - require new initscripts, not prereq
  217. * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
  218. - initscript hacks
  219. * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  220. - tweak logrotate config
  221. * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
  222. - rebuild in new env.
  223. - FHS fixes
  224. - don't ship chkconfig links
  225. * Fri Mar 31 2000 Bill Nottingham <notting@redhat.com>
  226. - fix non-root builds (#10490)
  227. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  228. - do not remove log files
  229. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  230. - handle compressed man pages
  231. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  232. - chkconfig --del in %preun, not %postun
  233. * Wed Aug 25 1999 Bill Nottingham <notting@redhat.com>
  234. - fix buffer overflow
  235. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  236. - initscript munging
  237. * Fri Jul 30 1999 Michael K. Johnson <johnsonm@redhat.com>
  238. - dayofmonth and month can't be 0
  239. * Thu Jun 3 1999 Jeff Johnson <jbj@redhat.com>
  240. - in cron.log use "kill -HUP pid" not killall to preserve errors (#2241).
  241. * Wed Apr 14 1999 Michael K. Johnson <johnsonm@redhat.com>
  242. - add note to man page about DST conversion causing strangeness
  243. - documented cron.d patch
  244. * Tue Apr 13 1999 Michael K. Johnson <johnsonm@redhat.com>
  245. - improved cron.d patch
  246. * Mon Apr 12 1999 Erik Troan <ewt@redhat.com>
  247. - added cron.d patch
  248. * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
  249. - logrotate changes
  250. * Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
  251. - clean up log files on deinstallation
  252. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  253. - auto rebuild in the new build environment (release 28)
  254. * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
  255. - build for glibc 2.1
  256. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  257. - translations modified for de
  258. * Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
  259. - reset SIGCHLD before grandchild execle (problem #732)
  260. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  261. - enhanced initscript
  262. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  263. - translations modified for de, fr, tr
  264. * Thu Dec 11 1997 Cristian Gafton <gafton@redhat.com>
  265. - added a patch to get rid of the dangerous sprintf() calls
  266. - added BuildRoot and Prereq: /sbin/chkconfig
  267. * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
  268. - fixed cron/crond dichotomy in init file.
  269. * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
  270. - fixed bad init symlinks
  271. * Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
  272. - force it to use SIGCHLD instead of defunct SIGCLD
  273. * Mon Oct 20 1997 Erik Troan <ewt@redhat.com>
  274. - updated for chkconfig
  275. - added status, restart options to init script
  276. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  277. - built against glibc
  278. * Wed Feb 19 1997 Erik Troan <ewt@redhat.com>
  279. - Switch conditional from "axp" to "alpha"