]> andersk Git - gssapi-openssh.git/blame - nmi/testscript
try testing from cvs now
[gssapi-openssh.git] / nmi / testscript
CommitLineData
365b751e 1#!/bin/sh
2set -e # exit on any error
3if 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
6else
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
9fi
10GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
753b352b 11ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
365b751e 12LOGNAME=$USER
13X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
14export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
15(
16echo ==================================================
17echo Environment variables:
18env
19echo ==================================================
20echo Directory contents:
21ls -Rl
22echo ==================================================
23echo PATHs:
24echo `which wget`
25echo `which curl`
26echo `which ncftpget`
27echo `which ftp`
28echo ==================================================
29echo Installing Globus Toolkit...
30if test -x `which wget`; then
31 wget $GT_INSTALLER_URL
32else
33 curl $GT_INSTALLER_URL > $GT_INSTALLER
34fi
35tar xfz $GT_INSTALLER
36cd gt*-installer
37./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
38make gsi-openssh install
39. $GLOBUS_LOCATION/etc/globus-user-env.sh
753b352b 40cd ..
41echo ==================================================
42echo Building zlib-1.2.3...
753b352b 43cd zlib-1.2.3
44./configure --prefix=$ZLIB_LOCATION
45make
46make install
6d372c71 47cd ..
365b751e 48echo ==================================================
76076a35 49GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
50export GLOBUS_FLAVOR_NAME
51echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
52gpt-build -nosrc $GLOBUS_FLAVOR_NAME
365b751e 53echo ==================================================
76076a35 54if test -f gsi_openssh_bundle-*.tar.gz; then
55 echo Building GSI-OpenSSH GPT bundle...
56 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
57 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
58fi
59if test -d openssh; then
60 echo Building GSI-OpenSSH from CVS...
61 cd openssh
62 make -f Makefile.in distprep
63 ./configure --prefix=$GLOBUS_LOCATION \
64 --with-globus-flavor=$GLOBUS_FLAVOR_NAME
65 make install
66fi
365b751e 67) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.247837 seconds and 5 git commands to generate.