aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-06 09:40:31 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-03-06 09:40:31 +0000
commitaf897cabdcff349bcec55744db4e3208cbcddcf6 (patch)
tree04c2d24122fbc84b2eca4ad56873773af6927f17
parentAdded service configuration to install-win32/winconfig (diff)
downloadopenvpn-af897cabdcff349bcec55744db4e3208cbcddcf6.tar.xz
Added maketap and signtap scripts.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1759 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--install-win32/dosname.pl4
-rw-r--r--install-win32/maketap15
-rw-r--r--install-win32/signtap43
3 files changed, 62 insertions, 0 deletions
diff --git a/install-win32/dosname.pl b/install-win32/dosname.pl
new file mode 100644
index 0000000..c29d134
--- /dev/null
+++ b/install-win32/dosname.pl
@@ -0,0 +1,4 @@
+($unixname) = @ARGV;
+$unixname =~ s#^/c##g;
+$unixname =~ s#/#\\#g;
+print "$unixname\n";
diff --git a/install-win32/maketap b/install-win32/maketap
new file mode 100644
index 0000000..583c5e0
--- /dev/null
+++ b/install-win32/maketap
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Build the x86 and x64 versions of the TAP driver
+# Requires the Windows DDK
+
+DDKVER=3790
+
+cd tap-win32
+t=`pwd`
+cd ..
+
+for mode in "fre WNET" "fre AMD64 WNET"; do
+ echo '**********' build TAP $mode
+ cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
+done
diff --git a/install-win32/signtap b/install-win32/signtap
new file mode 100644
index 0000000..371a87e
--- /dev/null
+++ b/install-win32/signtap
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+# Sign the x86 and x64 versions of the TAP driver
+
+SIGN=../sign
+INF2CAT=../inf2cat
+
+c=`pwd`
+
+# copy driver files into tap-win32/dist
+cd tap-win32
+rm -rf dist
+mkdir dist
+cd dist
+mkdir i386
+mkdir amd64
+cd i386
+x86=`pwd`
+cd ../amd64
+x64=`pwd`
+cd ../..
+cp i386/OemWin2k.inf $x86
+cp i386/*.sys $x86
+cp amd64/OemWin2k.inf $x64
+cp amd64/*.sys $x64
+cd $c
+
+cd $INF2CAT
+
+echo '******************' BUILD .cat FILE for x86
+cmd //c "inf2cat /driver:`perl $c/install-win32/dosname.pl $x86` /os:2000,XP_X86,Server2003_X86,Vista_X86"
+
+echo '******************' BUILD .cat FILE for x64
+cmd //c "inf2cat /driver:`perl $c/install-win32/dosname.pl $x64` /os:XP_X64,Server2003_X64,Vista_X64"
+
+cd $c
+cd $SIGN
+
+TS="http://timestamp.verisign.com/scripts/timstamp.dll"
+echo '******************' SIGN .cat FILE for x86
+./signcode -spc mycredentials.spc -v myprivatekey.pvk -n "OpenVPN TAP-Win32 Driver" -t $TS `perl $c/install-win32/dosname.pl $x86/tap.cat`
+echo '******************' SIGN .cat FILE for x64
+./signcode -spc mycredentials.spc -v myprivatekey.pvk -n "OpenVPN TAP-Win64 Driver" -t $TS `perl $c/install-win32/dosname.pl $x64/tap.cat`