summaryrefslogtreecommitdiff
path: root/core/openssl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/openssl/PKGBUILD')
-rw-r--r--core/openssl/PKGBUILD30
1 files changed, 19 insertions, 11 deletions
diff --git a/core/openssl/PKGBUILD b/core/openssl/PKGBUILD
index ff9fcc101..4835d5941 100644
--- a/core/openssl/PKGBUILD
+++ b/core/openssl/PKGBUILD
@@ -8,7 +8,7 @@ _ver=1.0.1
pkgver=$_ver
pkgrel=2
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='https://www.openssl.org'
license=('custom:BSD')
depends=('perl')
@@ -16,29 +16,21 @@ 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'
+ 'gnu-linux-mips64el-gcc.patch'
'ca-dir.patch'
'disable-tls12-client.patch')
md5sums=('134f168bc2a8333f19f81d684841710b'
- 'efbe93c11747fed52e60567819409d8a'
'5bbc0655bda2af95bc8eb568963ce8ba'
'dc78d3d06baffc16217519242ce92478'
+ 'd7115f0cc44df346d7b68c681819f94b'
'3bf51be3a1bbd262be46dc619f92aa90'
'26432b9d7af63c63828b6405c9185400')
build() {
cd $srcdir/$pkgname-$_ver
- if [ "${CARCH}" == 'x86_64' ]; then
- openssltarget='linux-x86_64'
- optflags='enable-ec_nistp_64_gcc_128'
- elif [ "${CARCH}" == 'i686' ]; then
- openssltarget='linux-elf'
- optflags=''
- fi
-
# avoid conflicts with other man pages
# see http://www.linuxfromscratch.org/patches/downloads/openssl/
patch -p1 -i $srcdir/fix-manpages.patch
@@ -48,6 +40,22 @@ build() {
patch -p0 -i $srcdir/ca-dir.patch
# workaround for PR#2771
patch -p1 -i $srcdir/disable-tls12-client.patch
+
+# patch -p0 -i $srcdir/gnu-linux-mips64el-gcc.patch
+
+ case "${CARCH}" in
+ 'x86_64')
+ openssltarget='linux-x86_64'
+ optflags='enable-ec_nistp_64_gcc_128' ;;
+ 'i686')
+ openssltarget='linux-elf' ;;
+ 'mips64el')
+# ./config
+ # Broken.
+ # openssltarget='gnu-linux-mips64el-gcc' ;;
+ openssltarget='linux-generic32' ;;
+ esac
+
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared zlib enable-md2 ${optflags} \