]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added optional files SAMPCONF_CONF2 (second sample configuration
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 24 Oct 2008 06:04:34 +0000 (06:04 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 24 Oct 2008 06:04:34 +0000 (06:04 +0000)
file) and SAMPCONF_DH (Diffie-Helman parameters) to Windows
build system, and may be defined in settings.in.

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

install-win32/maketext
install-win32/openvpn.nsi

index a66715ce794001773855cd4080a037170f133d42..5aed4eabd6dae1337ffeb319163c5d74ec7f3d8a 100644 (file)
@@ -45,9 +45,11 @@ if [ -n "$SAMPCONF_DIR" ]; then
     c=$GENOUT/conf
     mkdir -p $c &>/dev/null
     test -n "$SAMPCONF_CONF" && cp "../$SAMPCONF_DIR/$SAMPCONF_CONF" $c
+    test -n "$SAMPCONF_CONF2" && cp "../$SAMPCONF_DIR/$SAMPCONF_CONF2" $c
     test -n "$SAMPCONF_P12" && cp "../$SAMPCONF_DIR/$SAMPCONF_P12" $c
     test -n "$SAMPCONF_TA" && cp "../$SAMPCONF_DIR/$SAMPCONF_TA" $c
     test -n "$SAMPCONF_CA" && cp "../$SAMPCONF_DIR/$SAMPCONF_CA" $c
     test -n "$SAMPCONF_CRT" && cp "../$SAMPCONF_DIR/$SAMPCONF_CRT" $c
     test -n "$SAMPCONF_KEY" && cp "../$SAMPCONF_DIR/$SAMPCONF_KEY" $c
+    test -n "$SAMPCONF_DH" && cp "../$SAMPCONF_DIR/$SAMPCONF_DH" $c
 fi
index 0c25d50221207defb0c7a5db178b30a32a7fedea..c33439e3d30ae27481804d14be8ef1a0583ca0a9 100755 (executable)
@@ -505,6 +505,9 @@ Section -post
   !ifdef SAMPCONF_CONF
     File "${GEN}\conf\${SAMPCONF_CONF}"
   !endif
+  !ifdef SAMPCONF_CONF2
+    File "${GEN}\conf\${SAMPCONF_CONF2}"
+  !endif
   !ifdef SAMPCONF_P12
     File "${GEN}\conf\${SAMPCONF_P12}"
   !endif
@@ -520,6 +523,9 @@ Section -post
   !ifdef SAMPCONF_KEY
     File "${GEN}\conf\${SAMPCONF_KEY}"
   !endif
+  !ifdef SAMPCONF_DH
+    File "${GEN}\conf\${SAMPCONF_DH}"
+  !endif
   !endif
 
   ;
@@ -762,6 +768,9 @@ Section "Uninstall"
   !ifdef SAMPCONF_CONF
     Delete "$INSTDIR\config\${SAMPCONF_CONF}"
   !endif
+  !ifdef SAMPCONF_CONF2
+    Delete "$INSTDIR\config\${SAMPCONF_CONF2}"
+  !endif
   !ifdef SAMPCONF_P12
     Delete "$INSTDIR\config\${SAMPCONF_P12}"
   !endif
@@ -777,6 +786,9 @@ Section "Uninstall"
   !ifdef SAMPCONF_KEY
     Delete "$INSTDIR\config\${SAMPCONF_KEY}"
   !endif
+  !ifdef SAMPCONF_DH
+    Delete "$INSTDIR\config\${SAMPCONF_DH}"
+  !endif
   !endif
 
   !ifdef USE_GUI