]> git.pld-linux.org Git - packages/fetch-crl.git/blame - fetch-crl.spec
- rc-script deps
[packages/fetch-crl.git] / fetch-crl.spec
CommitLineData
5b41b6a6
ER
1# TODO
2# - pldize initscript
3%include /usr/lib/rpm/macros.perl
4Summary: Downloads Certificate Revocation Lists
5Name: fetch-crl
ec5e8cab 6Version: 3.0.8
5b41b6a6
ER
7Release: 1
8License: ASL 2.0
9Group: Applications/System
10URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3
3910ea67 11Source0: http://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz
ec5e8cab 12# Source0-md5: 0c255931d05d46ed444d76438df29dd5
5b41b6a6 13BuildRequires: rpm-perlprov >= 4.1-13
157439f3
ER
14BuildRequires: rpmbuild(macros) >= 1.228
15Requires(post,preun): /sbin/chkconfig
5b41b6a6 16Requires: openssl
157439f3 17Requires: rc-scripts
5b41b6a6 18Obsoletes: fetch-crl3
5b41b6a6
ER
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This tool and associated cron entry ensure that Certificate Revocation
24Lists (CRLs) are periodically retrieved from the web sites of the
25respective Certification Authorities. It assumes that the installed CA
26files follow the hash.crl_url convention.
27
28%prep
29%setup -q
5b41b6a6
ER
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}}
34%{__make} install \
35 PREFIX=$RPM_BUILD_ROOT%{_usr} \
36 ETC=$RPM_BUILD_ROOT%{_sysconfdir} \
37 CACHE=$RPM_BUILD_ROOT%{_var}/cache
38
39install -p fetch-crl-cron.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-cron
40install -p fetch-crl-boot.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-boot
41cp -p fetch-crl-cron.cron $RPM_BUILD_ROOT/etc/cron.d/%{name}
42
43# Remove some files that have been duplicated as docs.
44rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%post
50/sbin/chkconfig --add %{name}-cron
51/sbin/chkconfig --add %{name}-boot
52
53%preun
54if [ $1 = 0 ]; then
55 %service %{name}-cron stop
56 %service %{name}-boot stop
57 /sbin/chkconfig --del %{name}-cron
58 /sbin/chkconfig --del %{name}-boot
59fi
60
61%files
62%defattr(644,root,root,755)
63%doc CHANGES NOTICE README fetch-crl.cnf.example
64%dir %{_sysconfdir}/%{name}.d
65%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
66%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
67%attr(755,root,root) %{_sbindir}/%{name}
68%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-boot
69%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-cron
70%{_mandir}/man8/%{name}.8*
71%dir %{_var}/cache/%{name}
This page took 0.109466 seconds and 4 git commands to generate.