From 10185598b01c4631ea452379c3fee827f745820f Mon Sep 17 00:00:00 2001 From: schnetter Date: Mon, 28 Sep 2009 18:21:13 +0000 Subject: Add thorn containing the OpenSSL library git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/OpenSSL/trunk@2 091d3ff0-52bc-4db5-b7a6-18201e4c0cca --- OpenSSL.sh | 85 +++++++++++++++++++++++++++++++++++++++++++++ README | 27 ++++++++++++++ configuration.ccl | 8 +++++ dist/openssl-0.9.8k.tar.gz | Bin 0 -> 3852259 bytes interface.ccl | 3 ++ param.ccl | 1 + schedule.ccl | 1 + src/make.code.defn | 7 ++++ 8 files changed, 132 insertions(+) create mode 100644 OpenSSL.sh create mode 100644 README create mode 100644 configuration.ccl create mode 100644 dist/openssl-0.9.8k.tar.gz create mode 100644 interface.ccl create mode 100644 param.ccl create mode 100644 schedule.ccl create mode 100644 src/make.code.defn diff --git a/OpenSSL.sh b/OpenSSL.sh new file mode 100644 index 0000000..d30f397 --- /dev/null +++ b/OpenSSL.sh @@ -0,0 +1,85 @@ +#! /bin/bash + +################################################################################ +# Prepare +################################################################################ + +# Set up shell +set -x # Output commands +set -e # Abort on errors + +# Set locations +NAME=openssl-0.9.8k +SRCDIR=$(dirname $0) +INSTALL_DIR=${SCRATCH_BUILD} +OPENSSL_DIR=${INSTALL_DIR}/${NAME} + +# Clean up environment +unset LIBS + + + +################################################################################ +# Build +################################################################################ + +( + exec >&2 # Redirect stdout to stderr + set -x # Output commands + set -e # Abort on errors + cd ${INSTALL_DIR} + if [ -e done-${NAME} -a done-${NAME} -nt ${SRCDIR}/dist/${NAME}.tar.gz ]; then + echo "OpenSSL: The enclosed OpenSSL library has already been built; doing nothing" + else + echo "OpenSSL: Building enclosed OpenSSL library" + + echo "OpenSSL: Unpacking archive..." + rm -rf build-${NAME} + mkdir build-${NAME} + pushd build-${NAME} + # Should we use gtar or tar? + TAR=$(gtar --help > /dev/null 2> /dev/null && echo gtar || echo tar) + ${TAR} xzf ${SRCDIR}/dist/${NAME}.tar.gz + popd + + echo "OpenSSL: Configuring..." + rm -rf ${NAME} + mkdir ${NAME} + pushd build-${NAME}/${NAME} + ./config --prefix=${OPENSSL_DIR} + + echo "OpenSSL: Building..." + make + + echo "OpenSSL: Installing..." + make install + popd + + : > done-${NAME} + echo "OpenSSL: Done." + fi +) + + + +################################################################################ +# Configure Cactus +################################################################################ + +# Set options +OPENSSL_INC_DIRS="${OPENSSL_DIR}/include" +OPENSSL_LIB_DIRS="${OPENSSL_DIR}/lib" +OPENSSL_LIBS='ssl crypto' + +# Pass options to Cactus +echo "BEGIN MAKE_DEFINITION" +echo "HAVE_OPENSSL = 1" +echo "OPENSSL_DIR = ${OPENSSL_DIR}" +echo "OPENSSL_INC_DIRS = ${OPENSSL_INC_DIRS}" +echo "OPENSSL_LIB_DIRS = ${OPENSSL_LIB_DIRS}" +echo "OPENSSL_LIBS = ${OPENSSL_LIBS}" +echo "END MAKE_DEFINITION" + +echo 'INCLUDE_DIRECTORY $(OPENSSL_INC_DIRS)' +echo 'LIBRARY_DIRECTORY $(OPENSSL_LIB_DIRS)' +echo 'LIBRARY $(OPENSSL_LIBS)' diff --git a/README b/README new file mode 100644 index 0000000..33d8497 --- /dev/null +++ b/README @@ -0,0 +1,27 @@ +Cactus Code Thorn OpenSSL +Author(s) : Erik Schnetter +Maintainer(s): Cactus team +Licence : ? +-------------------------------------------------------------------------- + +1. Purpose + +Distribute the OpenSSL library; see . + + + +From the web site: + +The OpenSSL Project is a collaborative effort to develop a robust, +commercial-grade, full-featured, and Open Source toolkit implementing +the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS +v1) protocols as well as a full-strength general purpose cryptography +library. The project is managed by a worldwide community of +volunteers that use the Internet to communicate, plan, and develop the +OpenSSL toolkit and its related documentation. + +OpenSSL is based on the excellent SSLeay library developed by Eric +A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an +Apache-style licence, which basically means that you are free to get +and use it for commercial and non-commercial purposes subject to some +simple license conditions. diff --git a/configuration.ccl b/configuration.ccl new file mode 100644 index 0000000..5452a76 --- /dev/null +++ b/configuration.ccl @@ -0,0 +1,8 @@ +# Configuration definitions for thorn OpenSSL +# $Header$ + +PROVIDES OpenSSL +{ + SCRIPT OpenSSL.sh + LANG bash +} diff --git a/dist/openssl-0.9.8k.tar.gz b/dist/openssl-0.9.8k.tar.gz new file mode 100644 index 0000000..69d8d8f Binary files /dev/null and b/dist/openssl-0.9.8k.tar.gz differ diff --git a/interface.ccl b/interface.ccl new file mode 100644 index 0000000..c54ce20 --- /dev/null +++ b/interface.ccl @@ -0,0 +1,3 @@ +# Interface definition for thorn OpenSSL + +IMPLEMENTS: OpenSSL diff --git a/param.ccl b/param.ccl new file mode 100644 index 0000000..9a5850c --- /dev/null +++ b/param.ccl @@ -0,0 +1 @@ +# Parameter definitions for thorn OpenSSL diff --git a/schedule.ccl b/schedule.ccl new file mode 100644 index 0000000..de3ac99 --- /dev/null +++ b/schedule.ccl @@ -0,0 +1 @@ +# Schedule definitions for thorn OpenSSL diff --git a/src/make.code.defn b/src/make.code.defn new file mode 100644 index 0000000..becba6b --- /dev/null +++ b/src/make.code.defn @@ -0,0 +1,7 @@ +# Main make.code.defn file for thorn OpenSSL + +# Source files in this directory +SRCS = + +# Subdirectories containing source files +SUBDIRS = -- cgit v1.2.3