]> andersk Git - gssapi-openssh.git/blob - nmi/testscript
Makefile target is 'gsi_openssh' rather than 'gsi-openssh' now...
[gssapi-openssh.git] / nmi / testscript
1 #!/bin/sh
2 set -e # exit on any error
3 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
4 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
5 LOGNAME=$USER
6 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
7 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
8 (
9 echo ==================================================
10 echo Environment variables:
11 env
12 echo ==================================================
13 echo Directory contents:
14 ls -Rl
15 echo ==================================================
16 if test -d /prereq/zlib-1.2.3; then
17   ZLIB_LOCATION=/prereq/zlib-1.2.3
18   echo zlib found in $ZLIB_LOCATION
19 else
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 ..
26 fi
27 echo ==================================================
28 echo Installing Globus Toolkit...
29 tar xfz gt*-all-source-installer.tar.gz
30 cd gt*-installer
31 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
32             --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
33 make gsi-openssh install
34 . $GLOBUS_LOCATION/etc/globus-user-env.sh
35 cd ..
36 echo ==================================================
37 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
38 export GLOBUS_FLAVOR_NAME
39 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.  Installing globus_core.
40 gpt-build -nosrc $GLOBUS_FLAVOR_NAME
41 if 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"
46 fi
47 if test -d openssh; then
48   echo ==================================================
49   echo Installing autotools...
50   cd autotools
51   ./install-autotools $GLOBUS_LOCATION
52   cd ..
53   echo ==================================================
54   cd gssapi-openssh/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 ../..
70 fi
71 if 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 gssapi-openssh/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
115 fi
116 ) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.045818 seconds and 5 git commands to generate.