]> andersk Git - gssapi-openssh.git/blame - nmi/testscript
set zlib location for GT builds
[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
d9a9e62e 38./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
39 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
365b751e 40make gsi-openssh install
41. $GLOBUS_LOCATION/etc/globus-user-env.sh
753b352b 42cd ..
43echo ==================================================
0cc09122 44if test -d /prereq/zlib-1.2.3; then
64136537 45 ZLIB_LOCATION=/prereq/zlib-1.2.3
0cc09122 46 echo zlib found in $ZLIB_LOCATION
47else
48 echo Building zlib-1.2.3...
49 cd zlib-1.2.3
50 ./configure --prefix=$ZLIB_LOCATION
51 make
52 make install
53 cd ..
54fi
365b751e 55echo ==================================================
76076a35 56GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
57export GLOBUS_FLAVOR_NAME
58echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
59gpt-build -nosrc $GLOBUS_FLAVOR_NAME
76076a35 60if test -f gsi_openssh_bundle-*.tar.gz; then
67b4c7ad 61 echo ==================================================
76076a35 62 echo Building GSI-OpenSSH GPT bundle...
63 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
64 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
65fi
66if test -d openssh; then
67b4c7ad 67 echo ==================================================
68 echo Installing autotools...
69 cd autotools
70 ./install-autotools $GLOBUS_LOCATION
71 cd ..
72 echo ==================================================
76076a35 73 cd openssh
bf43e758 74 if test -f make_gpt_dist; then
75 echo Building GSI-OpenSSH GPT package from CVS...
76 ./make_gpt_dist
4bb44ab4 77 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
bf43e758 78 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
79 else
80 echo Building GSI-OpenSSH from CVS trunk...
81 autoreconf
82 ./configure --prefix=$GLOBUS_LOCATION \
83 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
84 --with-zlib=$ZLIB_LOCATION \
85 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
86 make install
87 fi
21d5fecb 88 cd ..
76076a35 89fi
a0f58867 90if test -f nightly.tar.gz; then
4d997295 91 echo ==================================================
92 echo Installing GT CVS Trunk...
93 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
a0f58867 94 tar xfz nightly.tar.gz
4d997295 95 cd gtTRUNK-all-source-installer
d9a9e62e 96 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
97 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
4d997295 98 make gsi-openssh install
99 . $GLOBUS_LOCATION/etc/globus-user-env.sh
100 cd ..
101 echo ==================================================
102 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
103 export GLOBUS_FLAVOR_NAME
104 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
105 if test -f gsi_openssh_bundle-*.tar.gz; then
106 echo ==================================================
107 echo Building GSI-OpenSSH GPT bundle...
108 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
109 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
110 fi
111 if test -d openssh; then
112 echo ==================================================
113 echo Installing autotools...
114 cd autotools
115 ./install-autotools $GLOBUS_LOCATION
116 cd ..
117 echo ==================================================
118 cd openssh
119 if test -f make_gpt_dist; then
120 echo Building GSI-OpenSSH GPT package from CVS...
4d997295 121 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
122 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
123 else
124 echo Building GSI-OpenSSH from CVS trunk...
125 autoreconf
126 ./configure --prefix=$GLOBUS_LOCATION \
127 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
128 --with-zlib=$ZLIB_LOCATION \
129 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
130 make clean
131 make install
132 fi
133 fi
96423da5 134fi
365b751e 135) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.057448 seconds and 5 git commands to generate.