]> andersk Git - gssapi-openssh.git/blame_incremental - nmi/testscript
build from latest GT stable source installer
[gssapi-openssh.git] / nmi / testscript
... / ...
CommitLineData
1#!/bin/sh
2set -e # exit on any error
3GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
4ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
5LOGNAME=$USER
6X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
7export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
8(
9echo ==================================================
10echo Environment variables:
11env
12echo ==================================================
13echo Directory contents:
14ls -Rl
15echo ==================================================
16if test -d /prereq/zlib-1.2.3; then
17 ZLIB_LOCATION=/prereq/zlib-1.2.3
18 echo zlib found in $ZLIB_LOCATION
19else
20 echo Building zlib-1.2.3...
21 cd zlib-1.2.3
22 ./configure --prefix=$ZLIB_LOCATION
23 make
24 make install
25 cd ..
26fi
27echo ==================================================
28echo Installing Globus Toolkit...
29tar xfj gt*-all-source-installer.tar.bz2
30cd gt*-installer
31./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
32 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
33make gsi-openssh install
34. $GLOBUS_LOCATION/etc/globus-user-env.sh
35cd ..
36echo ==================================================
37GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
38export GLOBUS_FLAVOR_NAME
39echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
40gpt-build -nosrc $GLOBUS_FLAVOR_NAME
41if test -f gsi_openssh_bundle-*.tar.gz; then
42 echo ==================================================
43 echo Building GSI-OpenSSH GPT bundle...
44 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
45 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
46fi
47if test -d openssh; then
48 echo ==================================================
49 echo Installing autotools...
50 cd autotools
51 ./install-autotools $GLOBUS_LOCATION
52 cd ..
53 echo ==================================================
54 cd openssh
55 if test -f make_gpt_dist; then
56 echo Building GSI-OpenSSH GPT package from CVS...
57 ./make_gpt_dist
58 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
59 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
60 else
61 echo Building GSI-OpenSSH from CVS trunk...
62 autoreconf
63 ./configure --prefix=$GLOBUS_LOCATION \
64 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
65 --with-zlib=$ZLIB_LOCATION \
66 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
67 make install
68 fi
69 cd ..
70fi
71if test -f nightly.tar.gz; then
72 echo ==================================================
73 echo Installing GT CVS Trunk...
74 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
75 tar xfz nightly.tar.gz
76 cd gtTRUNK-all-source-installer
77 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
78 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
79 make gsi-openssh install
80 . $GLOBUS_LOCATION/etc/globus-user-env.sh
81 cd ..
82 echo ==================================================
83 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
84 export GLOBUS_FLAVOR_NAME
85 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
86 if test -f gsi_openssh_bundle-*.tar.gz; then
87 echo ==================================================
88 echo Building GSI-OpenSSH GPT bundle...
89 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
90 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
91 fi
92 if test -d openssh; then
93 echo ==================================================
94 echo Installing autotools...
95 cd autotools
96 ./install-autotools $GLOBUS_LOCATION
97 cd ..
98 echo ==================================================
99 cd openssh
100 if test -f make_gpt_dist; then
101 echo Building GSI-OpenSSH GPT package from CVS...
102 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
103 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
104 else
105 echo Building GSI-OpenSSH from CVS trunk...
106 autoreconf
107 ./configure --prefix=$GLOBUS_LOCATION \
108 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
109 --with-zlib=$ZLIB_LOCATION \
110 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
111 make clean
112 make install
113 fi
114 fi
115fi
116) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.036387 seconds and 5 git commands to generate.