aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@091d3ff0-52bc-4db5-b7a6-18201e4c0cca>2009-09-28 18:21:13 +0000
committerschnetter <schnetter@091d3ff0-52bc-4db5-b7a6-18201e4c0cca>2009-09-28 18:21:13 +0000
commit10185598b01c4631ea452379c3fee827f745820f (patch)
tree24eca1f007111766612fe0ed6b55f673f9ce15ed
parent1ae5bee4efee077875b7fb6f511b88bd72748fe7 (diff)
Add thorn containing the OpenSSL library
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/OpenSSL/trunk@2 091d3ff0-52bc-4db5-b7a6-18201e4c0cca
-rw-r--r--OpenSSL.sh85
-rw-r--r--README27
-rw-r--r--configuration.ccl8
-rw-r--r--dist/openssl-0.9.8k.tar.gzbin0 -> 3852259 bytes
-rw-r--r--interface.ccl3
-rw-r--r--param.ccl1
-rw-r--r--schedule.ccl1
-rw-r--r--src/make.code.defn7
8 files changed, 132 insertions, 0 deletions
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 <http://www.openssl.org/>.
+
+
+
+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
--- /dev/null
+++ b/dist/openssl-0.9.8k.tar.gz
Binary files 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 =