3 %include /usr/lib/rpm/macros.perl
4 Summary: Downloads Certificate Revocation Lists
9 Group: Applications/System
10 URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3
11 Source0: http://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz
12 # Source0-md5: d15773dd28110214f7d5302f073e97c1
13 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This tool and associated cron entry ensure that Certificate Revocation
21 Lists (CRLs) are periodically retrieved from the web sites of the
22 respective Certification Authorities. It assumes that the installed CA
23 files follow the hash.crl_url convention.
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}}
32 PREFIX=$RPM_BUILD_ROOT%{_usr} \
33 ETC=$RPM_BUILD_ROOT%{_sysconfdir} \
34 CACHE=$RPM_BUILD_ROOT%{_var}/cache
36 install -p fetch-crl-cron.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-cron
37 install -p fetch-crl-boot.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-boot
38 cp -p fetch-crl-cron.cron $RPM_BUILD_ROOT/etc/cron.d/%{name}
40 # Remove some files that have been duplicated as docs.
41 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
44 rm -rf $RPM_BUILD_ROOT
47 /sbin/chkconfig --add %{name}-cron
48 /sbin/chkconfig --add %{name}-boot
52 %service %{name}-cron stop
53 %service %{name}-boot stop
54 /sbin/chkconfig --del %{name}-cron
55 /sbin/chkconfig --del %{name}-boot
59 %defattr(644,root,root,755)
60 %doc CHANGES NOTICE README fetch-crl.cnf.example
61 %dir %{_sysconfdir}/%{name}.d
62 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
63 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
64 %attr(755,root,root) %{_sbindir}/%{name}
65 %attr(754,root,root) /etc/rc.d/init.d/fetch-crl-boot
66 %attr(754,root,root) /etc/rc.d/init.d/fetch-crl-cron
67 %{_mandir}/man8/%{name}.8*
68 %dir %{_var}/cache/%{name}