aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssl/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-14 17:49:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-14 17:50:22 +0000
commit009f3f560af7ae4dc072d5763077b985ad8a6fbd (patch)
tree8bb2873470ffe9657f2a5db4dfc422d24cf47880 /main/openssl/APKBUILD
parentb78fcdb157be6bb304bc75d2be6e084b290e670d (diff)
downloadaports-009f3f560af7ae4dc072d5763077b985ad8a6fbd.tar.bz2
aports-009f3f560af7ae4dc072d5763077b985ad8a6fbd.tar.xz
main/openssl: upgrade to 1.0.0
and introduce libssl1.0 and libcrypto1.0 packages
Diffstat (limited to 'main/openssl/APKBUILD')
-rw-r--r--main/openssl/APKBUILD46
1 files changed, 33 insertions, 13 deletions
diff --git a/main/openssl/APKBUILD b/main/openssl/APKBUILD
index 0aeeca9d23..1bab1385ff 100644
--- a/main/openssl/APKBUILD
+++ b/main/openssl/APKBUILD
@@ -1,21 +1,21 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openssl
-pkgver=0.9.8n
-pkgrel=1
+pkgver=1.0.0
+pkgrel=0
pkgdesc="Toolkit for SSL v2/v3 and TLS v1"
-url=http://openssl.org
+url="http://openssl.org"
depends=
-makedepends="perl"
+makedepends="perl zlib-dev"
license="openssl"
-subpackages="$pkgname-dev $pkgname-doc libcrypto"
+subpackages="$pkgname-dev $pkgname-doc libcrypto1.0:libcrypto libssl1.0:libssl"
source="http://www.openssl.org/source/${pkgname}-${pkgver}.tar.gz
- http://www.linuxfromscratch.org/patches/downloads/openssl/openssl-0.9.8g-fix_manpages-1.patch
+ fix-manpages.patch
openssl-bb-basename.patch
- openssl-0.9.8k-padlock-sha.patch
"
+# openssl-0.9.8k-padlock-sha.patch
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
@@ -27,7 +27,11 @@ prepare() {
build() {
cd "$_builddir"
- ./config --prefix=/usr --openssldir=/etc/ssl shared enable-montasm
+ ./config --prefix=/usr \
+ --openssldir=/etc/ssl \
+ shared zlib enable-montasm enable-md2 \
+ -Wa,--noexecstack \
+ || return 1
make -j1 || return 1
}
@@ -37,9 +41,16 @@ package() {
make -j1 INSTALL_PREFIX="$pkgdir" MANDIR=/usr/share/man install
}
+dev() {
+ replaces="libcrypto openssl"
+ default_dev
+ # move symlinks
+ mv "$pkgdir"/usr/lib/*.so "$subpkgdir"/usr/lib/
+}
+
libcrypto() {
pkgdesc="Crypto library from openssl"
- replaces="openssl"
+ replaces="openssl libcrypto"
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
for i in "$pkgdir"/usr/lib/libcrypto*; do
mv $i "$subpkgdir"/lib/
@@ -48,7 +59,16 @@ libcrypto() {
mv "$pkgdir"/usr/lib/engines "$subpkgdir"/usr/lib/
}
-md5sums="076d8efc3ed93646bd01f04e23c07066 openssl-0.9.8n.tar.gz
-04a6a88c2ee4badd4f8649792b73eaf3 openssl-0.9.8g-fix_manpages-1.patch
-c6a9857a5dbd30cead0404aa7dd73977 openssl-bb-basename.patch
-86b7f1bf50e1f3ba407ec62001a51a0d openssl-0.9.8k-padlock-sha.patch"
+libssl() {
+ pkgdesc="SSL shared libraries"
+ replaces="openssl"
+ mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
+ for i in "$pkgdir"/usr/lib/libssl*; do
+ mv $i "$subpkgdir"/lib/
+ ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/}
+ done
+}
+
+md5sums="89eaa86e25b2845f920ec00ae4c864ed openssl-1.0.0.tar.gz
+115c481cd59b3dba631364e8fb1778f5 fix-manpages.patch
+c6a9857a5dbd30cead0404aa7dd73977 openssl-bb-basename.patch"