Overview
| Comment: | Updated to build and statically link against OpenSSL on Solaris | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 
54bbcae6f15a8c92c6766277ec17baf9 | 
| User & Date: | rkeene on 2011-12-11 17:11:23 | 
| Other Links: | manifest | tags | 
Context
| 
   2011-12-11 
 | ||
| 17:11 | Updated to build for Solaris 2.8 and Solaris 2.10 on SPARC check-in: aa587e91a7 user: rkeene tags: trunk | |
| 17:11 | Updated to build and statically link against OpenSSL on Solaris check-in: 54bbcae6f1 user: rkeene tags: trunk | |
| 
   2011-12-04 
 | ||
| 16:29 | Updated to not complain check-in: 3e39144f1c user: rkeene tags: trunk | |
Changes
Modified server/buildpkgs/tls/build.sh from [656d097351] to [547cf2503d].
| ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42  | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81  | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  | 
extract_src
# Apply appropriate patches
apply_patches
(
	cd "build/${BUILDDIR}" || exit 1
	if [ -z "${SSLDIR}" ]; then
		(
			case "${PLATFORM}" in
				solaris*-ix86)
					opensslplatform='solaris-x86-gcc'
					;;
				solaris*-x86_64)
					opensslplatform='solaris64-x86_64-gcc'
					;;
				solaris*-sparc)
					opensslplatform='solaris-sparcv9-gcc'
					;;
				solaris*-sparc64)
					opensslplatform='solaris64-sparcv9-gcc'
					;;
			esac
			if [ -z "${opensslplatform}" ]; then
				exit 0
			fi
			wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
			gzip -dc openssl-1.0.0e.tar.gz | tar -xf -
			cd openssl-1.0.0e
			./Configure no-shared --prefix=$(pwd)/INST "${opensslplatform}"
			${MAKE:-make} || exit 1
			${MAKE:-make} install || exit 1
		)
		for chkssldir in "$(pwd)/openssl-1.0.0e/INST"; do
			if [ -d "${chkssldir}/lib" ]; then
				SSLDIR="${chkssldir}"
			fi
		done
	fi
	if [ -z "${SSLDIR}" ]; then
		for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do
			if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then
				SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@')
			fi
		done
	fi
	if [ -z "${SSLDIR}" ]; then
		SSLDIR="/usr"
	fi
	bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}" ${CONFIGUREEXTRA}
	${MAKE:-make} || exit 1
) || exit 1
 | 
| ︙ |