fixed openssl pkgbuild

This commit is contained in:
Kevin Mihelich 2012-01-06 22:10:59 -05:00
parent 49d78b4571
commit 14ab7287fd

View file

@ -1,8 +1,8 @@
# $Id: PKGBUILD 137333 2011-09-07 08:58:52Z pierre $
# $Id$
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - run ./config instead of ./Configure to auto-detect ARM properly, no 'openssltarget' variable
# - use linux-armv4 target for our architectures
plugrel=1
@ -20,10 +20,12 @@ optdepends=('ca-certificates')
options=('!makeflags')
backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
"https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
'fix-manpages.patch'
'no-rpath.patch'
'ca-dir.patch')
md5sums=('e358705fb4a8827b5e9224a73f442025'
'fc1673f53946f1e7b408465f272484d8'
'5bbc0655bda2af95bc8eb568963ce8ba'
'dc78d3d06baffc16217519242ce92478'
'3bf51be3a1bbd262be46dc619f92aa90')
@ -34,6 +36,14 @@ PKGEXT='.pkg.tar.gz'
build() {
cd $srcdir/$pkgname-$_ver
if [ "${CARCH}" == 'x86_64' ]; then
openssltarget='linux-x86_64'
elif [ "${CARCH}" == 'i686' ]; then
openssltarget='linux-elf'
elif [ "${CARCH}" == 'arm' -o "${CARCH}" == 'armv7h' ]; then
openssltarget='linux-armv4'
fi
# avoid conflicts with other man pages
# see http://www.linuxfromscratch.org/patches/downloads/openssl/
patch -p1 -i $srcdir/fix-manpages.patch
@ -42,9 +52,10 @@ build() {
# 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 \
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared zlib enable-md2 \
-Wa,--noexecstack "${CFLAGS}" "${LDFLAGS}"
"${openssltarget}" \
-Wa,--noexecstack "${CFLAGS}"
make depend
make