]> andersk Git - gssapi-openssh.git/blame - nmi/testscript
use gcc-3.4.3 on sun4u_sol_5.9
[gssapi-openssh.git] / nmi / testscript
CommitLineData
365b751e 1#!/bin/sh
2set -e # exit on any error
aca9cef6 3if test "$NMI_PLATFORM" = "ia64_sles_9" -o \
4 "$NMI_PLATFORM" = "sun4u_sol_5.9"; then
5 GT_INSTALLER=gt4.0.4-all-source-installer.tar.gz
6 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/src/$GT_INSTALLER
7else
8 GT_INSTALLER=gt4.0.4-$NMI_PLATFORM-installer.tar.gz
9 GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/bin/$GT_INSTALLER
10fi
365b751e 11GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
753b352b 12ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
365b751e 13LOGNAME=$USER
14X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
15export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
16(
17echo ==================================================
18echo Environment variables:
19env
20echo ==================================================
21echo Directory contents:
22ls -Rl
23echo ==================================================
24echo PATHs:
25echo `which wget`
26echo `which curl`
27echo `which ncftpget`
28echo `which ftp`
29echo ==================================================
30echo Installing Globus Toolkit...
31if test -x `which wget`; then
32 wget $GT_INSTALLER_URL
33else
34 curl $GT_INSTALLER_URL > $GT_INSTALLER
35fi
36tar xfz $GT_INSTALLER
37cd gt*-installer
38./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
39make gsi-openssh install
40. $GLOBUS_LOCATION/etc/globus-user-env.sh
753b352b 41cd ..
42echo ==================================================
0cc09122 43if test -d /prereq/zlib-1.2.3; then
64136537 44 ZLIB_LOCATION=/prereq/zlib-1.2.3
0cc09122 45 echo zlib found in $ZLIB_LOCATION
46else
47 echo Building zlib-1.2.3...
48 cd zlib-1.2.3
49 ./configure --prefix=$ZLIB_LOCATION
50 make
51 make install
52 cd ..
53fi
365b751e 54echo ==================================================
76076a35 55GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
56export GLOBUS_FLAVOR_NAME
57echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
58gpt-build -nosrc $GLOBUS_FLAVOR_NAME
76076a35 59if test -f gsi_openssh_bundle-*.tar.gz; then
67b4c7ad 60 echo ==================================================
76076a35 61 echo Building GSI-OpenSSH GPT bundle...
62 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
63 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
64fi
65if test -d openssh; then
67b4c7ad 66 echo ==================================================
67 echo Installing autotools...
68 cd autotools
69 ./install-autotools $GLOBUS_LOCATION
70 cd ..
71 echo ==================================================
76076a35 72 cd openssh
bf43e758 73 if test -f make_gpt_dist; then
74 echo Building GSI-OpenSSH GPT package from CVS...
75 ./make_gpt_dist
4bb44ab4 76 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
bf43e758 77 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
78 else
79 echo Building GSI-OpenSSH from CVS trunk...
80 autoreconf
81 ./configure --prefix=$GLOBUS_LOCATION \
82 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
83 --with-zlib=$ZLIB_LOCATION \
84 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
85 make install
86 fi
76076a35 87fi
365b751e 88) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.06334 seconds and 5 git commands to generate.