X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/365b751e1767d3dbbe8940045e0a631477a44ba8..232692da08356bd706e108e677239a24a2c5f43b:/nmi/testscript diff --git a/nmi/testscript b/nmi/testscript index 5b0dd57..37b8a19 100755 --- a/nmi/testscript +++ b/nmi/testscript @@ -1,13 +1,15 @@ #!/bin/sh set -e # exit on any error -if test "$NMI_PLATFORM" = "ia64_sles_9"; then - GT_INSTALLER=gt4.0.3-all-source-installer.tar.gz - GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.3/installers/src/$GT_INSTALLER +if test "$NMI_PLATFORM" = "ia64_sles_9" -o \ + "$NMI_PLATFORM" = "sun4u_sol_5.9"; then + GT_INSTALLER=gt4.0.4-all-source-installer.tar.gz + GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/src/$GT_INSTALLER else - GT_INSTALLER=gt4.0.3-$NMI_PLATFORM-installer.tar.gz - GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.3/installers/bin/$GT_INSTALLER + GT_INSTALLER=gt4.0.4-$NMI_PLATFORM-installer.tar.gz + GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/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 @@ -25,6 +27,18 @@ echo `which curl` echo `which ncftpget` echo `which ftp` echo ================================================== +if test -d /prereq/zlib-1.2.3; then + ZLIB_LOCATION=/prereq/zlib-1.2.3 + echo zlib found in $ZLIB_LOCATION +else + echo Building zlib-1.2.3... + cd zlib-1.2.3 + ./configure --prefix=$ZLIB_LOCATION + make + make install + cd .. +fi +echo ================================================== echo Installing Globus Toolkit... if test -x `which wget`; then wget $GT_INSTALLER_URL @@ -33,15 +47,89 @@ else fi tar xfz $GT_INSTALLER cd gt*-installer -./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" +./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \ + --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION" make gsi-openssh install . $GLOBUS_LOCATION/etc/globus-user-env.sh -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... 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-*.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 + cd .. +fi +if test -f nightly.tar.gz; then + echo ================================================== + echo Installing GT CVS Trunk... + GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk + tar xfz nightly.tar.gz + cd gtTRUNK-all-source-installer + ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \ + --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION" + make gsi-openssh install + . $GLOBUS_LOCATION/etc/globus-user-env.sh + cd .. + 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. + 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... + gpt-build -force -verbose gsi_openssh-*.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 clean + make install + fi + fi +fi ) 2>&1 # we want stdout & stderr mixed in the output file