aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-03-11 13:04:37 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-03-11 15:54:27 +0200
commitf78b44ebbbc514ac5ebc9f5dab4b8215abc6a1a6 (patch)
tree9281b5a59f32cb923b51a7d3c66929695291bedd /main
parent805d86ff46ba3c3c8ed557df1a752213c005db8a (diff)
downloadaports-f78b44ebbbc514ac5ebc9f5dab4b8215abc6a1a6.tar.bz2
aports-f78b44ebbbc514ac5ebc9f5dab4b8215abc6a1a6.tar.xz
main/openssl: build standalone c_rehash for libcrypto
Diffstat (limited to 'main')
-rw-r--r--main/openssl/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/main/openssl/APKBUILD b/main/openssl/APKBUILD
index a8ef108b7f..0b252bb332 100644
--- a/main/openssl/APKBUILD
+++ b/main/openssl/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=openssl
pkgver=1.0.2g
-pkgrel=2
+pkgrel=3
pkgdesc="Toolkit for SSL v2/v3 and TLS v1"
url="http://openssl.org"
depends=
@@ -77,25 +77,30 @@ build() {
|| return 1
make && make build-shared || return 1
+
+ # Build standalone version c_rehash app, so the huge openssl
+ # binary is not mandatory requirement of ca-certificates
+ $CC $CFLAGS -I . -I include -L . "$_builddir"/apps/c_rehash.c -o c_rehash -lcrypto || return 1
}
package() {
cd "$_builddir"
make INSTALL_PREFIX="$pkgdir" MANDIR=/usr/share/man MANSUFFIX=ssl install || return 1
- # c_rehash compat link
- ln -sf openssl "$pkgdir"/usr/bin/c_rehash
+ # c_rehash standalone app
+ install c_rehash "$pkgdir"/usr/bin/c_rehash || return 1
}
libcrypto() {
pkgdesc="Crypto library from openssl"
- mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
+ mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin
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/
+ mv "$pkgdir"/usr/lib/engines "$subpkgdir"/usr/lib/ || return 1
+ mv "$pkgdir"/usr/bin/c_rehash "$subpkgdir"/usr/bin/ || return 1
}
libssl() {