diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-03-06 07:15:25 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-03-06 07:15:25 +0000 |
commit | d6d79149fac10c4b96a14ebe35784a6241de953d (patch) | |
tree | 143f8154979590af337108e4f2f8a69060d8a224 /install-win32 | |
parent | Changes to Windows build environment, to allow straightforward building (diff) | |
download | openvpn-d6d79149fac10c4b96a14ebe35784a6241de953d.tar.xz |
Added service configuration to install-win32/winconfig
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1758 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | install-win32/version.nsi | 3 | ||||
-rw-r--r-- | install-win32/winconfig | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/install-win32/version.nsi b/install-win32/version.nsi index 7aeaca4..dad8a17 100644 --- a/install-win32/version.nsi +++ b/install-win32/version.nsi @@ -7,3 +7,6 @@ !define PRODUCT_TAP_MAJOR_VER 9 !define PRODUCT_TAP_MINOR_VER 2 !define PRODUCT_TAP_RELDATE "03/05/2007" + +; Service template files service.[ch] (get from Platform SDK) +!define SVC_TEMPLATE "../svc-template" diff --git a/install-win32/winconfig b/install-win32/winconfig index 01deebd..bd2632f 100644 --- a/install-win32/winconfig +++ b/install-win32/winconfig @@ -13,11 +13,17 @@ VER=install-win32/version.nsi MACRO="perl install-win32/macro.pl $HSV" PATCH="/tmp/p.exe" +# silly vista security theatre cp `which patch` $PATCH +# translate version.nsi to C and sh $TRAN c <$VER >autodefs/nsidefs.h $TRAN sh <$VER >autodefs/nsidefs.sh +# get version.nsi definitions +. autodefs/nsidefs.sh + +# configure tap driver sources $MACRO $VER <tap-win32/SOURCES.in >tap-win32/SOURCES $MACRO $VER <tap-win32/i386/OemWin2k.inf.in >tap-win32/i386/OemWin2k.inf rm -rf tap-win32/amd64 @@ -25,3 +31,11 @@ mkdir tap-win32/amd64 cp tap-win32/i386/OemWin2k.inf tap-win32/amd64 cd tap-win32/amd64 $PATCH <../inf64.patch + +# configure service +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 |