Added makebin to build bin directory.
Modified openvpn.nsi to read distribution
files from the new locations.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1760 e7ae566f-a301-0410-adde-c780ea21d3b5
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,33 @@ |
| 0 |
+#!/bin/sh |
|
| 1 |
+ |
|
| 2 |
+# Assemble binaries into bin |
|
| 3 |
+ |
|
| 4 |
+# get version.nsi definitions |
|
| 5 |
+. autodefs/nsidefs.sh |
|
| 6 |
+ |
|
| 7 |
+rm -rf bin |
|
| 8 |
+mkdir bin |
|
| 9 |
+ |
|
| 10 |
+# Get OpenVPN executable |
|
| 11 |
+cp openvpn.exe bin |
|
| 12 |
+strip bin/openvpn.exe |
|
| 13 |
+ |
|
| 14 |
+# Get OpenVPN service |
|
| 15 |
+cp service-win32/openvpnserv.exe bin |
|
| 16 |
+strip bin/openvpnserv.exe |
|
| 17 |
+ |
|
| 18 |
+# Get OpenSSL binaries |
|
| 19 |
+for f in libeay32.dll libssl32.dll openssl.exe ; do |
|
| 20 |
+ cp ../openssl-${OPENSSL_VERSION}/$f bin
|
|
| 21 |
+ strip bin/$f |
|
| 22 |
+done |
|
| 23 |
+ |
|
| 24 |
+# Get TAP drivers |
|
| 25 |
+cp -a tap-win32/dist bin/driver |
|
| 26 |
+ |
|
| 27 |
+# Get tapinstall |
|
| 28 |
+mkdir bin/tapinstall |
|
| 29 |
+mkdir bin/tapinstall/i386 |
|
| 30 |
+mkdir bin/tapinstall/amd64 |
|
| 31 |
+cp tapinstall/objfre_wnet_x86/i386/tapinstall.exe bin/tapinstall/i386 |
|
| 32 |
+cp tapinstall/objfre_wnet_amd64/amd64/tapinstall.exe bin/tapinstall/amd64 |
| 10 | 11 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 0 |
+#!/bin/sh |
|
| 1 |
+ |
|
| 2 |
+# Build the x86 and x64 versions of the tapinstall tool |
|
| 3 |
+# Requires the Windows DDK |
|
| 4 |
+ |
|
| 5 |
+TISRC=../tapinstall |
|
| 6 |
+ |
|
| 7 |
+# get version.nsi definitions |
|
| 8 |
+. autodefs/nsidefs.sh |
|
| 9 |
+ |
|
| 10 |
+rm -rf tapinstall |
|
| 11 |
+cp -a $TISRC tapinstall |
|
| 12 |
+ |
|
| 13 |
+cd tapinstall |
|
| 14 |
+t=`pwd` |
|
| 15 |
+cd .. |
|
| 16 |
+ |
|
| 17 |
+for mode in "fre WNET" "fre AMD64 WNET"; do |
|
| 18 |
+ echo '**********' build TAPINSTALL $mode |
|
| 19 |
+ cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef" |
|
| 20 |
+done |
| ... | ... |
@@ -67,10 +67,10 @@ |
| 67 | 67 |
!define MUI_FINISHPAGE_NOAUTOCLOSE |
| 68 | 68 |
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED |
| 69 | 69 |
!define MUI_ABORTWARNING |
| 70 |
- !define MUI_ICON "${HOME}\install-win32\openvpn.ico"
|
|
| 71 |
- !define MUI_UNICON "${HOME}\install-win32\openvpn.ico"
|
|
| 70 |
+ !define MUI_ICON "${HOME}\images\openvpn.ico"
|
|
| 71 |
+ !define MUI_UNICON "${HOME}\images\openvpn.ico"
|
|
| 72 | 72 |
!define MUI_HEADERIMAGE |
| 73 |
- !define MUI_HEADERIMAGE_BITMAP "${HOME}\install-win32\install-whirl.bmp"
|
|
| 73 |
+ !define MUI_HEADERIMAGE_BITMAP "${HOME}\images\install-whirl.bmp"
|
|
| 74 | 74 |
!define MUI_UNFINISHPAGE_NOAUTOCLOSE |
| 75 | 75 |
|
| 76 | 76 |
!insertmacro MUI_PAGE_WELCOME |
| ... | ... |
@@ -117,7 +117,7 @@ |
| 117 | 117 |
;Things that need to be extracted on first (keep these lines before any File command!) |
| 118 | 118 |
;Only useful for BZIP2 compression |
| 119 | 119 |
|
| 120 |
- ReserveFile "${HOME}\install-win32\install-whirl.bmp"
|
|
| 120 |
+ ReserveFile "${HOME}\images\install-whirl.bmp"
|
|
| 121 | 121 |
|
| 122 | 122 |
;-------------------------------- |
| 123 | 123 |
;Macros |
| ... | ... |
@@ -219,7 +219,7 @@ Section "OpenVPN User-Space Components" SecOpenVPNUserSpace |
| 219 | 219 |
SetOverwrite on |
| 220 | 220 |
SetOutPath "$INSTDIR\bin" |
| 221 | 221 |
|
| 222 |
- File "${HOME}\openvpn.exe"
|
|
| 222 |
+ File "${BIN}\openvpn.exe"
|
|
| 223 | 223 |
|
| 224 | 224 |
SectionEnd |
| 225 | 225 |
|
| ... | ... |
@@ -251,7 +251,7 @@ Section "OpenVPN Service" SecService |
| 251 | 251 |
SetOverwrite on |
| 252 | 252 |
|
| 253 | 253 |
SetOutPath "$INSTDIR\bin" |
| 254 |
- File "${HOME}\service-win32\openvpnserv.exe"
|
|
| 254 |
+ File "${BIN}\openvpnserv.exe"
|
|
| 255 | 255 |
|
| 256 | 256 |
SetOutPath "$INSTDIR\config" |
| 257 | 257 |
|
| ... | ... |
@@ -324,12 +324,12 @@ Section "TAP-Win32 Virtual Ethernet Adapter" SecTAP |
| 324 | 324 |
|
| 325 | 325 |
SetOutPath "$INSTDIR\bin" |
| 326 | 326 |
|
| 327 |
- File "${BIN}\ti3790-amd64\tapinstall.exe"
|
|
| 327 |
+ File "${BIN}\tapinstall\amd64\tapinstall.exe"
|
|
| 328 | 328 |
|
| 329 | 329 |
SetOutPath "$INSTDIR\driver" |
| 330 | 330 |
|
| 331 |
- File "${HOME}\tap-win32\amd64\OemWin2k.inf"
|
|
| 332 |
- File "${HOME}\tap-win32\amd64\${TAPDRV}"
|
|
| 331 |
+ File "${BIN}\driver\amd64\OemWin2k.inf"
|
|
| 332 |
+ File "${BIN}\driver\amd64\${TAPDRV}"
|
|
| 333 | 333 |
|
| 334 | 334 |
goto tapend |
| 335 | 335 |
|
| ... | ... |
@@ -338,12 +338,12 @@ tap-32bit: |
| 338 | 338 |
DetailPrint "We are running on a 32-bit system." |
| 339 | 339 |
|
| 340 | 340 |
SetOutPath "$INSTDIR\bin" |
| 341 |
- File "${BIN}\ti3790-i386\tapinstall.exe"
|
|
| 341 |
+ File "${BIN}\tapinstall\i386\tapinstall.exe"
|
|
| 342 | 342 |
|
| 343 | 343 |
SetOutPath "$INSTDIR\driver" |
| 344 |
- File "${HOME}\tap-win32\i386\OemWin2k.inf"
|
|
| 345 |
- File "${HOME}\tap-win32\i386\tap.cat"
|
|
| 346 |
- File "${HOME}\tap-win32\i386\${TAPDRV}"
|
|
| 344 |
+ File "${BIN}\driver\i386\OemWin2k.inf"
|
|
| 345 |
+ File "${BIN}\driver\i386\tap.cat"
|
|
| 346 |
+ File "${BIN}\driver\i386\${TAPDRV}"
|
|
| 347 | 347 |
|
| 348 | 348 |
tapend: |
| 349 | 349 |
|
| ... | ... |
@@ -467,7 +467,7 @@ Section -post |
| 467 | 467 |
SetOutPath $INSTDIR |
| 468 | 468 |
File "${HOME}\install-win32\INSTALL-win32.txt"
|
| 469 | 469 |
File "${HOME}\install-win32\license.txt"
|
| 470 |
- File "${HOME}\install-win32\openvpn.ico"
|
|
| 470 |
+ File "${HOME}\images\openvpn.ico"
|
|
| 471 | 471 |
|
| 472 | 472 |
; Create file association if requested |
| 473 | 473 |
SectionGetFlags ${SecFileAssociation} $R0
|
| ... | ... |
@@ -39,3 +39,13 @@ cd service-win32 |
| 39 | 39 |
cp service.c service.c.orig |
| 40 | 40 |
cp service.h service.h.orig |
| 41 | 41 |
$PATCH <service.patch |
| 42 |
+ |
|
| 43 |
+# build license file |
|
| 44 |
+cd $c |
|
| 45 |
+cat COPYING COPYRIGHT.GPL >install-win32/license.txt |
|
| 46 |
+ |
|
| 47 |
+# copy sample configuration files and docs |
|
| 48 |
+cp sample-config-files/client.conf install-win32/client.ovpn |
|
| 49 |
+cp sample-config-files/server.conf install-win32/server.ovpn |
|
| 50 |
+cp easy-rsa/1.0/openssl.cnf install-win32/openssl.cnf.sample |
|
| 51 |
+cp INSTALL-win32.txt install-win32 |