diff options
author | Matt Housh <jaeger@morpheus.net> | 2012-11-21 11:12:43 -0600 |
---|---|---|
committer | Matt Housh <jaeger@morpheus.net> | 2012-11-21 11:12:43 -0600 |
commit | f58de0877c76c9d2faeedc5a37e9a083595bfbe9 (patch) | |
tree | 7aaecd27b8ddf86d5a22917e9227f2437d601b30 /openssl-32 | |
parent | 7fe949bb83be5abb275a8a7f7fe77b88ea997592 (diff) | |
download | compat-32-f58de0877c76c9d2faeedc5a37e9a083595bfbe9.tar.gz compat-32-f58de0877c76c9d2faeedc5a37e9a083595bfbe9.tar.xz |
Initial import of *-32 ports for CRUX 3.0
Diffstat (limited to 'openssl-32')
-rw-r--r-- | openssl-32/.32bit | 0 | ||||
-rw-r--r-- | openssl-32/.footprint | 25 | ||||
-rw-r--r-- | openssl-32/.md5sum | 3 | ||||
-rw-r--r-- | openssl-32/Pkgfile | 23 | ||||
-rwxr-xr-x | openssl-32/mksslcert.sh | 47 | ||||
-rw-r--r-- | openssl-32/openssl-32.patch | 11 |
6 files changed, 109 insertions, 0 deletions
diff --git a/openssl-32/.32bit b/openssl-32/.32bit new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/openssl-32/.32bit diff --git a/openssl-32/.footprint b/openssl-32/.footprint new file mode 100644 index 00000000..544a1ef2 --- /dev/null +++ b/openssl-32/.footprint @@ -0,0 +1,25 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib32/ +drwxr-xr-x root/root usr/lib32/engines/ +-rwxr-xr-x root/root usr/lib32/engines/lib4758cca.so +-rwxr-xr-x root/root usr/lib32/engines/libaep.so +-rwxr-xr-x root/root usr/lib32/engines/libatalla.so +-rwxr-xr-x root/root usr/lib32/engines/libcapi.so +-rwxr-xr-x root/root usr/lib32/engines/libchil.so +-rwxr-xr-x root/root usr/lib32/engines/libcswift.so +-rwxr-xr-x root/root usr/lib32/engines/libgmp.so +-rwxr-xr-x root/root usr/lib32/engines/libgost.so +-rwxr-xr-x root/root usr/lib32/engines/libnuron.so +-rwxr-xr-x root/root usr/lib32/engines/libpadlock.so +-rwxr-xr-x root/root usr/lib32/engines/libsureware.so +-rwxr-xr-x root/root usr/lib32/engines/libubsec.so +-rw-r--r-- root/root usr/lib32/libcrypto.a +lrwxrwxrwx root/root usr/lib32/libcrypto.so -> libcrypto.so.1.0.0 +-rwxr-xr-x root/root usr/lib32/libcrypto.so.1.0.0 +-rw-r--r-- root/root usr/lib32/libssl.a +lrwxrwxrwx root/root usr/lib32/libssl.so -> libssl.so.1.0.0 +-rwxr-xr-x root/root usr/lib32/libssl.so.1.0.0 +drwxr-xr-x root/root usr/lib32/pkgconfig/ +-rw-r--r-- root/root usr/lib32/pkgconfig/libcrypto.pc +-rw-r--r-- root/root usr/lib32/pkgconfig/libssl.pc +-rw-r--r-- root/root usr/lib32/pkgconfig/openssl.pc diff --git a/openssl-32/.md5sum b/openssl-32/.md5sum new file mode 100644 index 00000000..eba79b68 --- /dev/null +++ b/openssl-32/.md5sum @@ -0,0 +1,3 @@ +9d0df57845af8acd1027a7df5c18d017 mksslcert.sh +ae412727c8c15b67880aef7bd2999b2e openssl-1.0.1c.tar.gz +bcc6cecf10603a07b9a2261c75aff1c6 openssl-32.patch diff --git a/openssl-32/Pkgfile b/openssl-32/Pkgfile new file mode 100644 index 00000000..9fe0f461 --- /dev/null +++ b/openssl-32/Pkgfile @@ -0,0 +1,23 @@ +# Description: Secure Sockets Layer and Transport Layer Security tools +# URL: http://www.openssl.org/ +# Maintainer: CRUX System Team, core-ports at crux dot nu + +name=openssl-32 +version=1.0.1c +release=1 +source=(http://www.openssl.org/source/openssl-$version.tar.gz \ + mksslcert.sh $name.patch) + +build() { + export MAKEFLAGS="${MAKEFLAGS} -j1" + cd openssl-$version + patch -p1 -i $SRC/$name.patch + ./Configure linux-x86_64-32 --prefix=/usr --libdir=/usr/lib32 --openssldir=/etc/ssl shared + sed -i "s|-O3|$CFLAGS|" Makefile + make + make INSTALL_PREFIX=$PKG LIBDIR=lib32 MANDIR=/usr/man MANSUFFIX=ssl install + find $PKG -name "*fips*" -delete + chmod -R +w $PKG + install -D -m 755 $SRC/mksslcert.sh $PKG/usr/bin/mksslcert + rm -rf $PKG/usr/{bin,include,man} $PKG/etc +} diff --git a/openssl-32/mksslcert.sh b/openssl-32/mksslcert.sh new file mode 100755 index 00000000..9cca3fb8 --- /dev/null +++ b/openssl-32/mksslcert.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# +# mksslcert +# +# creates self-signed openssl certificates based on +# the local hostname or the given one +# Fallback to localhost if not set. +# +# Jürgen Daubert, jue at jue dot li + + +print_help() { + echo "usage: ${0##*/} <key> <cert> [hostname]" + echo " key full path to openssl private key" + echo " cert full path to openssl certificate" + echo " hostname host name of certificate" +} + +main() { + if [ ! "$1" -o ! "$2" ]; then + print_help + exit 1 + fi + + KEY=$1 + CRT=$2 + FQDN=$(hostname -f) || FQDN=localhost + if [ ! -z "$3" ]; then + FQDN="$3" + fi + INFO=".\n.\n.\n.\n.\n$FQDN\nroot@$FQDN" + OPTS="req -new -nodes -x509 -days 365 -newkey rsa:1024" + + echo -e $INFO | openssl $OPTS -out $CRT -keyout $KEY 2> /dev/null + + if [ $? -ne 0 ]; then + echo "Error: creating of certificate failed" + exit 1 + else + echo "SSL certificate $CRT with key $KEY for host $FQDN created" + chmod 0600 $CRT $KEY + fi +} + +main "$@" + +# End of file diff --git a/openssl-32/openssl-32.patch b/openssl-32/openssl-32.patch new file mode 100644 index 00000000..9946c9bb --- /dev/null +++ b/openssl-32/openssl-32.patch @@ -0,0 +1,11 @@ +diff -urN openssl-1.0.1c.orig/Configure openssl-1.0.1c/Configure +--- openssl-1.0.1c.orig/Configure 2012-03-14 17:20:40.000000000 -0500 ++++ openssl-1.0.1c/Configure 2012-08-19 11:07:01.922325500 -0500 +@@ -359,6 +359,7 @@ + "linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64", ++"linux-x86_64-32", "gcc:-m32 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC:-m32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "linux64-s390x", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64", + #### So called "highgprs" target for z/Architecture CPUs + # "Highgprs" is kernel feature first implemented in Linux 2.6.32, see |