- create the anacron timestamps in correct post script

This commit is contained in:
Tomáš Mráz 2009-08-14 13:54:42 +00:00
parent cb36306037
commit 8bdfbc7f80

View File

@ -6,7 +6,7 @@
Summary: Cron daemon for executing programs at set times Summary: Cron daemon for executing programs at set times
Name: cronie Name: cronie
Version: 1.4.1 Version: 1.4.1
Release: 1%{?dist} Release: 2%{?dist}
License: MIT and BSD and GPLv2 License: MIT and BSD and GPLv2
Group: System Environment/Base Group: System Environment/Base
URL: https://fedorahosted.org/cronie URL: https://fedorahosted.org/cronie
@ -31,7 +31,7 @@ Buildrequires: pam-devel >= 1.0.1
Buildrequires: audit-libs-devel >= 1.4.1 Buildrequires: audit-libs-devel >= 1.4.1
%endif %endif
Requires(post): /sbin/chkconfig coreutils Requires(post): /sbin/chkconfig coreutils sed
Requires(postun): /sbin/chkconfig Requires(postun): /sbin/chkconfig
Requires(postun): /sbin/service Requires(postun): /sbin/service
Requires(preun): /sbin/chkconfig Requires(preun): /sbin/chkconfig
@ -49,6 +49,7 @@ Requires: crontabs
Group: System Environment/Base Group: System Environment/Base
Provides: anacron = 2.4 Provides: anacron = 2.4
Obsoletes: anacron <= 2.3 Obsoletes: anacron <= 2.3
Requires(post): coreutils
%description anacron %description anacron
Anacron becames part of cronie. Anacron is used only for running regular jobs. Anacron becames part of cronie. Anacron is used only for running regular jobs.
@ -104,6 +105,8 @@ rm -rf $RPM_BUILD_ROOT
%post %post
/sbin/chkconfig --add crond /sbin/chkconfig --add crond
%post anacron
[ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily [ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily
[ -e /var/spool/anacron/cron.weekly ] || touch /var/spool/anacron/cron.weekly [ -e /var/spool/anacron/cron.weekly ] || touch /var/spool/anacron/cron.weekly
[ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly [ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly
@ -170,6 +173,9 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
%{_mandir}/man8/anacron.* %{_mandir}/man8/anacron.*
%changelog %changelog
* Fri Aug 14 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.1-2
- create the anacron timestamps in correct post script
* Fri Aug 14 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.1-1 * Fri Aug 14 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.1-1
- update to 1.4.1 - update to 1.4.1
- create and own /var/spool/anacron/cron.{daily,weekly,monthly} to - create and own /var/spool/anacron/cron.{daily,weekly,monthly} to