Browse Source

openssl098: upgrade to 0.9.8zh

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 1 year ago
parent
commit
480f411eb9
Signed by: steven GPG Key ID: 408EEB508ED0CD4D
  1. 61
      openssl098/PKGBUILD

61
openssl098/PKGBUILD

@ -1,12 +1,13 @@
# Maintainer: trya <tryagainprod@gmail.com>
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: trya <tryagainprod@gmail.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
_pkgbasename=openssl
pkgname=openssl098
_ver=0.9.8y
_ver=0.9.8zh
# use a pacman compatible version scheme
pkgver=0.9.8.y
pkgrel=1
pkgver=${_ver/[a-z]*/.${_ver//[0-9.]/}}
pkgrel=2
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (0.9.8 branch)'
arch=('i686' 'x86_64')
url='https://www.openssl.org'
@ -17,32 +18,48 @@ optdepends=('ca-certificates')
provides=('openssl-compatibility')
conflicts=('openssl-compatibility')
options=(!makeflags)
source=("https://www.openssl.org/source/${_pkgbasename}-${_ver}.tar.gz"
validpgpkeys=('7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C' # Richard Levitte <richard@levitte.org>
'8657ABB260F056B1E5190839D9C4D26D0E604491' # Matt Caswell <matt@openssl.org>
)
source=("https://www.openssl.org/source/old/0.9.x/${_pkgbasename}-${_ver}.tar.gz"{,.asc}
'no-rpath.patch'
'ca-dir.patch')
md5sums=('47c7fb37f78c970f1d30aa2f9e9e26d8'
'dc78d3d06baffc16217519242ce92478'
'3bf51be3a1bbd262be46dc619f92aa90')
sha256sums=('f1d9f3ed1b85a82ecf80d0e2d389e1fda3fca9a4dba0bf07adbf231e1a5e2fd6'
'SKIP'
'754d6107a306311e15a1db6a1cc031b81691c8b9865e8809ac60ca6f184c957c'
'9e8126f3a748f4c1d6fe34d4436de72b16a40e97a6d18234d2e88caa179d50c4')
prepare() {
cd "${srcdir}/${_pkgbasename}-${_ver}"
# remove rpath: http://bugs.archlinux.org/task/14367
patch -p0 -i "${srcdir}/no-rpath.patch"
# set ca dir to /etc/ssl by default
patch -p0 -i "${srcdir}/ca-dir.patch"
sed -i '/^push(@INC/s|)|,".")|' crypto/des/asm/des-586.pl
}
build() {
cd "$srcdir/$_pkgbasename-$_ver"
cd "${srcdir}/${_pkgbasename}-${_ver}"
# remove rpath: http://bugs.archlinux.org/task/14367
patch -p0 -i "$srcdir/no-rpath.patch"
# set ca dir to /etc/ssl by default
patch -p0 -i "$srcdir/ca-dir.patch"
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared zlib enable-md2 -Wa,--noexecstack
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared zlib enable-md2 -Wa,--noexecstack
make
# fix cross compilation (and possibly more...)
sed -i '/^CFLAG=/s/$/ $(CFLAGS)/' Makefile
make
}
package() {
cd "$srcdir/$_pkgbasename-$_ver"
cd "${srcdir}/${_pkgbasename}-${_ver}"
install -D -m0755 libssl.so.0.9.8 "${pkgdir}/usr/lib/libssl.so.0.9.8"
install -D -m0755 libcrypto.so.0.9.8 "${pkgdir}/usr/lib/libcrypto.so.0.9.8"
install -D -m0755 apps/openssl "${pkgdir}/usr/bin/openssl098"
install -Dm755 libssl.so.0.9.8 "$pkgdir/usr/lib/libssl.so.0.9.8"
install -Dm755 libcrypto.so.0.9.8 "$pkgdir/usr/lib/libcrypto.so.0.9.8"
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
mkdir -p "${pkgdir}/usr/share/licenses"
ln -s ${_pkgbasename} "${pkgdir}/usr/share/licenses/${pkgname}"
}
Loading…
Cancel
Save