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