diff options
Diffstat (limited to 'crypto/openssl/BUILD')
-rwxr-xr-x | crypto/openssl/BUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crypto/openssl/BUILD b/crypto/openssl/BUILD new file mode 100755 index 0000000000..660392b693 --- /dev/null +++ b/crypto/openssl/BUILD @@ -0,0 +1,39 @@ +if echo $OPTS | grep -q -- "no-krb5"; then + OPENSSL_KRB5="no-krb5" +fi && + +./config --prefix=${INSTALL_ROOT}/usr \ + --openssldir=${INSTALL_ROOT}/etc/ssl \ + shared threads \ + $OPENSSL_KRB5 && + +sedit "s/-O3//" Makefile && +sedit "s/-m486//" Makefile && +sedit "s/^CFLAG=/CFLAG=$CFLAGS /" Makefile && +sedit "s/chmod 644\(.*pkgconfig\)/chmod 755\1/" Makefile && + +make_single && +make && { + + local OLD_SPELL_VERSION="" + spell_ok $SPELL && OLD_SPELL_VERSION="$(installed_version $SPELL)" + if [ "${VERSION/[a-z]*/}" != "${OLD_SPELL_VERSION/[a-z]*/}" ] && + grep -q '^wget:openssl:on' "$DEPENDS_STATUS" # any internal sorcery interface to this data? + then + message "Building wget now so that it doesn't get borked" && + summon wget && + RUN_COMPILER_DIR="${RUN_COMPILER_DIR:-/var/lib/sorcery/build}" && + PATH="${PATH//$RUN_COMPILER_DIR:/}" && + delve -c start BUILD wget && # this links against old libraries still + local TEMPWGET_DIR="$BUILD_DIRECTORY/wget-$(gaze version wget | + head -n 3 | tail -n 1 | awk '{ print $4 }')" && + # $4 is grimoire version, not installed version -- internal sorcery interface, too? + cd "$TEMPWGET_DIR/src" && + rm wget && + cp -vf $SOURCE_DIRECTORY/lib{ssl,crypto}.so* "$INSTALL_ROOT/usr/lib/" && + make wget && # race to get a new library wget built + install -m 755 wget /usr/bin/wget && # and installed + cd - && + ldconfig +fi +} |