2 set -e # exit on any error
3 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
4 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
6 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
7 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
9 echo ==================================================
10 echo Environment variables:
12 echo ==================================================
13 echo Directory contents:
15 echo ==================================================
16 if test -d /prereq/zlib-1.2.3; then
17 ZLIB_LOCATION=/prereq/zlib-1.2.3
18 echo zlib found in $ZLIB_LOCATION
20 echo Building zlib-1.2.3...
22 ./configure --prefix=$ZLIB_LOCATION
27 echo ==================================================
28 echo Installing Globus Toolkit...
29 tar xfz gt*-all-source-installer.tar.gz
31 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
32 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
33 make gsi-openssh install
34 . $GLOBUS_LOCATION/etc/globus-user-env.sh
36 echo ==================================================
37 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
38 export GLOBUS_FLAVOR_NAME
39 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
40 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
41 if test -f gsi_openssh_bundle-*.tar.gz; then
42 echo ==================================================
43 echo Building GSI-OpenSSH GPT bundle...
44 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
45 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
47 if test -d openssh; then
48 echo ==================================================
49 echo Installing autotools...
51 ./install-autotools $GLOBUS_LOCATION
53 echo ==================================================
54 cd gssapi-openssh/openssh
55 if test -f make_gpt_dist; then
56 echo Building GSI-OpenSSH GPT package from CVS...
58 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
59 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
61 echo Building GSI-OpenSSH from CVS trunk...
63 ./configure --prefix=$GLOBUS_LOCATION \
64 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
65 --with-zlib=$ZLIB_LOCATION \
66 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
71 if test -f nightly.tar.gz; then
72 echo ==================================================
73 echo Installing GT CVS Trunk...
74 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
75 tar xfz nightly.tar.gz
76 cd gtTRUNK-all-source-installer
77 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
78 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
79 make gsi-openssh install
80 . $GLOBUS_LOCATION/etc/globus-user-env.sh
82 echo ==================================================
83 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
84 export GLOBUS_FLAVOR_NAME
85 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
86 if test -f gsi_openssh_bundle-*.tar.gz; then
87 echo ==================================================
88 echo Building GSI-OpenSSH GPT bundle...
89 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
90 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
92 if test -d openssh; then
93 echo ==================================================
94 echo Installing autotools...
96 ./install-autotools $GLOBUS_LOCATION
98 echo ==================================================
99 cd gssapi-openssh/openssh
100 if test -f make_gpt_dist; then
101 echo Building GSI-OpenSSH GPT package from CVS...
102 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
103 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
105 echo Building GSI-OpenSSH from CVS trunk...
107 ./configure --prefix=$GLOBUS_LOCATION \
108 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
109 --with-zlib=$ZLIB_LOCATION \
110 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
116 ) 2>&1 # we want stdout & stderr mixed in the output file