]> andersk Git - gssapi-openssh.git/blame - nmi/testscript
Don't build on ia64_sles_8 anymore. There is some problem with the
[gssapi-openssh.git] / nmi / testscript
CommitLineData
365b751e 1#!/bin/sh
2set -e # exit on any error
365b751e 3GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
753b352b 4ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
365b751e 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 ==================================================
9de400ec 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 ==================================================
365b751e 28echo Installing Globus Toolkit...
c9cb0998 29tar xfz gt*-all-source-installer.tar.gz
365b751e 30cd gt*-installer
d9a9e62e 31./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
32 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
365b751e 33make gsi-openssh install
34. $GLOBUS_LOCATION/etc/globus-user-env.sh
753b352b 35cd ..
36echo ==================================================
76076a35 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
76076a35 41if test -f gsi_openssh_bundle-*.tar.gz; then
67b4c7ad 42 echo ==================================================
76076a35 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
d4c3091b 47if test -d gssapi-openssh/openssh; then
67b4c7ad 48 echo ==================================================
49 echo Installing autotools...
50 cd autotools
51 ./install-autotools $GLOBUS_LOCATION
52 cd ..
53 echo ==================================================
e85b6034 54 cd gssapi-openssh/openssh
bf43e758 55 if test -f make_gpt_dist; then
56 echo Building GSI-OpenSSH GPT package from CVS...
57 ./make_gpt_dist
4bb44ab4 58 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
bf43e758 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
e85b6034 69 cd ../..
76076a35 70fi
a0f58867 71if test -f nightly.tar.gz; then
4d997295 72 echo ==================================================
73 echo Installing GT CVS Trunk...
74 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
a0f58867 75 tar xfz nightly.tar.gz
4d997295 76 cd gtTRUNK-all-source-installer
d9a9e62e 77 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
78 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
5977a973 79 make gsi-openssh install
4d997295 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
d4c3091b 92 if test -d gssapi-openssh/openssh; then
4d997295 93 echo ==================================================
94 echo Installing autotools...
95 cd autotools
96 ./install-autotools $GLOBUS_LOCATION
97 cd ..
98 echo ==================================================
e85b6034 99 cd gssapi-openssh/openssh
4d997295 100 if test -f make_gpt_dist; then
101 echo Building GSI-OpenSSH GPT package from CVS...
dc0640f6 102 rm -rf BUILD
4d997295 103 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
104 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
105 else
106 echo Building GSI-OpenSSH from CVS trunk...
107 autoreconf
108 ./configure --prefix=$GLOBUS_LOCATION \
109 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
110 --with-zlib=$ZLIB_LOCATION \
111 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
112 make clean
113 make install
114 fi
115 fi
96423da5 116fi
365b751e 117) 2>&1 # we want stdout & stderr mixed in the output file
This page took 1.141649 seconds and 5 git commands to generate.