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 if test -n "${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}"; then
10 PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib/pkgconfig"
11 OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
12 OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
13 OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib"
14 OPENSSL_LIBS="-lssl -lcrypto"
15 export PKG_CONFIG_PATH
16 export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
17 elif test -n "${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}"; then
18 PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib/pkgconfig"
19 OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
20 OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
21 OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib"
22 OPENSSL_LIBS="-lssl -lcrypto"
23 export PKG_CONFIG_PATH
24 export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
26 if test -n "${LD_LIBRARY_PATH}" -a -z "${LIBPATH}"; then
27 LIBPATH=$LD_LIBRARY_PATH
30 echo ==================================================
31 echo Environment variables:
33 echo ==================================================
34 echo Directory contents:
36 echo ==================================================
37 if test -d /prereq/zlib-1.2.3; then
38 ZLIB_LOCATION=/prereq/zlib-1.2.3
39 echo zlib found in $ZLIB_LOCATION
41 echo Building zlib-1.2.3...
43 ./configure --prefix=$ZLIB_LOCATION
48 echo ==================================================
49 echo Installing Globus Toolkit...
50 tar xfz gt*-all-source-installer.tar.gz
52 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
53 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
54 make gsi-openssh install
55 . $GLOBUS_LOCATION/etc/globus-user-env.sh
57 echo ==================================================
58 echo Environment variables:
60 echo ==================================================
61 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
62 export GLOBUS_FLAVOR_NAME
63 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
64 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
65 if test -f gsi_openssh_bundle-*.tar.gz; then
66 echo ==================================================
67 echo Building GSI-OpenSSH GPT bundle...
68 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
69 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
71 if test -d gssapi-openssh/openssh; then
72 echo ==================================================
73 echo Installing autotools...
75 ./install-autotools $GLOBUS_LOCATION
77 echo ==================================================
78 cd gssapi-openssh/openssh
79 if test -f make_gpt_dist; then
80 echo Building GSI-OpenSSH GPT package from CVS...
82 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
83 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
85 echo Building GSI-OpenSSH from CVS trunk...
87 ./configure --prefix=$GLOBUS_LOCATION \
88 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
89 --with-zlib=$ZLIB_LOCATION \
90 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
91 make install-nokeys # nonroot
96 if test -f nightly.tar.gz; then
97 echo ==================================================
98 echo Installing GT CVS Trunk...
99 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
100 tar xfz nightly.tar.gz
102 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
103 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
104 make gsi-openssh install
105 . $GLOBUS_LOCATION/etc/globus-user-env.sh
107 echo ==================================================
108 echo Environment variables:
110 echo ==================================================
111 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
112 export GLOBUS_FLAVOR_NAME
113 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
114 if test -f gsi_openssh_bundle-*.tar.gz; then
115 echo ==================================================
116 echo Building GSI-OpenSSH GPT bundle...
117 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
118 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
120 if test -d gssapi-openssh/openssh; then
121 echo ==================================================
122 echo Installing autotools...
124 ./install-autotools $GLOBUS_LOCATION
126 echo ==================================================
127 cd gssapi-openssh/openssh
128 if test -f make_gpt_dist; then
129 echo Building GSI-OpenSSH GPT package from CVS...
131 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
132 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
134 echo Building GSI-OpenSSH from CVS trunk...
136 ./configure --prefix=$GLOBUS_LOCATION \
137 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
138 --with-zlib=$ZLIB_LOCATION \
139 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
141 make install-nokeys # nonroot
145 ) 2>&1 # we want stdout & stderr mixed in the output file