#!/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 }