use trust extract in post script to generate java cacerts bundle; obsolete ca-certificates-java [release 20150426-2mamba;Wed Jan 20 2016]
This commit is contained in:
parent
8c8d1a5be7
commit
1c4e338cfa
@ -1,6 +1,6 @@
|
|||||||
Name: ca-certificates
|
Name: ca-certificates
|
||||||
Version: 20150426
|
Version: 20150426
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: The Mozilla CA root certificate bundle
|
Summary: The Mozilla CA root certificate bundle
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -21,6 +21,9 @@ BuildRequires: rcs
|
|||||||
#BuildRequires: java-openjdk
|
#BuildRequires: java-openjdk
|
||||||
#%endif
|
#%endif
|
||||||
Requires(post): openssl
|
Requires(post): openssl
|
||||||
|
Provides: ca-certificates-java
|
||||||
|
Obsoletes: ca-certificates-java
|
||||||
|
Requires(post): p11-kit
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -39,7 +42,7 @@ mkdir %{name} %{name}/certs %{name}/java
|
|||||||
install -d -m755 %{buildroot}/{%{_sysconfdir}/ca-certificates/update.d,%{_sbindir},%{_datadir}/ca-certificates,%{_sysconfdir}/ssl/certs}
|
install -d -m755 %{buildroot}/{%{_sysconfdir}/ca-certificates/update.d,%{_sbindir},%{_datadir}/ca-certificates,%{_sysconfdir}/ssl/certs}
|
||||||
%makeinstall
|
%makeinstall
|
||||||
install -D -m644 sbin/update-ca-certificates.8 %{buildroot}%{_mandir}/man8/update-ca-certificates.8
|
install -D -m644 sbin/update-ca-certificates.8 %{buildroot}%{_mandir}/man8/update-ca-certificates.8
|
||||||
|
install -d -m755 %{buildroot}%{_sysconfdir}/ssl/certs/java
|
||||||
(
|
(
|
||||||
echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}"
|
echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}"
|
||||||
echo "# see update-ca-certificates man page"
|
echo "# see update-ca-certificates man page"
|
||||||
@ -52,8 +55,13 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pki/tls/certs
|
|||||||
ln -s ../../../ssl/certs/ca-certificates.crt %{buildroot}%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
ln -s ../../../ssl/certs/ca-certificates.crt %{buildroot}%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||||
ln -s certs/ca-bundle.crt %{buildroot}%{_sysconfdir}/pki/tls/cert.pem
|
ln -s certs/ca-bundle.crt %{buildroot}%{_sysconfdir}/pki/tls/cert.pem
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{_sysconfdir}/pki/java/
|
||||||
|
ln -s ../../ssl/certs/java/cacerts %{buildroot}%{_sysconfdir}/pki/java/cacerts
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
|
trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
|
||||||
|
--purpose server-auth %{_sysconfdir}/ssl/certs/java/cacerts
|
||||||
%{_sbindir}/update-ca-certificates --fresh >/dev/null 2>&1
|
%{_sbindir}/update-ca-certificates --fresh >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
@ -70,8 +78,11 @@ fi
|
|||||||
%{_sysconfdir}/pki/tls/cert.pem
|
%{_sysconfdir}/pki/tls/cert.pem
|
||||||
%dir %{_sysconfdir}/pki/tls/certs
|
%dir %{_sysconfdir}/pki/tls/certs
|
||||||
%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||||
|
%dir %{_sysconfdir}/pki/java
|
||||||
|
%{_sysconfdir}/pki/java/cacerts
|
||||||
%dir %{_sysconfdir}/ssl
|
%dir %{_sysconfdir}/ssl
|
||||||
%{_sysconfdir}/ssl/certs
|
%{_sysconfdir}/ssl/certs
|
||||||
|
%dir %{_sysconfdir}/ssl/certs/java
|
||||||
%{_sbindir}/update-ca-certificates
|
%{_sbindir}/update-ca-certificates
|
||||||
%dir %{_datadir}/ca-certificates
|
%dir %{_datadir}/ca-certificates
|
||||||
#%dir %{_datadir}/ca-certificates/cacert.org
|
#%dir %{_datadir}/ca-certificates/cacert.org
|
||||||
@ -84,6 +95,9 @@ fi
|
|||||||
%{_mandir}/man8/update-ca-certificates.8*
|
%{_mandir}/man8/update-ca-certificates.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20150426-2mamba
|
||||||
|
- use trust extract in post script to generate java cacerts bundle; obsolete ca-certificates-java
|
||||||
|
|
||||||
* Mon Jun 08 2015 Automatic Build System <autodist@mambasoft.it> 20150426-1mamba
|
* Mon Jun 08 2015 Automatic Build System <autodist@mambasoft.it> 20150426-1mamba
|
||||||
- automatic update by autodist
|
- automatic update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user