Add automatic configuration on install
Signed-off-by: Simo Sorce <simo@redhat.com>
This commit is contained in:
parent
37ec1de302
commit
e1965f5e4b
10
pkcs11-provider.conf
Normal file
10
pkcs11-provider.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[provider_sect]
|
||||||
|
pkcs11 = pkcs11_sect
|
||||||
|
|
||||||
|
[pkcs11_sect]
|
||||||
|
activate = 1
|
||||||
|
## Some applications may require early loading to work properly
|
||||||
|
## however this setting should not be enabled by default because
|
||||||
|
## it will cause every application loading openssl to initialize
|
||||||
|
## the token. If needed uncomment the following:
|
||||||
|
#pkcs11-module-load-behavior = early
|
@ -12,6 +12,7 @@ Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|||||||
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
|
Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
|
||||||
Source2: https://people.redhat.com/~ssorce/simo_redhat.asc
|
Source2: https://people.redhat.com/~ssorce/simo_redhat.asc
|
||||||
%endif
|
%endif
|
||||||
|
Source3: pkcs11-provider.conf
|
||||||
|
|
||||||
BuildRequires: openssl-devel >= 3.0.7
|
BuildRequires: openssl-devel >= 3.0.7
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -58,6 +59,10 @@ compatible to previous versions as well.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/openssl.d
|
||||||
|
install -m644 '%{SOURCE3}' \
|
||||||
|
$RPM_BUILD_ROOT/%{_sysconfdir}/pki/tls/openssl.d/pkcs11-provider.conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -70,7 +75,7 @@ compatible to previous versions as well.
|
|||||||
%{_mandir}/man7/provider-pkcs11.*
|
%{_mandir}/man7/provider-pkcs11.*
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/ossl-modules/pkcs11.so
|
%{_libdir}/ossl-modules/pkcs11.so
|
||||||
|
%config(noreplace) %{_sysconfdir}/pki/tls/openssl.d/pkcs11-provider.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user