From b5d702b29d46f034905990152a40ab18dc2da8dc Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 19 Oct 2012 11:26:15 -0400 Subject: [PATCH] Add coolkey and opensc modules to pki database during %install. --- pesign.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pesign.spec b/pesign.spec index bff8f89..9445ee9 100644 --- a/pesign.spec +++ b/pesign.spec @@ -7,7 +7,8 @@ License: GPLv2 URL: https://github.com/vathpela/pesign BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: git gnu-efi nspr nspr-devel nss nss-devel nss-util popt-devel -Requires: nspr nss nss-util popt rpm +BuildRequires: coolkey opensc nss-tools +Requires: nspr nss nss-util popt rpm coolkey opensc Requires(pre): shadow-utils ExclusiveArch: i686 x86_64 ia64 @@ -86,6 +87,11 @@ rm -rf %{buildroot}/boot %{buildroot}/usr/include rm -rf %{buildroot}%{_libdir}/libdpe* mv rh-test-certs/etc/pki/pesign/* %{buildroot}/etc/pki/pesign/ +modutil -dbdir /etc/pki/pesign -add coolkey \ + -libfile %{_libdir}pkcs11/libcoolkeypk11.so +modutil -dbdir /etc/pki/pesign -add opensc \ + -libfile %{_libdir}/pkcs11/opensc-pkcs11.so + %clean rm -rf %{buildroot} @@ -122,6 +128,9 @@ exit 0 %ghost %attr(0660, -, -) %{_localstatedir}/run/%{name}/pesign.pid %changelog +* Fri Oct 19 2012 Peter Jones +- Add coolkey and opensc modules to pki database during %%install. + * Fri Oct 19 2012 Peter Jones - 0.99-7 - setfacl u:kojibuilder:rw /var/run/pesign/socket - Fix command line checking in client