]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
-wssl feature for makedist.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 23 Jun 2010 14:01:05 +0000 (14:01 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 23 Jun 2010 14:01:05 +0000 (14:01 +0000)
git-svn-id: file:///svn/unbound/trunk@2166 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
makedist.sh

index a5bcfb6727aff23b6f633bd4a532014a345e2593..1e0d1e3ecefd6c644970a753c2a2c455a6866063 100644 (file)
@@ -1,5 +1,7 @@
 23 June 2010: Wouter
        - iana portlist updated.
+       - makedist upgraded cross compile openssl option, like this: 
+         ./makedist.sh -s -wssl openssl-1.0.0a.tar.gz -w --enable-gost
 
 22 June 2010: Wouter
        - Unbound reports libev or libevent correctly in logs in verbose mode.
index e259091e9f905d5d859838d1fb565747c2b74ae6..8d60e8b836c25308b95cbf02fd510a0c4c3b832c 100755 (executable)
@@ -54,6 +54,7 @@ Generate a distribution tar file for unbound.
     -d SVN_root  Retrieve the unbound source from the specified repository.
                  Detected from svn working copy if not specified.
     -l ldnsdir   Directory where ldns resides. Detected from Makefile.
+    -wssl openssl.xx.tar.gz Also build openssl from tarball for windows dist.
     -w ...       Build windows binary dist. last args passed to configure.
 EOF
     exit 1
@@ -133,6 +134,7 @@ SNAPSHOT="no"
 RC="no"
 LDNSDIR=""
 DOWIN="no"
+WINSSL=""
 
 # Parse the command line arguments.
 while [ "$1" ]; do
@@ -147,6 +149,10 @@ while [ "$1" ]; do
         "-s")
             SNAPSHOT="yes"
             ;;
+        "-wssl")
+           WINSSL="$2"
+           shift
+           ;;
         "-w")
             DOWIN="yes"
            shift
@@ -180,6 +186,28 @@ if [ "$DOWIN" = "yes" ]; then
 
        check_svn_root
        create_temp_dir
+
+       # crosscompile openssl for windows.
+       if test -n "$WINSSL"; then
+               info "Cross compile $WINSSL"
+               info "winssl tar unpack"
+               (cd ..; gzip -cd $WINSSL) | tar xf - || error_cleanup "tar unpack of $WINSSL failed"
+               sslinstall="`pwd`/sslinstall"
+               cd openssl-* || error_cleanup "no openssl-X dir in tarball"
+               # configure for crosscompile, without CAPI because it fails
+               # cross-compilation and it is not used anyway
+               sslflags="no-asm --cross-compile-prefix=i686-pc-mingw32- -DOPENSSL_NO_CAPIENG mingw"
+               info "winssl: Configure $sslflags"
+               ./Configure --prefix="$sslinstall" $sslflags || error_cleanup "OpenSSL Configure failed"
+               info "winssl: make"
+               make || error_cleanup "OpenSSL crosscompile failed"
+               # only install sw not docs, which take a long time.
+               info "winssl: make install_sw"
+               make install_sw || error_cleanup "OpenSSL install failed"
+               cross_flag="$cross_flag --with-ssl=$sslinstall"
+               cd ..
+       fi
+
        info "Exporting source from SVN."
        svn export "$SVNROOT" unbound || error_cleanup "SVN command failed"
        cd unbound || error_cleanup "Unbound not exported correctly from SVN"