From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- libs_security/openssl/openssl.build | 107 ++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100755 libs_security/openssl/openssl.build (limited to 'libs_security/openssl/openssl.build') diff --git a/libs_security/openssl/openssl.build b/libs_security/openssl/openssl.build new file mode 100755 index 0000000..a25420d --- /dev/null +++ b/libs_security/openssl/openssl.build @@ -0,0 +1,107 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=openssl +VERSION=1.0.1g +BUILD=1 + +# These are the known patent issues with OpenSSL: +# name # expires +# RC5: 5,724,428 2015-03-03, not included. + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh < /dev/null 2> /dev/null +fi +EOF + +# $(uname -m) here is a kludge because we should take care of the arch stuff +# before we get to this point. I.e. ${ARCH} should work here. +case "$(uname -m)" in + x86) + OPENSSLTARGET="linux-elf" + OPTIONS="" + ;; + x86_64) + OPENSSLTARGET="linux-x86_64" + OPTIONS="enable-ec_nistp_64_gcc_128" + ;; +esac + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://www.openssl.org/source/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz + +build0() +{ +sed -i 's|$(LIBDIR)/pkgconfig|$(PREFIX)/share/pkgconfig|g' Makefile.org +sed -i "s|@OPTFLAGS@|${FLAGS}|g" Configure +./Configure \ + --prefix="${SYS_DIR[usr]}" \ + --openssldir="${SYS_DIR[etc]}/ssl" \ + --libdir=lib \ + shared zlib-dynamic \ + no-rc5 no-mdc2 no-ec no-ec2m no-ecdh no-ecdsa no-srp no-sse2 \ + enable-md2 enable-tlsext enable-cms enable-rfc3779 ${OPTIONS} \ + "${OPENSSLTARGET}" +# ${JOBS} +make depend +make +make install INSTALL_PREFIX="${PKG}" MANDIR="${SYS_DIR[man]}" +doc ACKNOWLEDGMENTS FAQ +changelog NEWS +license LICENSE +install.dir ${PKG}${SYS_DIR[etc]}/cron.daily +install.bin certwatch ${PKG}${SYS_DIR[etc]}/cron.daily/certwatch.new +( cd ${PKG}${SYS_DIR[lib]} ; ldconfig -l lib*.so* ) +config ${PKG}${SYS_DIR[etc]}/ssl/openssl.cnf +} -- cgit v1.2.3-70-g09d2