]> andersk Git - gssapi-openssh.git/blame - nmi/testscript
release new patch today
[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(
ba95588b 9if test -n "${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}"; then
10 PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib/pkgconfig"
11 OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
12 OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
13 OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib"
14 OPENSSL_LIBS="-lssl -lcrypto"
15 export PKG_CONFIG_PATH
16 export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
17elif test -n "${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}"; then
18 PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib/pkgconfig"
19 OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
20 OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
21 OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib"
22 OPENSSL_LIBS="-lssl -lcrypto"
23 export PKG_CONFIG_PATH
24 export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
25fi
26if test -n "${LD_LIBRARY_PATH}" -a -z "${LIBPATH}"; then
27 LIBPATH=$LD_LIBRARY_PATH
28 export LIBPATH
29fi
365b751e 30echo ==================================================
31echo Environment variables:
32env
33echo ==================================================
34echo Directory contents:
35ls -Rl
36echo ==================================================
9de400ec 37if test -d /prereq/zlib-1.2.3; then
38 ZLIB_LOCATION=/prereq/zlib-1.2.3
39 echo zlib found in $ZLIB_LOCATION
40else
41 echo Building zlib-1.2.3...
42 cd zlib-1.2.3
43 ./configure --prefix=$ZLIB_LOCATION
44 make
45 make install
46 cd ..
47fi
48echo ==================================================
365b751e 49echo Installing Globus Toolkit...
c9cb0998 50tar xfz gt*-all-source-installer.tar.gz
365b751e 51cd gt*-installer
d9a9e62e 52./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
53 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
365b751e 54make gsi-openssh install
55. $GLOBUS_LOCATION/etc/globus-user-env.sh
753b352b 56cd ..
57echo ==================================================
ba95588b 58echo Environment variables:
59env
60echo ==================================================
76076a35 61GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
62export GLOBUS_FLAVOR_NAME
63echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME. Installing globus_core.
64gpt-build -nosrc $GLOBUS_FLAVOR_NAME
76076a35 65if test -f gsi_openssh_bundle-*.tar.gz; then
67b4c7ad 66 echo ==================================================
76076a35 67 echo Building GSI-OpenSSH GPT bundle...
68 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
69 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
70fi
d4c3091b 71if test -d gssapi-openssh/openssh; then
67b4c7ad 72 echo ==================================================
73 echo Installing autotools...
74 cd autotools
75 ./install-autotools $GLOBUS_LOCATION
76 cd ..
77 echo ==================================================
e85b6034 78 cd gssapi-openssh/openssh
bf43e758 79 if test -f make_gpt_dist; then
80 echo Building GSI-OpenSSH GPT package from CVS...
81 ./make_gpt_dist
4bb44ab4 82 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
bf43e758 83 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
84 else
85 echo Building GSI-OpenSSH from CVS trunk...
86 autoreconf
87 ./configure --prefix=$GLOBUS_LOCATION \
88 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
89 --with-zlib=$ZLIB_LOCATION \
90 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
322d7c6b 91 make install-nokeys # nonroot
bf43e758 92 fi
e85b6034 93 cd ../..
76076a35 94fi
a7c96f6c 95rm -rf gt*-installer
a0f58867 96if test -f nightly.tar.gz; then
4d997295 97 echo ==================================================
98 echo Installing GT CVS Trunk...
99 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
a0f58867 100 tar xfz nightly.tar.gz
a7c96f6c 101 cd gt*-installer
d9a9e62e 102 ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
103 --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
5977a973 104 make gsi-openssh install
4d997295 105 . $GLOBUS_LOCATION/etc/globus-user-env.sh
106 cd ..
107 echo ==================================================
ba95588b 108 echo Environment variables:
109 env
110 echo ==================================================
4d997295 111 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
112 export GLOBUS_FLAVOR_NAME
113 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
114 if test -f gsi_openssh_bundle-*.tar.gz; then
115 echo ==================================================
116 echo Building GSI-OpenSSH GPT bundle...
117 gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
118 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
119 fi
d4c3091b 120 if test -d gssapi-openssh/openssh; then
4d997295 121 echo ==================================================
122 echo Installing autotools...
123 cd autotools
124 ./install-autotools $GLOBUS_LOCATION
125 cd ..
126 echo ==================================================
e85b6034 127 cd gssapi-openssh/openssh
4d997295 128 if test -f make_gpt_dist; then
129 echo Building GSI-OpenSSH GPT package from CVS...
dc0640f6 130 rm -rf BUILD
4d997295 131 gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
132 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
133 else
134 echo Building GSI-OpenSSH from CVS trunk...
135 autoreconf
136 ./configure --prefix=$GLOBUS_LOCATION \
137 --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
138 --with-zlib=$ZLIB_LOCATION \
139 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
140 make clean
322d7c6b 141 make install-nokeys # nonroot
4d997295 142 fi
143 fi
96423da5 144fi
365b751e 145) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.496461 seconds and 5 git commands to generate.