summaryrefslogtreecommitdiff
path: root/core/openssl
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-10 15:17:02 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-10 15:17:02 -0300
commitfe4dcf73c98bd9629ed703a027a4b812fb174cdd (patch)
tree915db4b18096a15bbcdfadf1c5de5568f6a0207a /core/openssl
parent785b04f6500e4bd35e3568b2a1654e60df3434ee (diff)
Updates
Diffstat (limited to 'core/openssl')
-rw-r--r--core/openssl/PKGBUILD34
1 files changed, 27 insertions, 7 deletions
diff --git a/core/openssl/PKGBUILD b/core/openssl/PKGBUILD
index a0237888d..e5c5da68a 100644
--- a/core/openssl/PKGBUILD
+++ b/core/openssl/PKGBUILD
@@ -17,24 +17,23 @@ backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
'fix-manpages.patch'
'no-rpath.patch'
+ 'gnu-linux-mips64el-gcc.patch'
'ca-dir.patch')
md5sums=('7040b89c4c58c7a1016c0dfa6e821c86'
'5bbc0655bda2af95bc8eb568963ce8ba'
'dc78d3d06baffc16217519242ce92478'
+ 'd7115f0cc44df346d7b68c681819f94b'
'3bf51be3a1bbd262be46dc619f92aa90')
+[ "$CARCH" = "mips64el" ] && \
+makedepends=('imake')
+
# keep an upgrade path for older installations
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'
- fi
-
# avoid conflicts with other man pages
# see http://www.linuxfromscratch.org/patches/downloads/openssl/
patch -p1 -i $srcdir/fix-manpages.patch
@@ -42,11 +41,32 @@ build() {
patch -p0 -i $srcdir/no-rpath.patch
# set ca dir to /etc/ssl by default
patch -p0 -i $srcdir/ca-dir.patch
+
+ patch -p0 -i $srcdir/gnu-linux-mips64el-gcc.patch
+
+ case "${CARCH}" in
+ 'x86_64')
+ openssltarget='linux-x86_64' ;;
+ 'i686')
+ openssltarget='linux-elf' ;;
+ 'mips64el')
+# ./config
+ openssltarget='gnu-linux-mips64el-gcc' ;;
+ # openssltarget='linux-generic32' ;;
+ esac
+
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
+ if [ "$CARCH" = "mips64el" ]; then
+ ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
+ shared zlib enable-md2 \
+ "${openssltarget}" -Wa,--noexecstack "${CFLAGS}"
+ else
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared zlib enable-md2 \
"${openssltarget}" \
- -Wa,--noexecstack "${CFLAGS}" "${LDFLAGS}"
+ -Wa,--noexecstack "${CFLAGS}" "${LDFLAGS}"
+
+ fi
make depend
make