Compare commits

...
Sign in to create a new pull request.

62 commits

Author SHA1 Message Date
Fedora Release Engineering
4e4933fc09 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 18:50:30 +00:00
Lukáš Zaoral
35e7c6914c
tests: migrate from STI to TMT
Related: https://fedoraproject.org/wiki/Changes/DisableSTI
2025-07-04 12:06:49 +02:00
Lukáš Zaoral
794f07a2cf
tests/test-of-functionality-of-crontabs: fix the test 2025-07-04 12:06:17 +02:00
Fedora Release Engineering
d7dbb64f30 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 14:53:13 +00:00
Fedora Release Engineering
68468b0dcb Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 20:13:05 +00:00
Fedora Release Engineering
427c65fbce Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 08:27:23 +00:00
Fedora Release Engineering
b8a5890952 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 16:22:55 +00:00
Jan Staněk
a69f8fa175
Migrate to rpmautospec and current versioning guidelines 2023-09-12 11:05:59 +02:00
Jan Staněk
99551e4a35
Migrated to SPDX license 2023-09-12 10:32:20 +02:00
Fedora Release Engineering
33c49c5060 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 16:36:37 +00:00
Fedora Release Engineering
90eaa6a8e6 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 00:41:16 +00:00
Fedora Release Engineering
922473df22 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 23:45:54 +00:00
Ondřej Pohořelský
9297868f91 Make cronie hard dependency
Resolves: #2089793
2022-06-23 13:31:52 +02:00
Fedora Release Engineering
41bd53a860 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 00:00:41 +00:00
Fedora Release Engineering
9914248222 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 20:07:48 +00:00
Fedora Release Engineering
cde7632e65 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 02:42:58 +00:00
Fedora Release Engineering
29368b04c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 14:44:19 +00:00
Fedora Release Engineering
f7d6c5a8a7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 15:00:52 +00:00
Fedora Release Engineering
eb18b23c5f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 21:11:40 +00:00
Tomas Mraz
ed251e5451 fix regression from the previous release (#1716114) 2019-06-03 10:47:46 +02:00
Tomas Mraz
f92772a916 fix race condition in run-parts causing it to hang occasionally
also fix upstream URLs
2019-05-30 12:17:30 +02:00
Fedora Release Engineering
8c5e4cd77f - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 16:26:05 +00:00
Igor Gnatenko
933c750526 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:23:58 +01:00
Fedora Release Engineering
d2777e139a - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 22:21:28 +00:00
Jason Tibbitts
5891000e5f Remove needless use of %defattr 2018-07-10 00:34:16 -05:00
Igor Gnatenko
11505db091
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 07:56:09 +01:00
Fedora Release Engineering
d73043d9b9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 05:55:42 +00:00
Andrei Stepanov
39edbb6831 Add CI tests using the standard test interface
Adds tests according to the CI wiki [0] specifically the standard test interface in the spec [1].

[0]: https://fedoraproject.org/wiki/CI
[1]: https://fedoraproject.org/wiki/Changes/InvokingTests
2017-10-03 14:24:48 +00:00
Fedora Release Engineering
8c1464181a - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 05:38:59 +00:00
Fedora Release Engineering
a1224ec526 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 07:58:59 +00:00
Tomas Mraz
e1c5d6291c use Recommends to pull in cronie (#1269172) 2016-11-24 15:09:43 +01:00
Dennis Gilmore
5b42363b93 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 18:13:33 +00:00
Tomas Mraz
2d906b1492 fix logging of PID in the finished line (#1236841) 2015-08-12 17:21:35 +02:00
Dennis Gilmore
5f93fc96e6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 03:23:49 +00:00
Tom Callaway
64dfe52e14 fix license handling 2014-07-11 17:01:32 -04:00
Dennis Gilmore
247a1240ea - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 01:11:01 -05:00
Marcela Mašláňová
75ad0b37a0 fix man page link 971583 2013-12-20 12:11:47 +01:00
Dennis Gilmore
54a0e93621 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 01:08:12 -05:00
Dennis Gilmore
41e8c3a315 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 13:08:22 -06:00
Marcela Mašláňová
0eabf97b33 Update to the latest git snapshot with copying file and fixed man pages. 2012-11-02 14:06:16 +01:00
Dennis Gilmore
0a83f290e4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 14:52:14 -05:00
Dennis Gilmore
eef59778f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 18:01:11 -06:00
Dennis Gilmore
7e726e3665 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 05:53:55 -06:00
Marcela Mašláňová
e184c2711c run-parts attempted to execute jobs that are not executable. 2010-11-15 15:26:42 +01:00
Marcela Mašláňová
369d601656 652268 fix missing / 2010-11-11 16:14:15 +01:00
Marcela Mašláňová
ed00a4fa22 Update to new snapshot with --list and --test option 2010-11-09 11:14:57 +01:00
Marcela Mašláňová
a49aff492f Move source to fedorahosted
Use git tarball from fedorahosted as source.
2010-10-22 15:04:57 +02:00
Marcela Mašláňová
734f352fec Specfile changes. 2010-10-18 11:53:05 +02:00
Petr Lautrbach
ed54c10f6f run-parts: add --list option
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
2010-10-18 11:51:12 +02:00
Fedora Release Engineering
520e3c1458 dist-git conversion 2010-07-28 12:19:38 +00:00
Marcela Mašláňová
91200e746f - remove useless seting of home to "/" 2010-03-24 11:30:20 +00:00
Bill Nottingham
052d1b0310 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:47:38 +00:00
Marcela Mašláňová
8e65d7233b Fix typo in spec. 2009-10-12 13:36:38 +00:00
Marcela Mašláňová
f5ff29b79e - rebuilt for review 2009-10-12 12:16:13 +00:00
Jesse Keating
f0fd51ecdc - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 19:39:57 +00:00
Marcela Mašláňová
4eb96e473a - 491793 thanks Andrew Hecox for patch which allows set allow/deny jobs
- comment change "empty crontab"
2009-06-18 08:14:27 +00:00
Jesse Keating
9388f2a3ca - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-24 09:44:43 +00:00
Marcela Mašláňová
7a0bb4fafa - 474219 requires on /etc/cron.d 2009-01-27 13:32:21 +00:00
Marcela Mašláňová
75ca056e74 - Change requires back to cronie. 2009-01-26 12:12:14 +00:00
Marcela Mašláňová
14ec93af5b Change from /etc/cron.d/ to cronie because nothing providing /etc/cron.d/
yet.
2009-01-26 12:02:41 +00:00
Marcela Mašláňová
6eac212438 - change /etc/crontab. All anacron jobs in cron.daily,weekly,... are check
by anacron every hour. Anacron run them if they didn't run today.
2009-01-26 09:25:39 +00:00
Ján ONDREJ
542c8fff18 Added /etc/cron.{hourly,daily,weekly,monthly} dirs again. bz#473353 2008-12-01 07:47:36 +00:00
14 changed files with 471 additions and 213 deletions

View file

@ -1 +0,0 @@
config

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*~
*.tar.*

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: crontabs
# $Id: Makefile,v 1.1 2004/09/09 03:58:16 cvsdist Exp $
NAME := crontabs
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

259
changelog Normal file
View file

@ -0,0 +1,259 @@
* Tue Sep 12 2023 Jan Staněk <jstanek@redhat.com> - 1.11-30.20190603git
- Migrated to SPDX license field.
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-30.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-29.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-28.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jun 23 2022 Ondřej Pohořelský <opohorel@redhat.com> - 1.11-27.20190603git
- Make cronie hard dependency
- Resolves: #2089793
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-26.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-25.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-24.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-23.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-22.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-21.20190603git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jun 3 2019 Tomáš Mráz <tmraz@redhat.com> - 1.11-20.20190603git
- fix regression from the previous release (#1716114)
* Thu May 30 2019 Tomáš Mráz <tmraz@redhat.com> - 1.11-19.20190530git
- fix race condition in run-parts causing it to hang occasionally
- fix upstream URLs
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-18.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-17.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-16.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-15.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-14.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Nov 24 2016 Tomáš Mráz <tmraz@redhat.com> - 1.11-13.20150630git
- use Recommends to pull in cronie (#1269172)
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-12.20150630git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Aug 12 2015 Tomáš Mráz <tmraz@redhat.com> - 1.11-11.20150630git
- fix logging of PID in the finished line (#1236841)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-10.20130830git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 1.11-9.20130830git
- fix license handling
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-8.20130830git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Aug 30 2013 Marcela Mašláňová <mmaslano@redhat.com> 1.11-7.20121102git
- fix man page link 971583
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-6.20121102git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-5.20121102git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Nov 1 2012 Marcela Mašláňová <mmaslano@redhat.com> 1.11-5.20121102git
- update to the latest git snapshot with copying file and fixed man pages
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4.20101115git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-3.20101115git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2.20101115git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Nov 15 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.11-1
- run-parts attempted to execute jobs that are not executable.
* Thu Nov 11 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.11-1
- 652268 fix missing /
* Tue Nov 9 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.11-1
- new git snapshot with --test and --list options
* Fri Oct 22 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.11-1
- use sources from source fedorahosted
* Mon Oct 18 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.10-34
- add --list option into run-parts
* Wed Mar 24 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.10-33
- remove useless seting of home to "/"
* Mon Oct 12 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-32
- rebuilt for review
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jun 18 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-30
- 491793 thanks Andrew Hecox for patch which allows set allow/deny jobs
- comment change "empty crontab"
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Jan 27 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-28
- 474219 requires on /etc/cron.d
* Mon Jan 26 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-27
- Change requires back to cronie.
* Mon Jan 26 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-26
- change /etc/crontab. All anacron jobs in cron.daily,weekly,...
are check by anacron every hour. Anacron run them if they didn't
run today.
* Mon Dec 1 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> 1.10-25
- Added /etc/cron.{hourly,daily,weekly,monthly} dirs again. bz#473353
* Mon Jun 9 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-23
- 450084 LANG=C is set up for running scripts
* Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-22
- remove scripts for delay, anacron now own most of the scripts.
Crontabs owns only run-parts, /etc/crontab and crontabs sysconfig.
* Mon May 5 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-21
- 445079 delay script failed in case DELAY is zero
* Fri Apr 4 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-20
- 440410 log pid of process instead of logger's pid
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-19
- run-parts log also end of each job (patch from J. Kamens)
- Resolves: rhbz#303081
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
- cron.{hourly, daily,...} run ok
- rhbz#296741
* Thu Aug 30 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-17
- better solution of configuration script
* Mon Aug 27 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-16
- 254220 typo in script run-parts
* Tue Aug 21 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-15
- corrected license tag in spec
- add config file to crontab - delay of cron.{daily,...} could be
switch off
- Resolves: rhbz#253536
* Tue Feb 27 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-14
- review again
* Thu Feb 8 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-13
- rhbz#225662 review
* Mon Jan 29 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-12
- link daily,weekly,monthly
- rhbz#224687
* Wed Jan 24 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-11
- crontabs should ignore Cfengine files, rebuilt
- Resolves: rhbz#223472
* Wed Oct 11 2006 Marcela Maslanova <mmaslano@redhat.com> 1.10-9
- patch (#110894) for delaying more emails in the moment
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> 0 1.10-8
- rebuilt
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Mon Sep 20 2004 Jason Vas Dias <jvdias@redhat.com>
- rebuilt under new CVS for dist-fc3
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 7 2003 Bill Nottingham <notting@redhat.com>
- not-as-automated rebuild
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu Jul 19 2001 Preston Brown <pbrown@redhat.com>
- don't require tmpwatch
* Tue Feb 27 2001 Preston Brown <pbrown@redhat.com>
- noreplace crontab file; use tmppath
* Wed Jan 31 2001 Bill Nottingham <notting@redhat.com>
- don't process ,v files (#15968)
* Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
- put name of script in output of stuff run by run-parts (#12411)
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Tue Jun 6 2000 Bill Nottingham <notting@redhat.com>
- rebuild
* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
- don't run *~ or *, files (#4740).
* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
- don't run .rpm{save,new,orig} files (bug #2190)
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 5)
* Mon Nov 30 1998 Bill Nottingham <notting@redhat.com>
- crontab: set HOME=/
* Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com>
- run-parts: skip sub-directories (e.g. CVS) found instead of complaining
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Tue Apr 07 1998 Erik Troan <ewt@redhat.com>
- moved crontab jobs up a bit to make sure they aren't confused by
switching to and fro daylight savings time
* Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
- removed tmpwatch and at entries
* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
- made a noarch package

10
crontab
View file

@ -1,10 +0,0 @@
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

View file

@ -1,159 +1,60 @@
%global snapshot_date 20190603
%global snapshot_commit 9e74f2d
Summary: Root crontab files used to schedule the execution of programs
Name: crontabs
Version: 1.10
Release: 23%{?dist}
License: Public Domain and GPLv2
Group: System Environment/Base
Source0: crontab
Source1: run-parts
Source2: config
Version: 1.11^%{snapshot_date}git%{snapshot_commit}
Release: %autorelease
# See https://gitlab.com/fedora/legal/fedora-license-data/-/merge_requests/359 for reasoning why Public Domain is not here.
License: GPL-2.0-or-later
URL: https://github.com/cronie-crond/crontabs
Source0: https://github.com/cronie-crond/crontabs/releases/download/crontabs-%{snapshot_date}/%{name}-%(echo %{version}|cut -d\^ -f1)-%{snapshot_date}git.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: sed
Requires: cronie
%description
The crontabs package contains root crontab files. Crontab is the
program used to install, uninstall or list the tables used to drive the
cron daemon. The cron daemon checks the crontab files to see when
particular commands are scheduled to be executed. If commands are
scheduled, it executes them.
This package is used by Fedora mainly for executing files by cron.
The crontabs package contains root crontab files and directories.
You will need to install cron daemon to run the jobs from the crontabs.
The cron daemon such as cronie or fcron checks the crontab files to
see when particular commands are scheduled to be executed. If commands
are scheduled, it executes them.
Crontabs handles a basic system function, so it should be installed on
your system.
%prep
%autosetup -n %{name}-%(echo %{version}|cut -d\^ -f1)
%build
#empty
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/cron.{hourly,daily,weekly,monthly}
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/crontab
install -m644 $RPM_SOURCE_DIR/crontab $RPM_BUILD_ROOT/etc/crontab
install -m755 $RPM_SOURCE_DIR/run-parts $RPM_BUILD_ROOT/usr/bin/run-parts
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4/
%clean
rm -rf $RPM_BUILD_ROOT
install -m644 ./crontab $RPM_BUILD_ROOT/etc/crontab
install -m755 ./run-parts $RPM_BUILD_ROOT/usr/bin/run-parts
install -m644 ./{crontabs,run-parts}.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/
touch $RPM_BUILD_ROOT/etc/sysconfig/run-parts
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license COPYING
%config(noreplace) /etc/crontab
%attr(0644,root,root) %config(noreplace) /etc/sysconfig/run-parts
%{_bindir}/run-parts
%config(noreplace) /etc/sysconfig/crontab
%dir /etc/cron.hourly
%dir /etc/cron.daily
%dir /etc/cron.weekly
%dir /etc/cron.monthly
%{_mandir}/man4/*
%changelog
* Mon Jun 9 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-23
- 450084 LANG=C is set up for running scripts
* Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-22
- remove scripts for delay, anacron now own most of the scripts.
Crontabs owns only run-parts, /etc/crontab and crontabs sysconfig.
* Mon May 5 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-21
- 445079 delay script failed in case DELAY is zero
* Fri Apr 4 2008 Marcela Maslanova <mmaslano@redhat.com> 1.10-20
- 440410 log pid of process instead of logger's pid
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-19
- run-parts log also end of each job (patch from J. Kamens)
- Resolves: rhbz#303081
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
- cron.{hourly, daily,...} run ok
- rhbz#296741
* Thu Aug 30 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-17
- better solution of configuration script
* Mon Aug 27 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-16
- 254220 typo in script run-parts
* Tue Aug 21 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-15
- corrected license tag in spec
- add config file to crontab - delay of cron.{daily,...} could be
switch off
- Resolves: rhbz#253536
* Tue Feb 27 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-14
- review again
* Thu Feb 8 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-13
- rhbz#225662 review
* Mon Jan 29 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-12
- link daily,weekly,monthly
- rhbz#224687
* Wed Jan 24 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-11
- crontabs should ignore Cfengine files, rebuilt
- Resolves: rhbz#223472
* Wed Oct 11 2006 Marcela Maslanova <mmaslano@redhat.com> 1.10-9
- patch (#110894) for delaying more emails in the moment
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> 0 1.10-8
- rebuilt
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Mon Sep 20 2004 Jason Vas Dias <jvdias@redhat.com>
- rebuilt under new CVS for dist-fc3
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 7 2003 Bill Nottingham <notting@redhat.com>
- not-as-automated rebuild
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu Jul 19 2001 Preston Brown <pbrown@redhat.com>
- don't require tmpwatch
* Tue Feb 27 2001 Preston Brown <pbrown@redhat.com>
- noreplace crontab file; use tmppath
* Wed Jan 31 2001 Bill Nottingham <notting@redhat.com>
- don't process ,v files (#15968)
* Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
- put name of script in output of stuff run by run-parts (#12411)
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Tue Jun 6 2000 Bill Nottingham <notting@redhat.com>
- rebuild
* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
- don't run *~ or *, files (#4740).
* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
- don't run .rpm{save,new,orig} files (bug #2190)
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 5)
* Mon Nov 30 1998 Bill Nottingham <notting@redhat.com>
- crontab: set HOME=/
* Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com>
- run-parts: skip sub-directories (e.g. CVS) found instead of complaining
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Tue Apr 07 1998 Erik Troan <ewt@redhat.com>
- moved crontab jobs up a bit to make sure they aren't confused by
switching to and fro daylight savings time
* Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
- removed tmpwatch and at entries
* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
- made a noarch package
%autochangelog

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1,40 +0,0 @@
#!/bin/bash
# run-parts - concept taken from Debian
# keep going when something fails
set +e
if [ $# -lt 1 ]; then
echo "Usage: run-parts <dir>"
exit 1
fi
if [ ! -d $1 ]; then
echo "Not a directory: $1"
exit 1
fi
# Ignore *~ and *, scripts
for i in $(LC_ALL=C; echo $1/*[^~,]) ; do
[ -d $i ] && continue
# Don't run *.{rpmsave,rpmorig,rpmnew,swp,cfsaved} scripts
[ "${i%.cfsaved}" != "${i}" ] && continue
[ "${i%.rpmsave}" != "${i}" ] && continue
[ "${i%.rpmorig}" != "${i}" ] && continue
[ "${i%.rpmnew}" != "${i}" ] && continue
[ "${i%.swp}" != "${i}" ] && continue
[ "${i%,v}" != "${i}" ] && continue
if [ -x $i ]; then
logger -p cron.notice -t "run-parts($1)[$$]" "starting $(basename $i)"
$i 2>&1 | awk -v "progname=$i" \
'progname {
print progname ":\n"
progname="";
}
{ print; }'
logger -i -p cron.notice -t "run-parts($1)" "finished $(basename $i)"
fi
done
exit 0

View file

@ -1 +1 @@
ba1e7d606a110d281c16d9d49c6f335d config
SHA512 (crontabs-1.11-20190603git.tar.gz) = 1f0dae337c9dcd07cbc20bdc2c596f4e6aa314c025329fa5d2d53048cf84ba1e0c82bb0b66fefb7333aa58290d421debe0aaf8bf5d6733ddd4442d9ad668a945

View file

@ -0,0 +1,63 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
# Description: test of functionality of crontabs
# Author: Petr Sklenar <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2011 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: test of functionality of crontabs" >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 30m" >> $(METADATA)
@echo "RunFor: crontabs" >> $(METADATA)
@echo "Requires: crontabs" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
rhts-lint $(METADATA)

View file

@ -0,0 +1,3 @@
PURPOSE of /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
Description: test of functionality of crontabs
Author: Petr Sklenar <psklenar@redhat.com>

View file

@ -0,0 +1,12 @@
summary: test of functionality of crontabs
description: ''
contact: Petr Sklenar <psklenar@redhat.com>
component:
- crontabs
test: ./runtest.sh
framework: beakerlib
recommend:
- crontabs
duration: 30m
extra-summary: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
extra-task: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs

View file

@ -0,0 +1,84 @@
#!/bin/bash
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
# Description: test of functionality of crontabs
# Author: Petr Sklenar <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2011 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include rhts environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="crontabs"
#how long should we wait:
COUNT=5
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
user="petr$RANDOM"
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "useradd $user"
rlRun "rlServiceStart crond"
rlFileBackup /etc/crontab
rlPhaseEnd
rlPhaseStartTest
echo "* * * * * root echo root >> /tmp/test.createdbyroot" >> /etc/crontab
rlAssert0 "added first entry into crontab" $?
echo "* * * * * $user echo petr >> /tmp/test.createdbypetr" >> /etc/crontab
rlAssert0 "added second entry into crontab" $?
#sleep a while
rlRun "sleep ${COUNT}m" 0 "sleeping for 5m to wait for cron to create files"
rlPhaseEnd
rlPhaseStartTest "check content"
byroot=`grep root /tmp/test.createdbyroot | wc -l`
bypetr=`grep petr /tmp/test.createdbypetr | wc -l`
if [ "$byroot" -ge "${COUNT}" ];then
rlPass "there is $byroot line"
else
rlFail "there is $byroot line"
fi
if [ "$bypetr" -ge "${COUNT}" ];then
rlPass "there is $bypetr line"
else
rlFail "there is $bypetr line"
fi
rlPhaseEnd
rlPhaseStartTest "check permissions of created files"
/bin/ls -la /tmp/test.createdbyroot | grep "root root"
rlAssert0 "permissions are root root" $?
/bin/ls -la /tmp/test.createdbypetr | grep "$user $user"
rlAssert0 "permissions are $user $user" $?
rlPhaseEnd
rlPhaseStartCleanup
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "userdel -rf $user"
rlRun "rlServiceRestore crond"
rlFileRestore
rlPhaseEnd
rlJournalPrintText
rlJournalEnd