%if %{?rhel}%{!?rhel:0} <= 5 %global _initddir %{_initrddir} %endif Name: fetch-crl Version: 2.8.3 Release: 2%{?dist} Summary: Downloads Certificate Revocation Lists Group: Applications/System License: EU Datagrid URL: https://dist.eugridpma.info/distribution/util/%{name} Source: https://dist.eugridpma.info/distribution/util/%{name}/%{name}-%{version}.tar.gz # basic shell syntax bug. #https://bugzilla.redhat.com/show_bug.cgi?id=579488 Patch0: fetch-crl-syntax-randomwait.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: openssl Requires: wget Requires(post): chkconfig Requires(preun): chkconfig %description This tool and associated cron entry ensure that Certificate Revocation Lists (CRLs) are periodically retrieved from the web sites of the respective Certification Authorities. It assumes that the installed CA files follow the hash.crl_url convention. %prep %setup -q %patch0 -p1 %build %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT make install PREFIX=$RPM_BUILD_ROOT%{_usr} ETC=$RPM_BUILD_ROOT%{_sysconfdir} mkdir -p $RPM_BUILD_ROOT%{_initddir} install -p -m 755 $RPM_BUILD_ROOT%{_usr}/share/doc/%{name}-%{version}/%{name}-cron.init $RPM_BUILD_ROOT%{_initddir}/%{name}-cron install -p -m 755 $RPM_BUILD_ROOT%{_usr}/share/doc/%{name}-%{version}/%{name}-boot.init $RPM_BUILD_ROOT%{_initddir}/%{name}-boot mkdir $RPM_BUILD_ROOT%{_sysconfdir}/cron.d install -p -m 644 $RPM_BUILD_ROOT%{_usr}/share/doc/%{name}-%{version}/%{name}-cron.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/%{name} # Remove some files that have been duplicated as docs. rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/%{name}-boot.init rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/%{name}-cron.cron rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/%{name}-cron.init rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/%{name}.cron rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/%{name}.sysconfig %post # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add %{name}-cron /sbin/chkconfig --add %{name}-boot %preun if [ $1 = 0 ] ; then /sbin/service %{name}-cron stop >/dev/null 2>&1 /sbin/service %{name}-boot stop >/dev/null 2>&1 /sbin/chkconfig --del %{name}-cron /sbin/chkconfig --del %{name}-boot fi %files %defattr(-,root,root,-) %{_sbindir}/%{name} %{_initddir}/%{name}-cron %{_initddir}/%{name}-boot %doc %{_mandir}/man8/%{name}.8.gz %doc %{_defaultdocdir}/%{name}-%{version} %config(noreplace) %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/cron.d/%{name} %changelog * Sun Apr 5 2010 Steve Traylen - 2.8.3-2 - Add patch fetch-crl-syntax-randomwait https://bugzilla.redhat.com/show_bug.cgi?id=579488 * Sun Mar 28 2010 Steve Traylen - 2.8.3-1 - New upstream 2.8.3 - Removed edg-fetch-crl-2.8.2-getopts.patch and fetch-crl-2.6.6-selinux.patch since both now present in 2.8.3 * Sat Mar 27 2010 Steve Traylen - 2.8.2-2 - Add edg-fetch-crl-2.8.2-getopts.patch for rhbz#577387, Jason Smith. - Add fetch-crl-2.6.6-selinux.patch for rhbz#577403 * Thu Mar 4 2010 Steve Traylen - 2.8.2-1 - New upstream source. 2.8.2 - Remove randomwait.patch since now incoperated upstream. * Mon Feb 22 2010 Steve Traylen - 2.8.1-4 - Correct URL again. * Mon Feb 22 2010 Steve Traylen - 2.8.1-3 - Use consistant name macros throughout. - Rename /etc/cron.d/fetch-crl.cron to /etc/cron.d/fetch-crl to be compliant with some cron implentations. - Remove dupicate files created in doc directory. * Thu Feb 11 2010 Steve Traylen - 2.8.1-2 - Add patch to introduce --randomwait option. - Make setup stage quiet. - Change license string from EU DataGrid to EU Datagrid - First version for Fedora/EPEL inclusion. * Tue Sep 22 2009 David Groep Version 2.8.1 is more paranoid about the installed fetch-crl to catch OS faults * Tue Sep 22 2009 David Groep Version 2.8.0 with new config file location, start-up scripts, and packaging * Sun Jan 25 2009 David Groep Version 2.7.0 with new policies, download resiliancy, PATH support, etc * Thu Oct 27 2005 David Groep Wget https downloads recognise our own trusted CA directory (by RomainW) * Mon Feb 28 2005 David Groep Made into a relocatable RPM without the cronjob pre-installed * Mon Dec 6 2004 David Groep Copied to EUGridPMA site * Wed Jan 15 2003 Steve Traylen Initial Build