From 89e885da4b9186286c75bd9e0e916fce09dbe723 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 3 Mar 2016 10:33:15 +0000 Subject: testing/libressl: split libcrypto, libssl and libtls --- testing/libressl/APKBUILD | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'testing/libressl') diff --git a/testing/libressl/APKBUILD b/testing/libressl/APKBUILD index ada57f70ac..404f2a66b9 100644 --- a/testing/libressl/APKBUILD +++ b/testing/libressl/APKBUILD @@ -3,17 +3,18 @@ # Maintainer: Orion pkgname=libressl pkgver=2.2.6 -pkgrel=0 +pkgrel=1 pkgdesc="version of the TLS/crypto stack forked from OpenSSL" url="http://www.libressl.org/" arch="all" license="custom" -depends="" +depends="$pkgname-libcrypto=$pkgver-r$pkgrel $pkgname-libssl=$pkgver-r$pkgrel" depends_dev="" makedepends="linux-headers" install="" replaces="openssl" -subpackages="$pkgname-libs $pkgname-dev $pkgname-doc" +subpackages="$pkgname-libcrypto $pkgname-libssl $pkgname-libtls + $pkgname-dev $pkgname-doc" source="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${pkgver}.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver @@ -51,6 +52,20 @@ dev() { replaces="openssl-dev" } +_libs() { + pkgdesc="libressl $1 library" + depends= + mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib + for i in "$pkgdir"/usr/lib/$1.so.*; do + mv $i "$subpkgdir"/lib/ + ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/} + done +} + +libcrypto() { _libs libcrypto; } +libssl() { _libs libssl; } +libtls() { _libs libtls; } + md5sums="d91d57161bcf40b22f78190224c4f028 libressl-2.2.6.tar.gz" sha256sums="1ee19994cffd047d40f63ba149115dba18a681b0cc923beec301bf424b58d64f libressl-2.2.6.tar.gz" sha512sums="41e29431ad9e8b18e2dbc30fe9df1d7be3ca372d5d7757b5b01f8904515bafd5333446957fbc9874f64f384dae56cf6bf29d6808a7c0df1836b55ea64804a4bf libressl-2.2.6.tar.gz" -- cgit v1.2.3