]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Changes to Windows build system to make it easier to do
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 1 Feb 2008 10:13:59 +0000 (10:13 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 1 Feb 2008 10:13:59 +0000 (10:13 +0000)
partial builds, where only a subset of OpenVPN installer
components are built.  See ./domake-win comments.

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

19 files changed:
domake-win
install-win32/buildinstaller
install-win32/copyinstaller [deleted file]
install-win32/doclean [new file with mode: 0644]
install-win32/getgui
install-win32/getopenssl [new file with mode: 0644]
install-win32/getpkcs11helper [new file with mode: 0644]
install-win32/makebin [deleted file]
install-win32/makeopenvpn
install-win32/makeservice [new file with mode: 0644]
install-win32/maketap
install-win32/maketapinstall
install-win32/maketext [new file with mode: 0644]
install-win32/openvpn.nsi
install-win32/settings.in
install-win32/signinstaller [deleted file]
install-win32/signtap [deleted file]
install-win32/winconfig
version.m4

index 48eba55dd3a1a7258c305354ff94be1e8376bbf3..f27d6e77d52d2653e0a2d45d1a6f90d0bec9a8c9 100644 (file)
 #
 # ../svc-template -- This directory should contain service.[ch]
 #                    from the MS Platform SDK.
-#
-# Example usage:
-#
-# build everything, then write installer to desktop
-#  INSTALLER_DEST="/c/Documents and Settings/James/Desktop" ./domake-win
 
+# Note that all variables referenced here such as GENOUT and CLEAN
+# are defined in install-win32/settings.in
+
+# First build the autodefs directory, with C, sh, and NSIS versions
+# of global settings, using install-win32/settings.in as source.
+# These settings will then drive the rest of the build process. 
 install-win32/winconfig
+
+# Delete the GENOUT directory if CLEAN="yes"
+install-win32/doclean
+
+# Each of the scripts below build, get, and/or possibly sign a different
+# OpenVPN component, placing the generated files in GENOUT.  Each of these
+# steps is fully indepedent, and can be executed in any order or omitted.
+# The exception is the last script which gathers together all files from
+# GENOUT and build the installer.
+
+# Make the OpenVPN user-space component (openvpn.exe)
 install-win32/makeopenvpn
-install-win32/maketapinstall
+
+# Make the OpenVPN service
+install-win32/makeservice
+
+# Make the OpenVPN TAP driver
 install-win32/maketap
-install-win32/signtap
-install-win32/makebin
+
+# Make the tapinstall utility, used to install the TAP driver
+install-win32/maketapinstall
+
+# Get the OpenSSL libraries from a pre-build OpenSSL tree
+install-win32/getopenssl
+
+# Get the PKCS-11 helper library from a pre-built OpenSSL tree
+install-win32/getpkcs11helper
+
+# Get the OpenVPN GUI (must be prebuilt)
 install-win32/getgui
+
+# Produce the license text, install README, and sample config files
+install-win32/maketext
+
+# This final step builds the OpenVPN installer using generated
+# files from GENOUT
 install-win32/buildinstaller
-install-win32/signinstaller
-install-win32/copyinstaller
index fb8e968bedb4c67e5418fd6fc47a4d821574a5ee..d906edf42c19527d8232987b86ca0ab1ef75ed45 100644 (file)
@@ -1,8 +1,22 @@
 #!/bin/sh
 
-# build the installer
+# load version.nsi definitions
+. autodefs/defs.sh
 
+# build the installer
 cd install-win32
 rm -f *.exe
 '/c/Program Files/NSIS/makensis' openvpn.nsi &>makensis.log
 tail -20 makensis.log
+
+# copy the installer to GENOUT/install
+ls openvpn*.exe 2>/dev/null || exit 1
+i=`ls -t openvpn*.exe | head -n 1`
+cd ..
+mkdir $GENOUT/install &>/dev/null
+cp install-win32/$i $GENOUT/install
+
+# sign the installer
+if [ -d "$SIGNTOOL" ]; then
+    TARGET_EXE="$(pwd)/$GENOUT/install/$i" $SIGNTOOL/signexe
+fi
diff --git a/install-win32/copyinstaller b/install-win32/copyinstaller
deleted file mode 100644 (file)
index feecd13..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# copy the installer to the $INSTALLER_DEST directory.
-
-# load version.nsi definitions
-. autodefs/defs.sh
-
-if [ -n "$INSTALLER_DEST" ] ; then
-    cd install-win32
-    ls openvpn*.exe 2>/dev/null || exit 1
-    exe=install-win32/`ls -t openvpn*.exe | head -n 1`
-    cd ..
-    echo cp $exe "$INSTALLER_DEST"
-    cp $exe "$INSTALLER_DEST"
-fi
diff --git a/install-win32/doclean b/install-win32/doclean
new file mode 100644 (file)
index 0000000..c3a5c56
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+[ "$CLEAN" = "yes" ] && rm -rf $GENOUT
index 1419bc9a6455524944f0a8fa46c865bb1768c827..c7fd2bbe7395e86eae062adbffcc281824f83f6a 100644 (file)
@@ -2,19 +2,17 @@
 
 # Get and sign the OpenVPN GUI
 
-c=`pwd`
-
 # load version.nsi definitions
 . autodefs/defs.sh
 
 GUI="$OPENVPN_GUI_DIR/$OPENVPN_GUI"
 
 if [ -e "$GUI" ]; then
-    cp $GUI bin
+    mkdir -p $GENOUT/bin &>/dev/null    
+    cp $GUI $GENOUT/bin
     echo '!define OPENVPN_GUI_DEFINED' >autodefs/guidefs.nsi
     if [ -d "$SIGNTOOL" ]; then
-       export TARGET_EXE="bin/$OPENVPN_GUI"
-       $SIGNTOOL/signexe
+       TARGET_EXE="$GENOUT/bin/$OPENVPN_GUI" $SIGNTOOL/signexe
     fi
 else
     cat /dev/null >autodefs/guidefs.nsi
diff --git a/install-win32/getopenssl b/install-win32/getopenssl
new file mode 100644 (file)
index 0000000..b7d2629
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+# Get OpenSSL binaries
+if [ -d "$OPENSSL_DIR" ] ; then
+    mkdir -p $GENOUT/lib &>/dev/null    
+    mkdir -p $GENOUT/bin &>/dev/null    
+    for f in libeay32.dll libssl32.dll openssl.exe ; do
+       cp $OPENSSL_DIR/$f $GENOUT/lib
+       strip $GENOUT/lib/$f
+    done
+    mv $GENOUT/lib/openssl.exe $GENOUT/bin
+else
+    echo OpenSSL DIR $OPENSSL_DIR NOT FOUND
+fi
diff --git a/install-win32/getpkcs11helper b/install-win32/getpkcs11helper
new file mode 100644 (file)
index 0000000..7399c1b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+# Get PKCS11-helper libraries
+if [ -d "$PKCS11_HELPER_DIR" ] ; then
+    mkdir -p $GENOUT/lib &>/dev/null    
+    for f in libpkcs11-helper-1.dll ; do
+       cp $PKCS11_HELPER_DIR/bin/$f $GENOUT/lib
+       strip $GENOUT/lib/$f
+    done
+else
+    echo PKCS11-helper DIR $PKCS11_HELPER_DIR NOT FOUND
+fi
diff --git a/install-win32/makebin b/install-win32/makebin
deleted file mode 100644 (file)
index de99e74..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-# Assemble binaries into bin
-
-# get version.nsi definitions
-. autodefs/defs.sh
-
-rm -rf bin
-mkdir bin
-
-# Get OpenVPN executable
-cp $PRODUCT_UNIX_NAME.exe bin
-strip bin/$PRODUCT_UNIX_NAME.exe
-
-# Get OpenVPN service
-cp service-win32/${PRODUCT_UNIX_NAME}serv.exe bin
-strip bin/${PRODUCT_UNIX_NAME}serv.exe
-
-# Get OpenSSL binaries
-for f in libeay32.dll libssl32.dll openssl.exe ; do
-  cp $OPENSSL_DIR/$f bin
-  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
-    # Get TAP drivers
-    cp -a tap-win32/dist bin/driver
-
-    # Get tapinstall
-    mkdir bin/tapinstall
-    mkdir bin/tapinstall/i386
-    mkdir bin/tapinstall/amd64
-    cp tapinstall/objfre_w2k_x86/i386/tapinstall.exe bin/tapinstall/i386
-    cp tapinstall/objfre_wnet_amd64/amd64/tapinstall.exe bin/tapinstall/amd64
-else
-    cp -a $DRVBINSRC/driver bin/driver
-    cp -a $DRVBINSRC/tapinstall bin/tapinstall
-fi
-
-# $DRVBINDEST, if defined, points to a destination directory
-# where TAP driver and tapinstall.exe will be saved, to be used
-# as a $DRVBINSRC in future builds.
-if [ -n "$DRVBINDEST" ] ; then
-    rm -rf $DRVBINDEST
-    mkdir $DRVBINDEST
-    cp -a bin/driver $DRVBINDEST
-    cp -a bin/tapinstall $DRVBINDEST
-fi
index 48522e610b4d9f9f43d8a1e19fad766ea755ee93..31df6046f35cf81ea7f3ab6cc876c1d902b31801 100644 (file)
@@ -4,13 +4,10 @@
 . autodefs/defs.sh
 
 # build OpenVPN binary
-[ "$MAKE_CLEAN" = "yes" ] && make -f makefile.w32 clean
+[ "$CLEAN" = "yes" ] && make -f makefile.w32 clean
 make -f makefile.w32 -j $MAKE_JOBS
 
-# build OpenVPN service (openvpnserv.exe)
-if [ -n "$SVC_TEMPLATE" ] ; then
-    cd service-win32
-    [ "$MAKE_CLEAN" = "yes" ] && make clean
-    make -j $MAKE_JOBS
-    cd ..
-fi
+# copy OpenVPN executable to GENOUT/bin
+mkdir -p $GENOUT/bin &>/dev/null
+cp $PRODUCT_UNIX_NAME.exe $GENOUT/bin
+strip $GENOUT/bin/$PRODUCT_UNIX_NAME.exe
diff --git a/install-win32/makeservice b/install-win32/makeservice
new file mode 100644 (file)
index 0000000..081ee0a
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+# build OpenVPN service (openvpnserv.exe)
+if [ -d "$SVC_TEMPLATE" ] ; then
+    # silly vista security theatre
+    PATCH="/tmp/p.exe"
+    cp `which patch` $PATCH
+
+    # build service sources
+    cp $SVC_TEMPLATE/service.[ch] service-win32
+    cd service-win32
+    cp service.c service.c.orig
+    cp service.h service.h.orig
+    $PATCH <service.patch
+
+    # compile/link
+    [ "$CLEAN" = "yes" ] && make clean
+    make -j $MAKE_JOBS
+    cd ..
+
+    # copy service to GENOUT/bin
+    mkdir $GENOUT/bin &>/dev/null
+    cp service-win32/${PRODUCT_UNIX_NAME}serv.exe $GENOUT/bin
+    strip $GENOUT/bin/${PRODUCT_UNIX_NAME}serv.exe
+else
+    echo OpenVPN service template directory $SVC_TEMPLATE NOT FOUND
+fi
index 7fe643c998b2abb86b9f236acf91008ca3c3ee71..ef9db134874b3affe6e18b43d58ea9b7a1a73c65 100644 (file)
@@ -6,9 +6,20 @@
 # get version.nsi definitions
 . autodefs/defs.sh
 
+if [ -d "/c/WINDDK/$DDKVER" ] ; then
+
 # common declarations for all DDK build targets
 . install-win32/ddk-common
 
+# configure tap driver sources
+MACRO="perl install-win32/macro.pl autodefs/defs.in"
+IFDEF="perl install-win32/ifdef.pl"
+rm -rf tap-win32/amd64
+mkdir tap-win32/amd64
+$MACRO <tap-win32/SOURCES.in >tap-win32/SOURCES
+$MACRO <tap-win32/i386/OemWin2k.inf.in | $IFDEF >tap-win32/i386/OemWin2k.inf
+$MACRO <tap-win32/i386/OemWin2k.inf.in | $IFDEF -DAMD64 >tap-win32/amd64/OemWin2k.inf
+
 if [ -n "$PRODUCT_TAP_DEBUG" ] ; then
     w2ktarget="w2k c"
     amdtarget="chk $x64_tag WNET"
@@ -57,4 +68,33 @@ if [ -z "$DRVBINSRC" ] ; then
     out="TAP driver catalog file is undefined";
     echo "$out" >$x86/$PRODUCT_TAP_ID.cat
     echo "$out" >$x64/$PRODUCT_TAP_ID.cat
+    cd ..
+fi
+
+# $DRVBINSRC, if defined, points to prebuilt TAP driver and
+# tapinstall.exe.
+mkdir $GENOUT &>/dev/null
+rm -rf $GENOUT/driver
+if [ -z "$DRVBINSRC" ] ; then
+    # Get TAP drivers
+    cp -a tap-win32/dist $GENOUT/driver
+
+    # Sign TAP drivers
+    if [ -d "$SIGNTOOL" ]; then
+       $SIGNTOOL/signtap
+    fi
+else
+    cp -a $DRVBINSRC/driver $GENOUT/driver
+fi
+
+# $DRVBINDEST, if defined, points to a destination directory
+# where TAP driver and tapinstall.exe will be saved, to be used
+# as a $DRVBINSRC in future builds.
+if [ -n "$DRVBINDEST" ] ; then
+    mkdir $DRVBINDEST &>/dev/null
+    cp -a $GENOUT/driver $DRVBINDEST
+fi
+
+else
+    echo Not building TAP driver -- DDK version $DDKVER NOT INSTALLED
 fi
index 8b06a992a7d198f4ed687b27e49ec2759eda24a2..a5aaf478f0915764a9a525ca0bbdb0a77422b42e 100644 (file)
@@ -8,6 +8,8 @@
 # get version.nsi definitions
 . autodefs/defs.sh
 
+if [ -d "/c/WINDDK/$DDKVER" ] ; then
+
 if ! [ -d "$TISRC" ] ; then
     echo "$TISRC" NOT INSTALLED
     exit 1
@@ -46,4 +48,30 @@ if [ -n "$TI_BIN_AMD64" ]; then
     cp "$TI_BIN_AMD64" $t/objfre_wnet_amd64/amd64
 fi
 
+# $DRVBINSRC, if defined, points to prebuilt TAP driver and
+# tapinstall.exe.
+if [ -z "$DRVBINSRC" ] ; then
+    # Get tapinstall
+    mkdir -p $GENOUT/tapinstall/i386 &>/dev/null
+    mkdir -p $GENOUT/tapinstall/amd64 &>/dev/null
+    cp tapinstall/objfre_w2k_x86/i386/tapinstall.exe $GENOUT/tapinstall/i386
+    cp tapinstall/objfre_wnet_amd64/amd64/tapinstall.exe $GENOUT/tapinstall/amd64
+else
+    mkdir $GENOUT &>/dev/null
+    cp -a $DRVBINSRC/tapinstall $GENOUT/tapinstall
+fi
+
+# $DRVBINDEST, if defined, points to a destination directory
+# where TAP driver and tapinstall.exe will be saved, to be used
+# as a $DRVBINSRC in future builds.
+if [ -n "$DRVBINDEST" ] ; then
+    mkdir $DRVBINDEST &>/dev/null
+    cp -a $GENOUT/driver $DRVBINDEST
+    cp -a $GENOUT/tapinstall $DRVBINDEST
+fi
+
 title openvpn-build &>/dev/null
+
+else
+    echo Not building tapinstall -- DDK version $DDKVER NOT INSTALLED
+fi
diff --git a/install-win32/maketext b/install-win32/maketext
new file mode 100644 (file)
index 0000000..9766d20
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# get version.nsi definitions
+. autodefs/defs.sh
+
+mkdir -p $GENOUT/text &>/dev/null
+
+# build license file
+cat COPYING COPYRIGHT.GPL >$GENOUT/text/license.txt
+
+# copy install file
+cp INSTALL-win32.txt $GENOUT/text/install-win32.txt
+
+# copy sample configuration files and docs
+s=$GENOUT/samples
+mkdir -p $s &>/dev/null
+cp sample-config-files/client.conf $s/client.$PRODUCT_FILE_EXT
+cp sample-config-files/server.conf $s/server.$PRODUCT_FILE_EXT
+cp install-win32/sample.ovpn $s/sample.$PRODUCT_FILE_EXT
+cp easy-rsa/1.0/openssl.cnf $s/openssl.cnf.sample
index 37fa0ca58b9c6da8b04c4bbabcd98f30cffb870e..e80482d66b9fcd3bc1447d91b531d21ab5294a4a 100755 (executable)
@@ -15,7 +15,9 @@
 !include "setpath.nsi"
 !include "GetWindowsVersion.nsi"
 
-!define BIN "${HOME}\bin"
+!define GEN "${HOME}\${GENOUT}"
+!define BIN "${GEN}\bin"
+!define LIB "${GEN}\lib"
 
 !define PRODUCT_ICON "icon.ico"
 
@@ -75,7 +77,7 @@
   !define MUI_UNFINISHPAGE_NOAUTOCLOSE
 
   !insertmacro MUI_PAGE_WELCOME
-  !insertmacro MUI_PAGE_LICENSE "${HOME}\install-win32\license.txt"
+  !insertmacro MUI_PAGE_LICENSE "${GEN}\text\license.txt"
   !insertmacro MUI_PAGE_COMPONENTS
   !insertmacro MUI_PAGE_DIRECTORY
   !insertmacro MUI_PAGE_INSTFILES
@@ -250,7 +252,7 @@ Section "${PRODUCT_NAME} RSA Certificate Management Scripts" SecOpenVPNEasyRSA
   SetOverwrite on
   SetOutPath "$INSTDIR\easy-rsa"
 
-  File "${HOME}\samples\openssl.cnf.sample"
+  File "${GEN}\samples\openssl.cnf.sample"
   File "${HOME}\easy-rsa\Windows\vars.bat.sample"
 
   File "${HOME}\easy-rsa\Windows\init-config.bat"
@@ -286,9 +288,9 @@ Section "${PRODUCT_NAME} Service" SecService
   FileClose $R0
 
   SetOutPath "$INSTDIR\sample-config"
-  File "${HOME}\samples\sample.${SERV_CONFIG_EXT}"
-  File "${HOME}\samples\client.${SERV_CONFIG_EXT}"
-  File "${HOME}\samples\server.${SERV_CONFIG_EXT}"
+  File "${GEN}\samples\sample.${SERV_CONFIG_EXT}"
+  File "${GEN}\samples\client.${SERV_CONFIG_EXT}"
+  File "${GEN}\samples\server.${SERV_CONFIG_EXT}"
 
   CreateDirectory "$INSTDIR\log"
   FileOpen $R0 "$INSTDIR\log\README.txt" w
@@ -305,8 +307,8 @@ Section "OpenSSL DLLs" SecOpenSSLDLLs
 
   SetOverwrite on
   SetOutPath "$INSTDIR\bin"
-  File "${BIN}\libeay32.dll"
-  File "${BIN}\libssl32.dll"
+  File "${LIB}\libeay32.dll"
+  File "${LIB}\libssl32.dll"
 
 SectionEnd
 
@@ -322,7 +324,7 @@ Section "PKCS#11 DLLs" SecPKCS11DLLs
 
   SetOverwrite on
   SetOutPath "$INSTDIR\bin"
-  File "${BIN}\libpkcs11-helper-1.dll"
+  File "${LIB}\libpkcs11-helper-1.dll"
 
 SectionEnd
 
@@ -354,13 +356,13 @@ Section "TAP-Win32 Virtual Ethernet Adapter" SecTAP
 
   SetOutPath "$INSTDIR\bin"
 
-  File "${BIN}\tapinstall\amd64\tapinstall.exe"
+  File "${GEN}\tapinstall\amd64\tapinstall.exe"
 
   SetOutPath "$INSTDIR\driver"
 
-  File "${BIN}\driver\amd64\OemWin2k.inf"
-  File "${BIN}\driver\amd64\${PRODUCT_TAP_ID}.cat"
-  File "${BIN}\driver\amd64\${TAPDRV}"
+  File "${GEN}\driver\amd64\OemWin2k.inf"
+  File "${GEN}\driver\amd64\${PRODUCT_TAP_ID}.cat"
+  File "${GEN}\driver\amd64\${TAPDRV}"
 
 goto tapend
 
@@ -369,12 +371,12 @@ tap-32bit:
   DetailPrint "We are running on a 32-bit system."
 
   SetOutPath "$INSTDIR\bin"
-  File "${BIN}\tapinstall\i386\tapinstall.exe"
+  File "${GEN}\tapinstall\i386\tapinstall.exe"
 
   SetOutPath "$INSTDIR\driver"
-  File "${BIN}\driver\i386\OemWin2k.inf"
-  File "${BIN}\driver\i386\${PRODUCT_TAP_ID}.cat"
-  File "${BIN}\driver\i386\${TAPDRV}"
+  File "${GEN}\driver\i386\OemWin2k.inf"
+  File "${GEN}\driver\i386\${PRODUCT_TAP_ID}.cat"
+  File "${GEN}\driver\i386\${TAPDRV}"
 
   tapend:
 
@@ -497,8 +499,8 @@ Section -post
   ; Store README, license, icon
   SetOverwrite on
   SetOutPath $INSTDIR
-  File "${HOME}\install-win32\INSTALL-win32.txt"
-  File "${HOME}\install-win32\license.txt"
+  File "${GEN}\text\INSTALL-win32.txt"
+  File "${GEN}\text\license.txt"
   File "${HOME}\images\${PRODUCT_ICON}"
 
   ; store sample config files
index 5be27a41116f3a38f37b7cd2c1e56ed3ab9954ca..ce9ee356cc1a5f8486602f0e243bc4b2f7be8ea3 100644 (file)
 !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
-# be undefined.
-;!define DRVBINDEST "../tapbin"
-
-# Don't build TAP driver and tapinstall.exe -- instead get
-# them as prebuilt binaries from this directory.  May be
-# undefined.
-;!define DRVBINSRC  "../tapbin"
-
 # tapinstall.exe source code.
 # Not needed if DRVBINSRC is defined.
 !define TISRC  "../tapinstall"
 # -j parameter passed to make
 !define MAKE_JOBS 2
 
-# do a make clean before make
-!define MAKE_CLEAN "yes"
+# output directory for built binaries
+# and other generated files
+!define GENOUT "gen"
+
+# delete GENOUT directory before starting
+# set to "yes" or "no"
+!define CLEAN "yes"
 
 ; DEBUGGING -- set to something like "-DBG2"
 !define OUTFILE_LABEL ""
diff --git a/install-win32/signinstaller b/install-win32/signinstaller
deleted file mode 100644 (file)
index a802360..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Sign the installer.
-
-c=`pwd`
-
-# load version.nsi definitions
-. autodefs/defs.sh
-
-if [ -d "$SIGNTOOL" ]; then
-    cd install-win32
-    ls *.exe 2>/dev/null || exit 1
-    export TARGET_EXE=$(pwd)/$(ls -t *.exe | head -n 1)
-    cd $c
-    $SIGNTOOL/signexe
-fi
diff --git a/install-win32/signtap b/install-win32/signtap
deleted file mode 100644 (file)
index 148bbf0..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# Sign the TAP driver.
-
-# load version.nsi definitions
-. autodefs/defs.sh
-
-if [ -d "$SIGNTOOL" ]; then
-    $SIGNTOOL/signtap
-fi
index 5f823a2cf3d67da2f4f6dc7781d93998c6f1a1f6..9beaca38334ea2c0f347328a3af7234c3e4eeac1 100644 (file)
@@ -3,54 +3,13 @@
 # prepare files for building on Windows
 # run from top directory: install-win32/winconfig
 
-c=`pwd`
-
 rm -rf autodefs
 mkdir autodefs
 
-MACRO="perl install-win32/macro.pl autodefs/defs.in"
-IFDEF="perl install-win32/ifdef.pl"
-
-# silly vista security theatre
-PATCH="/tmp/p.exe"
-cp `which patch` $PATCH
-
 # build multi-grammar definition files
 perl install-win32/m4todef.pl <version.m4 >autodefs/version.in
 for g in "h" "sh" "nsi" "in" ; do
     perl install-win32/trans.pl $g install-win32/settings.in >autodefs/defs.$g
 done
 
-# load sh definitions
-. autodefs/defs.sh
-
-# configure tap driver sources
-rm -rf tap-win32/amd64
-mkdir tap-win32/amd64
-$MACRO <tap-win32/SOURCES.in >tap-win32/SOURCES
-$MACRO <tap-win32/i386/OemWin2k.inf.in | $IFDEF >tap-win32/i386/OemWin2k.inf
-$MACRO <tap-win32/i386/OemWin2k.inf.in | $IFDEF -DAMD64 >tap-win32/amd64/OemWin2k.inf
-
-# configure service
-if [ -n "$SVC_TEMPLATE" ] ; then
-    cd $c
-    cp $SVC_TEMPLATE/service.[ch] service-win32
-    cd service-win32
-    cp service.c service.c.orig
-    cp service.h service.h.orig
-    $PATCH <service.patch
-fi
-
-# build license file
-cd $c
-cat COPYING COPYRIGHT.GPL >install-win32/license.txt
-
-# copy sample configuration files and docs
-s=samples
-rm -rf $s
-mkdir $s
-cp sample-config-files/client.conf $s/client.$PRODUCT_FILE_EXT
-cp sample-config-files/server.conf $s/server.$PRODUCT_FILE_EXT
-cp install-win32/sample.ovpn $s/sample.$PRODUCT_FILE_EXT
-cp easy-rsa/1.0/openssl.cnf $s/openssl.cnf.sample
-cp INSTALL-win32.txt install-win32
+cat /dev/null >autodefs/guidefs.nsi
index d6614dfe7d5ad49565bbea3f9c04fb0e00aae375..1a2e46700a53eb2575ab77c5ab9cef1c6d38a8fb 100644 (file)
@@ -1,2 +1,2 @@
 dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1_rc7])
+define(PRODUCT_VERSION,[2.1_rc7a])