File: fetch-crl.spec

package info (click to toggle)
fetch-crl 3.0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 256 kB
  • sloc: perl: 1,991; sh: 193; makefile: 131
file content (84 lines) | stat: -rw-r--r-- 2,776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%if %{?rhel}%{!?rhel:0} <= 5
  %global _initddir  %{_initrddir}
%endif

Name: fetch-crl
Version: 3.0.19
Release: 1%{?dist}
Summary: Certificate Revocation List retrieval tool

Group: Applications/System
License: Apache 2.0
URL: https://dist.eugridpma.info/distribution/util/fetch-crl3
Source: http://www.eugridpma.org/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz
Vendor: Nikhef
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

Requires: openssl, perl, perl(LWP), perl(POSIX), perl(File::Temp), perl(Sys::Syslog), perl(strict) perl(vars)
Autoreq: 0 

Prefix: /usr

Requires(post): chkconfig
Requires(preun): chkconfig

%description
The fetch-crl utility will retrieve certificate revocation lists (CRLs) for
a set of installed trust anchors. Using meta-data with URLs and CAs it will
provision CRLs for use by OpenSSL or NSS in their native format (.rX files
or cert8.db files). It supports parallel downloads, and has failover and
caching capabilities to deal with network interruptions.
This associated cron entries can ensure that CRLs are periodically retrieved 
from the web sites of the respective Certification Authorities (CAs) or other 
repositories.
CA meta-data should be provided in crl_url files or in IGTF-style info files.

%prep

%setup

%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} CACHE=$RPM_BUILD_ROOT%{_localstatedir}/cache
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}.cron

%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}/fetch-crl
%{_sbindir}/clean-crl
%{_initddir}/%{name}-cron
%{_initddir}/%{name}-boot
%{_localstatedir}/cache/fetch-crl
%doc /usr/share/man/man8
%doc %{_defaultdocdir}/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/fetch-crl.conf
%config(noreplace) %{_sysconfdir}/cron.d/fetch-crl.cron


%changelog
* Fri Jun 11 2010 David Groep <davidg@nikhef.nl>
Initial build of completely rewritten version 3.0