]>
Commit | Line | Data |
---|---|---|
365b751e | 1 | #!/bin/sh |
2 | set -e # exit on any error | |
365b751e | 3 | GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus |
753b352b | 4 | ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib |
365b751e | 5 | LOGNAME=$USER |
6 | X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates | |
7 | export GLOBUS_LOCATION LOGNAME X509_CERT_DIR | |
8 | ( | |
9 | echo ================================================== | |
10 | echo Environment variables: | |
11 | env | |
12 | echo ================================================== | |
13 | echo Directory contents: | |
14 | ls -Rl | |
15 | echo ================================================== | |
9de400ec | 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 | |
19 | else | |
20 | echo Building zlib-1.2.3... | |
21 | cd zlib-1.2.3 | |
22 | ./configure --prefix=$ZLIB_LOCATION | |
23 | make | |
24 | make install | |
25 | cd .. | |
26 | fi | |
27 | echo ================================================== | |
365b751e | 28 | echo Installing Globus Toolkit... |
c9cb0998 | 29 | tar xfz gt*-all-source-installer.tar.gz |
365b751e | 30 | cd gt*-installer |
d9a9e62e | 31 | ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \ |
32 | --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION" | |
365b751e | 33 | make gsi-openssh install |
34 | . $GLOBUS_LOCATION/etc/globus-user-env.sh | |
753b352b | 35 | cd .. |
36 | echo ================================================== | |
76076a35 | 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 | |
76076a35 | 41 | if test -f gsi_openssh_bundle-*.tar.gz; then |
67b4c7ad | 42 | echo ================================================== |
76076a35 | 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" | |
46 | fi | |
d4c3091b | 47 | if test -d gssapi-openssh/openssh; then |
67b4c7ad | 48 | echo ================================================== |
49 | echo Installing autotools... | |
50 | cd autotools | |
51 | ./install-autotools $GLOBUS_LOCATION | |
52 | cd .. | |
53 | echo ================================================== | |
e85b6034 | 54 | cd gssapi-openssh/openssh |
bf43e758 | 55 | if test -f make_gpt_dist; then |
56 | echo Building GSI-OpenSSH GPT package from CVS... | |
57 | ./make_gpt_dist | |
4bb44ab4 | 58 | gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \ |
bf43e758 | 59 | GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION" |
60 | else | |
61 | echo Building GSI-OpenSSH from CVS trunk... | |
62 | autoreconf | |
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 | |
67 | make install | |
68 | fi | |
e85b6034 | 69 | cd ../.. |
76076a35 | 70 | fi |
a0f58867 | 71 | if test -f nightly.tar.gz; then |
4d997295 | 72 | echo ================================================== |
73 | echo Installing GT CVS Trunk... | |
74 | GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk | |
a0f58867 | 75 | tar xfz nightly.tar.gz |
4d997295 | 76 | cd gtTRUNK-all-source-installer |
d9a9e62e | 77 | ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \ |
78 | --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION" | |
5977a973 | 79 | make gsi-openssh install |
4d997295 | 80 | . $GLOBUS_LOCATION/etc/globus-user-env.sh |
81 | cd .. | |
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" | |
91 | fi | |
d4c3091b | 92 | if test -d gssapi-openssh/openssh; then |
4d997295 | 93 | echo ================================================== |
94 | echo Installing autotools... | |
95 | cd autotools | |
96 | ./install-autotools $GLOBUS_LOCATION | |
97 | cd .. | |
98 | echo ================================================== | |
e85b6034 | 99 | cd gssapi-openssh/openssh |
4d997295 | 100 | if test -f make_gpt_dist; then |
101 | echo Building GSI-OpenSSH GPT package from CVS... | |
dc0640f6 | 102 | rm -rf BUILD |
4d997295 | 103 | gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \ |
104 | GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION" | |
105 | else | |
106 | echo Building GSI-OpenSSH from CVS trunk... | |
107 | autoreconf | |
108 | ./configure --prefix=$GLOBUS_LOCATION \ | |
109 | --with-globus-flavor=$GLOBUS_FLAVOR_NAME \ | |
110 | --with-zlib=$ZLIB_LOCATION \ | |
111 | --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty | |
112 | make clean | |
113 | make install | |
114 | fi | |
115 | fi | |
96423da5 | 116 | fi |
365b751e | 117 | ) 2>&1 # we want stdout & stderr mixed in the output file |