]> git.pld-linux.org Git - packages/fetch-crl.git/commitdiff
- initial, based on fc spec (the one in sources as well)
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 10 Jun 2011 20:38:53 +0000 (20:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetch-crl.spec -> 1.1

fetch-crl.spec [new file with mode: 0644]

diff --git a/fetch-crl.spec b/fetch-crl.spec
new file mode 100644 (file)
index 0000000..ac40d1e
--- /dev/null
@@ -0,0 +1,86 @@
+# TODO
+# - pldize initscript
+%include       /usr/lib/rpm/macros.perl
+Summary:       Downloads Certificate Revocation Lists
+Name:          fetch-crl
+Version:       3.0.6
+Release:       1
+License:       ASL 2.0
+Group:         Applications/System
+URL:           http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3
+Source0:       https://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz
+# Source0-md5: b58f10fb76bab3a34fd4d80541956ef3
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      openssl
+Obsoletes:     fetch-crl3
+# These requires are only added since file is currently broken so they don't get autogenerated.
+# https://bugzilla.redhat.com/show_bug.cgi?id=699548
+# (file(1) considers file 'data' as it sees ^A inside script)
+Requires:      /usr/bin/perl
+Requires:      perl(File::Basename)
+Requires:      perl(File::Temp)
+Requires:      perl(Getopt::Long)
+Requires:      perl(IO::Select)
+Requires:      perl(IPC::Open3)
+Requires:      perl(LWP)
+Requires:      perl(POSIX)
+Requires:      perl(Sys::Syslog)
+Requires:      perl(Time::Local)
+Requires:      perl(integer)
+Requires:      perl(strict)
+Requires:      perl(vars)
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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
+# use this to figure out deps
+#sed -i -e 's,\ 1,BLAAA,' %{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}}
+%{__make} install \
+       PREFIX=$RPM_BUILD_ROOT%{_usr} \
+       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}
+
+# Remove some files that have been duplicated as docs.
+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
+%dir %{_sysconfdir}/%{name}.d
+%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}
This page took 0.04794 seconds and 4 git commands to generate.