2 set -e # exit on any error
3 if test "$NMI_PLATFORM" = "ia64_sles_9" -o \
4 "$NMI_PLATFORM" = "sun4u_sol_5.9"; then
5 GT_INSTALLER=gt4.0.4-all-source-installer.tar.gz
6 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/src/$GT_INSTALLER
8 GT_INSTALLER=gt4.0.4-$NMI_PLATFORM-installer.tar.gz
9 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/bin/$GT_INSTALLER
11 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
12 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
14 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
15 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
17 echo ==================================================
18 echo Environment variables:
20 echo ==================================================
21 echo Directory contents:
23 echo ==================================================
29 echo ==================================================
30 echo Installing Globus Toolkit...
31 if test -x `which wget`; then
32 wget $GT_INSTALLER_URL
34 curl $GT_INSTALLER_URL > $GT_INSTALLER
38 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
39 make gsi-openssh install
40 . $GLOBUS_LOCATION/etc/globus-user-env.sh
42 echo ==================================================
43 if test -d /prereq/zlib-1.2.3; then
44 ZLIB_LOCATION=/prereq/zlib-1.2.3
45 echo zlib found in $ZLIB_LOCATION
47 echo Building zlib-1.2.3...
49 ./configure --prefix=$ZLIB_LOCATION
54 echo ==================================================
55 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
56 export GLOBUS_FLAVOR_NAME
57 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
58 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
59 if test -f gsi_openssh_bundle-*.tar.gz; then
60 echo ==================================================
61 echo Building GSI-OpenSSH GPT bundle...
62 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
63 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
65 if test -d openssh; then
66 echo ==================================================
67 echo Installing autotools...
69 ./install-autotools $GLOBUS_LOCATION
71 echo ==================================================
73 if test -f make_gpt_dist; then
74 echo Building GSI-OpenSSH GPT package from CVS...
76 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
77 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
79 echo Building GSI-OpenSSH from CVS trunk...
81 ./configure --prefix=$GLOBUS_LOCATION \
82 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
83 --with-zlib=$ZLIB_LOCATION \
84 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
88 ) 2>&1 # we want stdout & stderr mixed in the output file