Browse code

Version 2.1_rc13

Minor fixes to Windows build scripts.


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

james authored on 2008/10/08 13:53:19
Showing 10 changed files
... ...
@@ -3,6 +3,21 @@ Copyright (C) 2002-2008 OpenVPN Technologies, Inc. <sales@openvpn.net>
3 3
 
4 4
 $Id$
5 5
 
6
+2008.10.07 -- Version 2.1_rc13
7
+
8
+* Bundled OpenSSL 0.9.8i with Windows installer.
9
+
10
+* Management interface can now listen on a unix
11
+  domain socket, for example:
12
+
13
+    management /tmp/openvpn unix
14
+
15
+  Also added management-client-user and management-client-group
16
+  directives to control which processes are allowed to connect
17
+  to the socket.
18
+
19
+* Copyright change to OpenVPN Technologies, Inc.
20
+
6 21
 2008.09.23 -- Version 2.1_rc12
7 22
 
8 23
 * Patched Makefile.am so that the new t_cltsrv-down.sh script becomes
... ...
@@ -11,7 +26,7 @@ $Id$
11 11
 * Fixed --lladdr bug introduced in 2.1-rc9 where input validation code
12 12
   was incorrectly expecting the lladdr parameter to be an IP address
13 13
   when it is actually a MAC address (HoverHell).
14
-	
14
+
15 15
 2008.09.14 -- Version 2.1_rc11
16 16
 
17 17
 * Fixed a bug that can cause SSL/TLS negotiations in UDP mode
... ...
@@ -9,6 +9,10 @@
9 9
 #        make
10 10
 #        make install
11 11
 
12
+if ! [ "$KEEPAUTODEFS" = "yes" ]; then
13
+    rm -rf autodefs
14
+fi
15
+
12 16
 rm -f \
13 17
     *.o \
14 18
     service-win32/*.o \
... ...
@@ -49,7 +53,6 @@ rm -rf \
49 49
     .deps \
50 50
     */.deps \
51 51
     windest \
52
-    autodefs \
53 52
     gen \
54 53
     tapinstall \
55 54
     install-win32/tmp
... ...
@@ -28,7 +28,7 @@
28 28
 #
29 29
 # The following additional prerequisites may be omitted
30 30
 # when building in pre-built mode (see note below). 
31
-
31
+#
32 32
 # svn       -- for checking out source code (or TortoiseSVN)
33 33
 # Windows Driver Kit (6001_17121_HyperV_WDK.iso) -- for building
34 34
 #    TAP driver + tapinstall
... ...
@@ -49,9 +49,6 @@
49 49
 #                  Windows Driver Kit (formerly known as DDK).
50 50
 #                  Copy the 'devcon' source tree to ../tapinstall
51 51
 #                  Edit 'sources' and modify TARGETNAME=tapinstall
52
-#
53
-# ../svc-template -- This directory should contain service.[ch]
54
-#                    from the MS Platform SDK.
55 52
 
56 53
 # Note that all variables referenced here such as GENOUT,
57 54
 # GENOUT_PREBUILT, and CLEAN are defined in install-win32/settings.in
... ...
@@ -65,11 +62,11 @@
65 65
 #   this and use the pre-built version instead.  This would allow you, for
66 66
 #   example, to build an OpenVPN installer with custom edits to
67 67
 #   install-win32/settings.in, but then avoid needing to build all other
68
-#   components (such as OpenSSL, LZO, Pkcs11-helper, TAP driver windows
68
+#   components (such as OpenSSL, LZO, Pkcs11-helper, TAP driver, Windows
69 69
 #   service, etc.).  The procedure is as follows. First Download and expand
70 70
 #   the pre-built binaries from:
71 71
 #
72
-#     https://secure.openvpn.net/devel/ (choose the most recent -prebuilt .tbz file)
72
+#     http://openvpn.net/prebuilt/ (choose the most recent -prebuilt .tbz file)
73 73
 #
74 74
 #   After expanding the .tbz file, cd to the top level directory and
75 75
 #   expand an OpenVPN source distribution taken from either the subversion
... ...
@@ -80,12 +77,12 @@
80 80
 #
81 81
 #   gen-prebuilt     -> from prebuilt .tbz file
82 82
 #   lzo-2.02         -> from prebuilt .tbz file
83
-#   openssl-0.9.7m   -> from prebuilt .tbz file
83
+#   openssl-0.9.8i   -> from prebuilt .tbz file
84 84
 #   pkcs11-helper    -> from prebuilt .tbz file
85
-#   openvpn-2.1_rc7a.tar.gz  -> downloaded from openvpn.net
86
-#   openvpn-2.1_rc7a -> directory expanded from above file
85
+#   openvpn-2.1_rc13.tar.gz  -> downloaded from openvpn.net
86
+#   openvpn-2.1_rc13 -> directory expanded from above file
87 87
 #
88
-#   Now cd to your expanded source tree (openvpn-2.1_rc7a in the
88
+#   Now cd to your expanded source tree (openvpn-2.1_rc13 in the
89 89
 #   example above), make edits to install-win32/settings.in (or even
90 90
 #   patch the OpenVPN source code directly), and run this script:
91 91
 #
... ...
@@ -94,8 +91,6 @@
94 94
 #   If everything runs correctly, you should have a custom installer
95 95
 #   written to ./gen/install
96 96
 
97
-
98
-
99 97
 # First build the autodefs directory, containing C, sh, and NSIS versions
100 98
 # of global settings, using install-win32/settings.in as source.
101 99
 # These settings will then drive the rest of the build process. 
