build_openssl() { HERE=`pwd` NAME=openssl VER=1.0.0e BUILDDEPS="compiletc.tcz perl5.tcz" #DEPS= if [ ! -f openssl-1.0.0e.tar.gz ]; then wget http://openssl.org/source/openssl-1.0.0e.tar.gz || exit 1 fi for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:$LD_LIBRARY_PATH" tar xvf openssl-1.0.0e.tar.gz || exit 1 cd openssl-1.0.0e || exit 1 patch -p0 < ../openssl-1.0.0-i486compatibility.diff ./config --openssldir="$PKGPATH"/etc/ssl --prefix="$PKGPATH" make make install cd "$HERE" touch "$TMPDIR"/openssl }