vixie-cron-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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: 90%{?_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: syslog 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 Dec 22 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.1-90
  124. - using Virtual package name for syslog daemon in Requires
  125. - replace "sysklogd" to "syslog"
  126. * Wed Mar 3 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.1-89
  127. - fix a trivial typo s/crom/cron/ on the "Happy Dolls Festival" day :-P
  128. * Sun Feb 07 2010 NAKAMURA Kenta <kenta@vinelinux.org> 3.0.1-88
  129. - rebuilt with new toolchain
  130. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl5
  131. - applied new versioning policy, spec in utf-8
  132. * Mon Jul 03 2006 Shu KONNO <owa@bg.wakwak.com> 3.0.1-87vl3
  133. - s/Copylight/License/
  134. * Thu Mar 25 2004 Tomoya TAKA <taka@vinelinux.org> 3.0.1-87vl2
  135. - don't apply vixie-cron-3.0.1-pie.patch on alpha
  136. * Mon Mar 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0.1-87vl1
  137. - rebuild with new toolchains
  138. - based on Fedora development 3.0.1-87
  139. * Wed Feb 4 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-86
  140. - Add security_getenforce check.
  141. * Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> - 3.0.1-85
  142. - Fix call to is_selinux_enabled()
  143. * Mon Dec 8 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-84
  144. - change daemon flag to 1
  145. * Wed Dec 3 2003 Dan Walsh <dwalsh@redhat.com> - 3.0.1-83
  146. - Add daemon to make sure child is clean
  147. * Fri Nov 7 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-82
  148. - add vixie-cron-3.0.1-pie.patch to build crond as pie (#108414)
  149. [Ulrich Drepper]
  150. * Tue Sep 30 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-80
  151. - add vixie-cron-3.0.1-vfork-105616.patch to use fork instead of vfork
  152. (#105616) [report and patch from ian@caliban.org]
  153. - update vixie-cron-3.0.1-redhat.patch not to change DESTMAN redundantly
  154. (it is overrriden in the spec file anyway)
  155. * Wed Mar 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-75
  156. - add patch from Valdis Kletnieks to allow root to run "crontab -u <user>"
  157. even for users that aren't allowed to
  158. * Wed Feb 19 2003 Jens Petersen <petersen@redhat.com> - 3.0.1-74
  159. - fix preun script typo (#75137) [reported by Peter Bieringer]
  160. * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 3.0.1-73
  161. - don't set SIGCHLD to SIG_IGN and then try and wait... (#84046)
  162. * Fri Feb 7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.0.1-72
  163. - adjust cron.d patch so that it ignores file with names that begin with '#'
  164. or end with '~', '.rpmorig', '.rpmsave', or '.rpmnew'
  165. - merge hunk of buffer overflow patch into the cron.d patch
  166. * Sat Jul 20 2002 Akira TAGOH <tagoh@redhat.com> 3.0.1-69
  167. - vixie-cron-3.0.1-nonstrip.patch: applied to fix the stripped binary issue.
  168. * Mon Jun 10 2002 Bill Huang <bhuang@redhat.com>
  169. - Fix preun bugs.(#55340)
  170. - Fix fprintf bugs.(#65209)
  171. * Mon Apr 15 2002 Bill Huang <bhuang@redhat.com>
  172. - Fixed #62963.
  173. * Tue Sep 04 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl2
  174. - remove file depend (/etc/init.d)
  175. * Sun Sep 02 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.1-63vl1
  176. - based on 3.0.1-63 from Rawhide and rebuilt for Vine
  177. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  178. - Bump release + rebuild.
  179. * Thu Mar 8 2001 Bill Nottingham <notting@redhat.com>
  180. - add patch from Alan Eldridge <alane@geeksrus.net> to
  181. fix double execution of jobs (#29868)
  182. * Mon Feb 11 2001 Bill Nottingham <notting@redhat.com>
  183. - fix buffer overflow in crontab
  184. * Wed Feb 7 2001 Trond Eivind Glomsr <teg@redhat.com>
  185. - fix usage string in initscript (#26533)
  186. * Tue Feb 6 2001 Bill Nottingham <notting@redhat.com>
  187. - fix build with new glibc (#25931)
  188. * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com>
  189. - change i18n mechanism
  190. * Fri Jan 19 2001 Bill Nottingham <notting@redhat.com>
  191. - log as 'crond', not 'CROND' (#19410)
  192. - account for shifts in system clock (#23230, patch from <pererik@onedial.se>)
  193. - i18n-ize initscript
  194. * Thu Aug 24 2000 Than Ngo <than@redhat.com>
  195. - fix to set startup position correct at update
  196. * Wed Aug 24 2000 Than Ngo <than@redhat.com>
  197. - add /sbin/service to Prereq
  198. - call /sbin/service instead service
  199. - fix startup position (Bug #13353)
  200. * Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
  201. - fix crond logging patch (dan@doom.cmc.msu.ru)
  202. - log via syslog (suggestion from jos@xos.nl)
  203. - put system crontab location in crontab(5) (#14842)
  204. * Fri Jul 28 2000 Bill Nottingham <notting@redhat.com>
  205. - fix condrestart
  206. * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com>
  207. - fix reload bug (#14065)
  208. * Fri Jul 14 2000 Bill Nottingham <notting@redhat.com>
  209. - move initscript back
  210. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  211. - automatic rebuild
  212. * Thu Jul 6 2000 Bill Nottingham <notting@redhat.com>
  213. - prereq /etc/init.d
  214. * Mon Jul 3 2000 Bill Nottingham <notting@redhat.com>
  215. - fix %%post; we do condrestart in %%postun
  216. * Thu Jun 29 2000 Bill Nottingham <notting@redhat.com>
  217. - oops, fix init script
  218. * Tue Jun 27 2000 Bill Nottingham <notting@redhat.com>
  219. - require new initscripts, not prereq
  220. * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
  221. - initscript hacks
  222. * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  223. - tweak logrotate config
  224. * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
  225. - rebuild in new env.
  226. - FHS fixes
  227. - don't ship chkconfig links
  228. * Fri Mar 31 2000 Bill Nottingham <notting@redhat.com>
  229. - fix non-root builds (#10490)
  230. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  231. - do not remove log files
  232. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  233. - handle compressed man pages
  234. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  235. - chkconfig --del in %preun, not %postun
  236. * Wed Aug 25 1999 Bill Nottingham <notting@redhat.com>
  237. - fix buffer overflow
  238. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  239. - initscript munging
  240. * Fri Jul 30 1999 Michael K. Johnson <johnsonm@redhat.com>
  241. - dayofmonth and month can't be 0
  242. * Thu Jun 3 1999 Jeff Johnson <jbj@redhat.com>
  243. - in cron.log use "kill -HUP pid" not killall to preserve errors (#2241).
  244. * Wed Apr 14 1999 Michael K. Johnson <johnsonm@redhat.com>
  245. - add note to man page about DST conversion causing strangeness
  246. - documented cron.d patch
  247. * Tue Apr 13 1999 Michael K. Johnson <johnsonm@redhat.com>
  248. - improved cron.d patch
  249. * Mon Apr 12 1999 Erik Troan <ewt@redhat.com>
  250. - added cron.d patch
  251. * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
  252. - logrotate changes
  253. * Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
  254. - clean up log files on deinstallation
  255. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  256. - auto rebuild in the new build environment (release 28)
  257. * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
  258. - build for glibc 2.1
  259. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  260. - translations modified for de
  261. * Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
  262. - reset SIGCHLD before grandchild execle (problem #732)
  263. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  264. - enhanced initscript
  265. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  266. - translations modified for de, fr, tr
  267. * Thu Dec 11 1997 Cristian Gafton <gafton@redhat.com>
  268. - added a patch to get rid of the dangerous sprintf() calls
  269. - added BuildRoot and Prereq: /sbin/chkconfig
  270. * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
  271. - fixed cron/crond dichotomy in init file.
  272. * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
  273. - fixed bad init symlinks
  274. * Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
  275. - force it to use SIGCHLD instead of defunct SIGCLD
  276. * Mon Oct 20 1997 Erik Troan <ewt@redhat.com>
  277. - updated for chkconfig
  278. - added status, restart options to init script
  279. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  280. - built against glibc
  281. * Wed Feb 19 1997 Erik Troan <ewt@redhat.com>
  282. - Switch conditional from "axp" to "alpha"