From c6bb896317bd978fbd7384e634b29bdf7574f8de Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 Oct 2015 07:53:35 +0100 Subject: [PATCH] libressl: use CA file from ca-certificates; get rid of -openssl subpkgs. 1- We don't know how uptodate is the cert.pem supplied by LibreSSL. So that we've decided to use the one generated by `ca-certificates` instead. 2- There's no need to have an extra subpkg just for the openssl(1) utility and its configuration files, move all files to the main pkg. --- srcpkgs/libressl-openssl | 1 - srcpkgs/libressl/template | 22 ++++++++-------------- 2 files changed, 8 insertions(+), 15 deletions(-) delete mode 120000 srcpkgs/libressl-openssl diff --git a/srcpkgs/libressl-openssl b/srcpkgs/libressl-openssl deleted file mode 120000 index cab5b6fcb5..0000000000 --- a/srcpkgs/libressl-openssl +++ /dev/null @@ -1 +0,0 @@ -libressl \ No newline at end of file diff --git a/srcpkgs/libressl/template b/srcpkgs/libressl/template index 240d5e016c..252a80973e 100644 --- a/srcpkgs/libressl/template +++ b/srcpkgs/libressl/template @@ -1,7 +1,7 @@ # Template file for 'libressl' pkgname=libressl version=2.2.4 -revision=1 +revision=2 bootstrap=yes build_style=gnu-configure short_desc="Version of the TLS/crypto stack forked from OpenSSL" @@ -11,8 +11,9 @@ homepage="http://www.libressl.org/" distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz" checksum=6b409859be8654afc3862549494e097017e64c8d167f12584383586306ef9a7e -# Compat pkg that depends on the real pkgs. -depends="libcrypto35-${version}_${revision} libssl35-${version}_${revision} libtls6-${version}_${revision}" +provides="openssl-${version}_${revision}" +replaces="openssl>=0" +conf_files="/etc/ssl/openssl.cnf /etc/ssl/x509v3.cnf" if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then # XXX disable SSP @@ -29,6 +30,10 @@ if [ "$CROSS_BUILD" ]; then fi post_install() { + # Use CA file from ca-certificates instead. + rm -f ${DESTDIR}/etc/ssl/cert.pem + ln -s certs.pem ${DESTDIR}/etc/ssl/cert.pem + vlicense COPYING find ${DESTDIR}/usr/share/man/man1 -type f ! -name openssl.1 -delete } @@ -63,14 +68,3 @@ libressl-devel_package() { vmove usr/share/man/man3 } } -libressl-openssl_package() { - short_desc+=" - utilities" - provides="openssl-${version}_${revision}" - replaces="openssl>=0" - conf_files="/etc/ssl/openssl.cnf /etc/ssl/cert.pem /etc/ssl/x509v3.cnf" - pkg_install() { - vmove etc - vmove usr/bin - vmove usr/share/man/man1 - } -}