2 set -e # exit on any error
3 GT_INSTALLER=gt4.0.4-$NMI_PLATFORM-installer.tar.gz
4 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/bin/$GT_INSTALLER
5 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
6 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
8 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
9 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
11 echo ==================================================
12 echo Environment variables:
14 echo ==================================================
15 echo Directory contents:
17 echo ==================================================
23 echo ==================================================
24 echo Installing Globus Toolkit...
25 if test -x `which wget`; then
26 wget $GT_INSTALLER_URL
28 curl $GT_INSTALLER_URL > $GT_INSTALLER
32 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
33 make gsi-openssh install
34 . $GLOBUS_LOCATION/etc/globus-user-env.sh
36 echo ==================================================
37 if test -d /prereq/zlib-1.2.3; then
38 ZLIB_LOCATION=/prereq/zlib-1.2.3
39 echo zlib found in $ZLIB_LOCATION
41 echo Building zlib-1.2.3...
43 ./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 ==================================================
67 if test -f make_gpt_dist; then
68 echo Building GSI-OpenSSH GPT package from CVS...
70 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
71 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
73 echo Building GSI-OpenSSH from CVS trunk...
75 ./configure --prefix=$GLOBUS_LOCATION \
76 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
77 --with-zlib=$ZLIB_LOCATION \
78 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
82 ) 2>&1 # we want stdout & stderr mixed in the output file