]>
Commit | Line | Data |
---|---|---|
365b751e | 1 | #!/bin/sh |
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 | |
6 | else | |
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 | |
9 | fi | |
10 | GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus | |
11 | LOGNAME=$USER | |
12 | X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates | |
13 | export GLOBUS_LOCATION LOGNAME X509_CERT_DIR | |
14 | ( | |
15 | echo ================================================== | |
16 | echo Environment variables: | |
17 | env | |
18 | echo ================================================== | |
19 | echo Directory contents: | |
20 | ls -Rl | |
21 | echo ================================================== | |
22 | echo PATHs: | |
23 | echo `which wget` | |
24 | echo `which curl` | |
25 | echo `which ncftpget` | |
26 | echo `which ftp` | |
27 | echo ================================================== | |
28 | echo Installing Globus Toolkit... | |
29 | if test -x `which wget`; then | |
30 | wget $GT_INSTALLER_URL | |
31 | else | |
32 | curl $GT_INSTALLER_URL > $GT_INSTALLER | |
33 | fi | |
34 | tar xfz $GT_INSTALLER | |
35 | cd gt*-installer | |
36 | ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" | |
37 | make gsi-openssh install | |
38 | . $GLOBUS_LOCATION/etc/globus-user-env.sh | |
39 | echo ================================================== | |
40 | flavor=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1` | |
41 | echo GPT flavor is $flavor. Installing globus_core. | |
42 | gpt-build -nosrc $flavor | |
43 | echo ================================================== | |
44 | echo Building GSI-OpenSSH... | |
45 | cd .. | |
aa999670 | 46 | gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $flavor \ |
47 | GSI_OPENSSH_GPTMACRO="--with-zlib=/prereq/zlib-1.2.3" | |
365b751e | 48 | ) 2>&1 # we want stdout & stderr mixed in the output file |