2 set -e # exit on any error
3 if test "$NMI_PLATFORM" = "ia64_sles_9"; then
4 GT_INSTALLER=gt4.0.3-all-source-installer.tar.gz
5 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.3/installers/src/$GT_INSTALLER
7 GT_INSTALLER=gt4.0.3-$NMI_PLATFORM-installer.tar.gz
8 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.3/installers/bin/$GT_INSTALLER
10 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
11 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
13 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
14 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
16 echo ==================================================
17 echo Environment variables:
19 echo ==================================================
20 echo Directory contents:
22 echo ==================================================
28 echo ==================================================
29 echo Installing Globus Toolkit...
30 if test -x `which wget`; then
31 wget $GT_INSTALLER_URL
33 curl $GT_INSTALLER_URL > $GT_INSTALLER
37 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
38 make gsi-openssh install
39 . $GLOBUS_LOCATION/etc/globus-user-env.sh
41 echo ==================================================
42 echo Building zlib-1.2.3...
44 ./configure --prefix=$ZLIB_LOCATION
48 echo ==================================================
49 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
50 export GLOBUS_FLAVOR_NAME
51 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
52 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
53 if test -f gsi_openssh_bundle-*.tar.gz; then
54 echo ==================================================
55 echo Building GSI-OpenSSH GPT bundle...
56 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
57 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
59 if test -d openssh; then
60 echo ==================================================
61 echo Installing autotools...
63 ./install-autotools $GLOBUS_LOCATION
65 echo ==================================================
66 echo Building GSI-OpenSSH from CVS...
69 ./configure --prefix=$GLOBUS_LOCATION \
70 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
71 --with-zlib=$ZLIB_LOCATION \
72 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
75 ) 2>&1 # we want stdout & stderr mixed in the output file