]> andersk Git - gssapi-openssh.git/blobdiff - nmi/testscript
when building from GPT branch, make a GPT package and test it with
[gssapi-openssh.git] / nmi / testscript
index 5b0dd5780b0028f6422a71ace1ce800b77655bdd..9898d9a64cd0b7f8de7346a8768d34221ea5f71b 100755 (executable)
@@ -8,6 +8,7 @@ else
   GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.3/installers/bin/$GT_INSTALLER
 fi
 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
+ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
 LOGNAME=$USER
 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
@@ -36,12 +37,46 @@ cd gt*-installer
 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
 make gsi-openssh install
 . $GLOBUS_LOCATION/etc/globus-user-env.sh
+cd ..
 echo ==================================================
-flavor=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
-echo GPT flavor is $flavor.  Installing globus_core.
-gpt-build -nosrc $flavor
-echo ==================================================
-echo Building GSI-OpenSSH...
+echo Building zlib-1.2.3...
+cd zlib-1.2.3
+./configure --prefix=$ZLIB_LOCATION
+make
+make install
 cd ..
-gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $flavor
+echo ==================================================
+GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
+export GLOBUS_FLAVOR_NAME
+echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.  Installing globus_core.
+gpt-build -nosrc $GLOBUS_FLAVOR_NAME
+if test -f gsi_openssh_bundle-*.tar.gz; then
+  echo ==================================================
+  echo Building GSI-OpenSSH GPT bundle...
+  gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
+    GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
+fi
+if test -d openssh; then
+  echo ==================================================
+  echo Installing autotools...
+  cd autotools
+  ./install-autotools $GLOBUS_LOCATION
+  cd ..
+  echo ==================================================
+  cd openssh
+  if test -f make_gpt_dist; then
+    echo Building GSI-OpenSSH GPT package from CVS...
+    ./make_gpt_dist
+    gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
+      GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
+  else
+    echo Building GSI-OpenSSH from CVS trunk...
+    autoreconf
+    ./configure --prefix=$GLOBUS_LOCATION \
+      --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
+      --with-zlib=$ZLIB_LOCATION \
+      --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
+    make install
+  fi
+fi
 ) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.134419 seconds and 4 git commands to generate.