diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-03 10:33:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-03-03 10:34:38 +0000 |
commit | 89e885da4b9186286c75bd9e0e916fce09dbe723 (patch) | |
tree | cab9dcdc2178767494baaa42507f950d74e51f1b /testing | |
parent | cafc3fba94f3679ed78b6b0ab80aedf6355fa4fb (diff) | |
download | aports-89e885da4b9186286c75bd9e0e916fce09dbe723.tar.bz2 aports-89e885da4b9186286c75bd9e0e916fce09dbe723.tar.xz |
testing/libressl: split libcrypto, libssl and libtls
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libressl/APKBUILD | 21 |
1 files changed, 18 insertions, 3 deletions
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 <systmkor@gmail.com> 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" |