Add coolkey and opensc modules to pki database during %install.

This commit is contained in:
Peter Jones 2012-10-19 11:26:15 -04:00
parent b58922c480
commit b5d702b29d

View File

@ -7,7 +7,8 @@ License: GPLv2
URL: https://github.com/vathpela/pesign URL: https://github.com/vathpela/pesign
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: git gnu-efi nspr nspr-devel nss nss-devel nss-util popt-devel 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 Requires(pre): shadow-utils
ExclusiveArch: i686 x86_64 ia64 ExclusiveArch: i686 x86_64 ia64
@ -86,6 +87,11 @@ rm -rf %{buildroot}/boot %{buildroot}/usr/include
rm -rf %{buildroot}%{_libdir}/libdpe* rm -rf %{buildroot}%{_libdir}/libdpe*
mv rh-test-certs/etc/pki/pesign/* %{buildroot}/etc/pki/pesign/ 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 %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -122,6 +128,9 @@ exit 0
%ghost %attr(0660, -, -) %{_localstatedir}/run/%{name}/pesign.pid %ghost %attr(0660, -, -) %{_localstatedir}/run/%{name}/pesign.pid
%changelog %changelog
* Fri Oct 19 2012 Peter Jones <pjones@redhat.com>
- Add coolkey and opensc modules to pki database during %%install.
* Fri Oct 19 2012 Peter Jones <pjones@redhat.com> - 0.99-7 * Fri Oct 19 2012 Peter Jones <pjones@redhat.com> - 0.99-7
- setfacl u:kojibuilder:rw /var/run/pesign/socket - setfacl u:kojibuilder:rw /var/run/pesign/socket
- Fix command line checking in client - Fix command line checking in client