... ...
@@ -3,4 +3,4 @@
3 3
 # get version.nsi definitions
4 4
 . autodefs/defs.sh
5 5
 
6
-[ "$CLEAN" = "yes" ] && rm -rf $GENOUT
6
+[ "$CLEAN" = "yes" ] && rm -rf $GENOUT && KEEPAUTODEFS="yes" ./doclean
... ...
@@ -10,7 +10,7 @@ if [ -d "$OPENSSL_DIR" ] ; then
10 10
     for f in libeay32.dll libssl32.dll out/openssl.exe ; do
11 11
 	cp $OPENSSL_DIR/$f $GENOUT/lib
12 12
         if [ -z "$NO_STRIP" ]; then
13
-	    strip $GENOUT/lib/$f
13
+	    strip $GENOUT/lib/`basename $f`
14 14
 	fi
15 15
     done
16 16
     mv $GENOUT/lib/openssl.exe $GENOUT/bin
... ...
@@ -6,7 +6,7 @@
6 6
 # get version.nsi definitions
7 7
 . autodefs/defs.sh
8 8
 
9
-if [ -d "/c/WINDDK/$DDKVER" ] ; then
9
+if [ -n "$DDKVER" ] && [ -d "/c/WINDDK/$DDKVER" ] ; then
10 10
 
11 11
 # common declarations for all DDK build targets
12 12
 . install-win32/ddk-common
... ...
@@ -8,7 +8,7 @@
8 8
 # get version.nsi definitions
9 9
 . autodefs/defs.sh
10 10
 
11
-if [ -d "/c/WINDDK/$DDKVER" ] ; then
11
+if [ -n "$DDKVER" ] && [ -d "/c/WINDDK/$DDKVER" ] ; then
12 12
 
13 13
 if ! [ -d "$TISRC" ] ; then
14 14
     echo "$TISRC" NOT INSTALLED
... ...
@@ -2,21 +2,20 @@ Rebuild OpenSSL tarball without symbolic links, so
2 2
 it can be extracted on Windows (run on Unix):
3 3
 
4 4
   [download tarball and .asc sig]
5
-  gpg --verify openssl-0.9.8h.tar.gz.asc
6
-  tar xfz openssl-0.9.8h.tar.gz
7
-  rm openssl-0.9.8h.tar.gz
8
-  tar cfzh openssl-0.9.8h.tar.gz openssl-0.9.8h
5
+  gpg --verify openssl-0.9.8i.tar.gz.asc
6
+  tar xfz openssl-0.9.8i.tar.gz
7
+  tar cfzh openssl-0.9.8i-nolinks.tar.gz openssl-0.9.8i
9 8
 
10 9
 To apply patch (in MSYS shell):
11 10
 
12
-  cd /c/src/openssl-0.9.8h
11
+  cd /c/src/openssl-0.9.8i
13 12
   patch -p1 <../21/install-win32/openssl/openssl098.patch
14 13
 
15 14
 To build OpenSSL, open a command prompt window, then:
16 15
 
17
-  cd \src\openssl-0.9.8h
16
+  cd \src\openssl-0.9.8i
18 17
   ms\mw
19 18
 
20 19
 To build a new patch (optional):
21 20
 
22
-  diff -urw openssl-0.9.8h.orig openssl-0.9.8h | grep -v '^Only in' >openssl098.patch
21
+  diff -urw openssl-0.9.8i.orig openssl-0.9.8i | grep -v '^Only in' >openssl098.patch
... ...
@@ -22,10 +22,10 @@
22 22
 ;!define OPENVPN_XGUI_DIR "../ovpnxml"
23 23
 
24 24
 # Prebuilt libraries.  DMALLOC is optional.
25
-!define OPENSSL_DIR	  "../openssl-0.9.8h"
25
+!define OPENSSL_DIR	  "../openssl-0.9.8i"
26 26
 !define LZO_DIR		  "../lzo-2.02"
27 27
 !define PKCS11_HELPER_DIR "../pkcs11-helper"
28
-!define DMALLOC_DIR	  "../dmalloc-5.4.2"
28
+;!define DMALLOC_DIR	  "../dmalloc-5.4.2"
29 29
 
30 30
 # Optional directory of prebuilt OpenVPN binary components,
31 31
 # to be used as a source when build-from-scratch prerequisites
... ...
@@ -33,7 +33,8 @@
33 33
 !define GENOUT_PREBUILT  "../gen-prebuilt"
34 34
 
35 35
 # tapinstall.exe source code.
36
-# Not needed if DRVBINSRC is defined.
36
+# Not needed if DRVBINSRC is defined
37
+# (or if using pre-built mode).
37 38
 !define TISRC	"../tapinstall"
38 39
 
39 40
 # TAP Adapter parameters.  Note that PRODUCT_TAP_ID is
... ...
@@ -44,7 +45,7 @@
44 44
 !define PRODUCT_TAP_MINOR_VER           4
45 45
 !define PRODUCT_TAP_RELDATE             "01/22/2008"
46 46
 
47
-; visible=0x81  hidden=0x89
47
+# TAP adapter icon -- visible=0x81 or hidden=0x89
48 48
 !define PRODUCT_TAP_CHARACTERISTICS     0x81
49 49
 
50 50
 # Build debugging version of TAP driver
... ...
@@ -1,5 +1,5 @@
1 1
 dnl define the OpenVPN version
2
-define(PRODUCT_VERSION,[2.1_rc12a])
2
+define(PRODUCT_VERSION,[2.1_rc13])
3 3
 dnl define the TAP version
4 4
 define(PRODUCT_TAP_ID,[tap0901])
5 5
 define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])