]> andersk Git - gssapi-openssh.git/blob - nmi/testscript
bug fix
[gssapi-openssh.git] / nmi / testscript
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 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
12 LOGNAME=$USER
13 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
14 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
15 (
16 echo ==================================================
17 echo Environment variables:
18 env
19 echo ==================================================
20 echo Directory contents:
21 ls -Rl
22 echo ==================================================
23 echo PATHs:
24 echo `which wget`
25 echo `which curl`
26 echo `which ncftpget`
27 echo `which ftp`
28 echo ==================================================
29 echo Installing Globus Toolkit...
30 if test -x `which wget`; then
31   wget $GT_INSTALLER_URL
32 else
33   curl $GT_INSTALLER_URL > $GT_INSTALLER
34 fi
35 tar xfz $GT_INSTALLER
36 cd gt*-installer
37 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
38 make gsi-openssh install
39 . $GLOBUS_LOCATION/etc/globus-user-env.sh
40 cd ..
41 echo ==================================================
42 if test -d /prereq/zlib-1.2.3; then
43   ZLIB_LOCATION=/prereq/zlib-1.2.3
44   echo zlib found in $ZLIB_LOCATION
45 else
46   echo Building zlib-1.2.3...
47   cd zlib-1.2.3
48   ./configure --prefix=$ZLIB_LOCATION
49   make
50   make install
51   cd ..
52 fi
53 echo ==================================================
54 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
55 export GLOBUS_FLAVOR_NAME
56 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.  Installing globus_core.
57 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
58 if test -f gsi_openssh_bundle-*.tar.gz; then
59   echo ==================================================
60   echo Building GSI-OpenSSH GPT bundle...
61   gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
62     GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
63 fi
64 if test -d openssh; then
65   echo ==================================================
66   echo Installing autotools...
67   cd autotools
68   ./install-autotools $GLOBUS_LOCATION
69   cd ..
70   echo ==================================================
71   cd openssh
72   if test -f make_gpt_dist; then
73     echo Building GSI-OpenSSH GPT package from CVS...
74     ./make_gpt_dist
75     gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
76       GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
77   else
78     echo Building GSI-OpenSSH from CVS trunk...
79     autoreconf
80     ./configure --prefix=$GLOBUS_LOCATION \
81       --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
82       --with-zlib=$ZLIB_LOCATION \
83       --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
84     make install
85   fi
86 fi
87 ) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.190194 seconds and 5 git commands to generate.