Author: glen Date: Sun Jan 8 22:54:10 2012 GMT Module: packages Tag: HEAD ---- Log message: - use plain crontab, if want to disable cron, just disable the cron
---- Files affected: packages/fetch-crl: fetch-crl.spec (1.6 -> 1.7) , fetch-crl.crontab (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/fetch-crl/fetch-crl.spec diff -u packages/fetch-crl/fetch-crl.spec:1.6 packages/fetch-crl/fetch-crl.spec:1.7 --- packages/fetch-crl/fetch-crl.spec:1.6 Sun Jan 8 23:49:30 2012 +++ packages/fetch-crl/fetch-crl.spec Sun Jan 8 23:54:05 2012 @@ -1,6 +1,4 @@ # $Revision$, $Date$ -# TODO -# - pldize initscript %include /usr/lib/rpm/macros.perl Summary: Downloads Certificate Revocation Lists Name: fetch-crl @@ -11,11 +9,10 @@ URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3 Source0: http://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz # Source0-md5: 0c255931d05d46ed444d76438df29dd5 +Source1: %{name}.crontab BuildRequires: rpm-perlprov >= 4.1-13 -BuildRequires: rpmbuild(macros) >= 1.228 -Requires(post,preun): /sbin/chkconfig +Requires: crondaemon Requires: openssl -Requires: rc-scripts Obsoletes: fetch-crl3 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,28 +34,14 @@ ETC=$RPM_BUILD_ROOT%{_sysconfdir} \ CACHE=$RPM_BUILD_ROOT%{_var}/cache -install -p fetch-crl-cron.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-cron -install -p fetch-crl-boot.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-boot -cp -p fetch-crl-cron.cron $RPM_BUILD_ROOT/etc/cron.d/%{name} +cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name} # Remove some files that have been duplicated as docs. -rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT -%post -/sbin/chkconfig --add %{name}-cron -/sbin/chkconfig --add %{name}-boot - -%preun -if [ $1 = 0 ]; then - %service %{name}-cron stop - %service %{name}-boot stop - /sbin/chkconfig --del %{name}-cron - /sbin/chkconfig --del %{name}-boot -fi - %files %defattr(644,root,root,755) %doc CHANGES NOTICE README fetch-crl.cnf.example @@ -66,8 +49,6 @@ %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} %attr(755,root,root) %{_sbindir}/%{name} -%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-boot -%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-cron %{_mandir}/man8/%{name}.8* %dir %{_var}/cache/%{name} @@ -77,6 +58,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.7 2012/01/08 22:54:05 glen +- use plain crontab, if want to disable cron, just disable the cron + Revision 1.6 2012/01/08 22:49:30 glen - rc-script deps ================================================================ Index: packages/fetch-crl/fetch-crl.crontab diff -u /dev/null packages/fetch-crl/fetch-crl.crontab:1.1 --- /dev/null Sun Jan 8 23:54:10 2012 +++ packages/fetch-crl/fetch-crl.crontab Sun Jan 8 23:54:05 2012 @@ -0,0 +1,5 @@ +# Cron job running by default every 6 hours, at 45 minutes +/- 3 minutes +MAILTO=root + +42 */6 * * * root /usr/sbin/fetch-crl -q -r 360 + ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fetch-crl/fetch-crl.spec?r1=1.6&r2=1.7&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
