]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Incremented version number to 2.1_rc4a.
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 22 Jan 2008 22:08:35 +0000 (22:08 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 22 Jan 2008 22:08:35 +0000 (22:08 +0000)
Windows changes:

Incremented included OpenSSL version to openssl-0.9.7m.

Updated openssl.patch for openssl-0.9.7m and added some
brief usage comments to the head of the patch.

Added build-pkcs11-helper.sh for building the pkcs11-helper
library.

Integrated inclusion of pkcs11-helper into Windows build
system.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2649 e7ae566f-a301-0410-adde-c780ea21d3b5

INSTALL
domake-win
install-win32/build-pkcs11-helper.sh [new file with mode: 0644]
install-win32/makebin
install-win32/openssl.patch
install-win32/settings.in
version.m4

diff --git a/INSTALL b/INSTALL
index c269ac55277ff4b415535b3d776e34de65b0f1bd..4cb0e67db139363ab31128f09cf1f9e54c6b78df 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -7,6 +7,16 @@ as published by the Free Software Foundation.
 
 *************************************************************************
 
+QUICK START:
+
+  Unix:
+    ./configure && make && make-install
+
+  Windows:
+    ./domake-win (see comments in the script for more info)
+
+*************************************************************************
+
 To download OpenVPN, go to:
 
        http://openvpn.net/download.html
index fb591f61b5ecc4a70ef26cdcbb9be0b252269346..7991bea5dc4b53e63ed3535e42742f16f2b2573d 100644 (file)
@@ -18,8 +18,9 @@
 #
 # Required libraries (must be prebuilt)
 #
-# OpenSSL   -- define OPENSSL_DIR in settings.in
-# LZO       -- define LZO_DIR in settings.in
+# OpenSSL       -- define OPENSSL_DIR in settings.in
+# LZO           -- define LZO_DIR in settings.in
+# PKCS11-HELPER -- define PKCS11_HELPER_DIR
 #
 # Optional OpenVPN GUI binary (prebuilt)
 #           -- define OPENVPN_GUI_DIR and OPENVPN_GUI in settings.in
diff --git a/install-win32/build-pkcs11-helper.sh b/install-win32/build-pkcs11-helper.sh
new file mode 100644 (file)
index 0000000..4ec2dff
--- /dev/null
@@ -0,0 +1,23 @@
+F=pkcs11-helper-1.05
+OPENSSL_DIR=`pwd`/openssl-0.9.7m
+
+PKCS11_HELPER_DIR=`pwd`/pkcs11-helper
+rm -rf $PKCS11_HELPER_DIR
+mkdir $PKCS11_HELPER_DIR
+tbz=$F.tar.bz2
+
+rm -rf $F
+tar xfj $tbz
+
+cd $F
+./configure \
+       MAN2HTML=true \
+       ac_cv_type_size_t=no \
+       --disable-crypto-engine-gnutls \
+        --disable-crypto-engine-nss \
+        PKG_CONFIG=true \
+        OPENSSL_CFLAGS="-I${OPENSSL_DIR}/include" \
+        OPENSSL_LIBS="-L${OPENSSL_DIR}/out -lcrypto"
+
+make
+make install DESTDIR="${PKCS11_HELPER_DIR}"
index 777c32742bae5d367c8e9f58f28f4cd09e733cf5..de99e74f504db6c252a4c17f754cdf1be5c06ba2 100644 (file)
@@ -22,6 +22,12 @@ for f in libeay32.dll libssl32.dll openssl.exe ; do
   strip bin/$f
 done
 
+# Get PKCS11 libraries
+for f in libpkcs11-helper-1.dll ; do
+    cp $PKCS11_HELPER_DIR/bin/$f bin
+    strip bin/$f
+done
+
 # $DRVBINSRC, if defined, points to prebuilt TAP driver and
 # tapinstall.exe.
 if [ -z "$DRVBINSRC" ] ; then
index 16ba7c811fb7381693ae3221f4986dbf470326cf..1a041cfe74419430a8dd8c8cc1b9b43221a64db1 100644 (file)
@@ -1,7 +1,32 @@
-diff -wur /y/openssl/openssl-0.9.7l/ms/mw.bat openssl-0.9.7l-modified/ms/mw.bat
---- /y/openssl/openssl-0.9.7l/ms/mw.bat        Sat Feb 22 10:02:45 2003
-+++ openssl-0.9.7l-modified/ms/mw.bat  Sun Oct  1 04:24:02 2006
-@@ -11,7 +11,9 @@
+[in msys bash window]
+cd /c/src/openssl-0.9.7m
+patch -p1 <../21/install-win32/openssl.patch
+
+[open command prompt window]
+cd \src\openssl-0.9.7m
+ms\mw
+
+diff -wur openssl-0.9.7m.orig/ms/mw.bat openssl-0.9.7m/ms/mw.bat
+--- openssl-0.9.7m.orig/ms/mw.bat      Sat Feb 22 11:02:46 2003
++++ openssl-0.9.7m/ms/mw.bat   Mon Jan 21 23:12:34 2008
+@@ -1,17 +1,23 @@
+ @rem OpenSSL with Mingw32\r
+ @rem --------------------\r
\r
++@rem Include MinGW, MSYS, and ActiveState Perl in path
++set PATH=c:\perl\bin;c:\MinGW\bin;c:\msys\1.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
++
+ @rem Makefile\r
+ perl util\mkfiles.pl >MINFO\r
+-perl util\mk1mf.pl Mingw32 >ms\mingw32.mak\r
++perl util\mk1mf.pl no-idea no-mdc2 no-rc5 Mingw32 >ms\mingw32.mak
++
+ @rem DLL definition files\r
+-perl util\mkdef.pl 32 libeay >ms\libeay32.def\r
++perl util\mkdef.pl no-idea no-mdc2 no-rc5 32 libeay >ms\libeay32.def
+ if errorlevel 1 goto end\r
+-perl util\mkdef.pl 32 ssleay >ms\ssleay32.def\r
++perl util\mkdef.pl no-idea no-mdc2 no-rc5 32 ssleay >ms\ssleay32.def
  if errorlevel 1 goto end\r
  \r
  @rem Build the libraries\r
@@ -12,7 +37,7 @@ diff -wur /y/openssl/openssl-0.9.7l/ms/mw.bat openssl-0.9.7l-modified/ms/mw.bat
  if errorlevel 1 goto end\r
  \r
  @rem Generate the DLLs and input libraries\r
-@@ -20,6 +22,9 @@
+@@ -20,7 +26,9 @@
  dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a\r
  if errorlevel 1 goto end\r
  \r
@@ -22,9 +47,10 @@ diff -wur /y/openssl/openssl-0.9.7l/ms/mw.bat openssl-0.9.7l-modified/ms/mw.bat
  echo Done compiling OpenSSL\r
  \r
  :end\r
-diff -wur /y/openssl/openssl-0.9.7l/util/pl/Mingw32.pl openssl-0.9.7l-modified/util/pl/Mingw32.pl
---- /y/openssl/openssl-0.9.7l/util/pl/Mingw32.pl       Sun May 16 22:28:31 2004
-+++ openssl-0.9.7l-modified/util/pl/Mingw32.pl Sun Oct  1 04:54:04 2006
+-\r
+diff -wur openssl-0.9.7m.orig/util/pl/Mingw32.pl openssl-0.9.7m/util/pl/Mingw32.pl
+--- openssl-0.9.7m.orig/util/pl/Mingw32.pl     Sun May 16 23:28:32 2004
++++ openssl-0.9.7m/util/pl/Mingw32.pl  Mon Jan 21 17:52:36 2008
 @@ -99,10 +99,10 @@
        $n=&bname($target);
        $ret.="$target: $files $dep_libs\n";
index 3ed8e55e56353fbc3d5baabc3d2903da0d74e4f7..b233686bff707e9c160d84c646ada32f52586215 100644 (file)
 !define OPENVPN_GUI     "openvpn-gui-1.0.3.exe"
 
 # Prebuilt libraries.  DMALLOC is optional.
-!define OPENSSL_DIR    "../openssl-0.9.7l"
-!define LZO_DIR                "../lzo-2.02"
-!define DMALLOC_DIR    "../dmalloc-5.4.2"
+!define OPENSSL_DIR      "../openssl-0.9.7m"
+!define LZO_DIR                  "../lzo-2.02"
+!define PKCS11_HELPER_DIR "../pkcs11-helper/usr/local"
+!define DMALLOC_DIR      "../dmalloc-5.4.2"
 
 # Write TAP driver and tapinstall.exe to this directory,
 # to use as prebuilt binaries for future builds.  May
index 3189fc85d8e6209e3d92998e9e5a9d83e337f42b..add24da739257128c6be9a734ae4000dc02cd3f8 100644 (file)
@@ -1,2 +1,2 @@
 dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1_rc4])
+define(PRODUCT_VERSION,[2.1_rc4a])