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 if test -d /prereq/zlib-1.2.3; then
31 ZLIB_LOCATION=/prereq/zlib-1.2.3
32 echo zlib found in $ZLIB_LOCATION
34 echo Building zlib-1.2.3...
36 ./configure --prefix=$ZLIB_LOCATION
41 echo ==================================================
42 echo Installing Globus Toolkit...
43 if test -x `which wget`; then
44 wget $GT_INSTALLER_URL
46 curl $GT_INSTALLER_URL > $GT_INSTALLER
50 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
51 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
52 make gsi-openssh install
53 . $GLOBUS_LOCATION/etc/globus-user-env.sh
55 echo ==================================================
56 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
57 export GLOBUS_FLAVOR_NAME
58 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
59 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
60 if test -f gsi_openssh_bundle-*.tar.gz; then
61 echo ==================================================
62 echo Building GSI-OpenSSH GPT bundle...
63 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
64 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
66 if test -d openssh; then
67 echo ==================================================
68 echo Installing autotools...
70 ./install-autotools $GLOBUS_LOCATION
72 echo ==================================================
74 if test -f make_gpt_dist; then
75 echo Building GSI-OpenSSH GPT package from CVS...
77 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
78 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
80 echo Building GSI-OpenSSH from CVS trunk...
82 ./configure --prefix=$GLOBUS_LOCATION \
83 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
84 --with-zlib=$ZLIB_LOCATION \
85 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
90 if test -f nightly.tar.gz; then
91 echo ==================================================
92 echo Installing GT CVS Trunk...
93 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
94 tar xfz nightly.tar.gz
95 cd gtTRUNK-all-source-installer
96 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
97 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
98 make gsi-openssh install
99 . $GLOBUS_LOCATION/etc/globus-user-env.sh
101 echo ==================================================
102 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
103 export GLOBUS_FLAVOR_NAME
104 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
105 if test -f gsi_openssh_bundle-*.tar.gz; then
106 echo ==================================================
107 echo Building GSI-OpenSSH GPT bundle...
108 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
109 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
111 if test -d openssh; then
112 echo ==================================================
113 echo Installing autotools...
115 ./install-autotools $GLOBUS_LOCATION
117 echo ==================================================
119 if test -f make_gpt_dist; then
120 echo Building GSI-OpenSSH GPT package from CVS...
121 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
122 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
124 echo Building GSI-OpenSSH from CVS trunk...
126 ./configure --prefix=$GLOBUS_LOCATION \
127 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
128 --with-zlib=$ZLIB_LOCATION \
129 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
135 ) 2>&1 # we want stdout & stderr mixed in the output file