aboutsummaryrefslogtreecommitdiffstats
path: root/core/openssl/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-13 19:24:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-14 06:10:48 +0000
commit7bc18be8dadd837a3d7ba79c6fcda7c070310af0 (patch)
treea3de538dd9b9cb1f31ed7f6d3e5a2bfbdbbdcc5f /core/openssl/APKBUILD
parentdd3d8d9d4ad3be8a0825d7950fa4418cb0fba821 (diff)
downloadaports-7bc18be8dadd837a3d7ba79c6fcda7c070310af0.tar.gz
aports-7bc18be8dadd837a3d7ba79c6fcda7c070310af0.tar.bz2
aports-7bc18be8dadd837a3d7ba79c6fcda7c070310af0.tar.xz
core/openssl: create symlinks to libcrypto in /usr/lib/
Otherwise will packages using pkg-config link statically to libcrypto.
Diffstat (limited to 'core/openssl/APKBUILD')
-rw-r--r--core/openssl/APKBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/openssl/APKBUILD b/core/openssl/APKBUILD
index b6f273aac6..46d1e064b4 100644
--- a/core/openssl/APKBUILD
+++ b/core/openssl/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openssl
pkgver=0.9.8k
-pkgrel=2
+pkgrel=3
pkgdesc="Toolkit for SSL v2/v3 and TLS v1"
url=http://openssl.org
depends=
@@ -33,7 +33,10 @@ build() {
libcrypto() {
pkgdesc="Crypto library from openssl"
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/libcrypto* "$subpkgdir"/lib/
+ for i in "$pkgdir"/usr/lib/libcrypto*; do
+ mv $i "$subpkgdir"/lib/
+ ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/}
+ done
mv "$pkgdir"/usr/lib/engines "$subpkgdir"/usr/lib/
}