export GLOBUS_FLAVOR_NAME
echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
gpt-build -nosrc $GLOBUS_FLAVOR_NAME
-echo ==================================================
if test -f gsi_openssh_bundle-*.tar.gz; then
+ echo ==================================================
echo Building GSI-OpenSSH GPT bundle...
gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
fi
if test -d openssh; then
- echo Building GSI-OpenSSH from CVS...
+ echo ==================================================
+ echo Installing autotools...
+ cd autotools
+ ./install-autotools $GLOBUS_LOCATION
+ cd ..
+ echo ==================================================
cd openssh
- make -f Makefile.in distprep
- ./configure --prefix=$GLOBUS_LOCATION \
- --with-globus-flavor=$GLOBUS_FLAVOR_NAME
- make install
+ if test -f make_gpt_dist; then
+ echo Building GSI-OpenSSH GPT package from CVS...
+ ./make_gpt_dist
+ gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
+ GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
+ else
+ echo Building GSI-OpenSSH from CVS trunk...
+ autoreconf
+ ./configure --prefix=$GLOBUS_LOCATION \
+ --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
+ --with-zlib=$ZLIB_LOCATION \
+ --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
+ make install
+ fi
fi
) 2>&1 # we want stdout & stderr mixed in the output file