]> andersk Git - gssapi-openssh.git/blobdiff - nmi/testscript
gtTRUNK-all-source-installer could be gt4.2.0-all-source-installer.
[gssapi-openssh.git] / nmi / testscript
index 887464ee1b5609125a5d3ed4e108110c0d750498..d39ce0101cd1046142c616e3d3c3bbaea0792b2d 100755 (executable)
@@ -1,19 +1,32 @@
 #!/bin/sh
 set -e # exit on any error
-if test "$NMI_PLATFORM" = "ia64_sles_9" -o \
-        "$NMI_PLATFORM" = "sun4u_sol_5.9"; then
-  GT_INSTALLER=gt4.0.4-all-source-installer.tar.gz
-  GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/src/$GT_INSTALLER
-else
-  GT_INSTALLER=gt4.0.4-$NMI_PLATFORM-installer.tar.gz
-  GT_INSTALLER_URL=http://www.globus.org/ftppub/gt4/4.0/4.0.4/installers/bin/$GT_INSTALLER
-fi
 GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus
 ZLIB_LOCATION=$_CONDOR_SCRATCH_DIR/zlib
 LOGNAME=$USER
 X509_CERT_DIR=$GLOBUS_LOCATION/share/certificates
 export GLOBUS_LOCATION LOGNAME X509_CERT_DIR
 (
+if test -n "${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}"; then
+    PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib/pkgconfig"
+    OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
+    OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/include"
+    OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_8e_shared_ROOT}/lib"
+    OPENSSL_LIBS="-lssl -lcrypto"
+    export PKG_CONFIG_PATH
+    export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
+elif test -n "${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}"; then
+    PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib/pkgconfig"
+    OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
+    OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/include"
+    OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_7_shared_ROOT}/lib"
+    OPENSSL_LIBS="-lssl -lcrypto"
+    export PKG_CONFIG_PATH
+    export OPENSSL_CFLAGS OPENSSL_INCLUDES OPENSSL_LDFLAGS OPENSSL_LIBS
+fi
+if test -n "${LD_LIBRARY_PATH}" -a -z "${LIBPATH}"; then
+    LIBPATH=$LD_LIBRARY_PATH
+    export LIBPATH
+fi
 echo ==================================================
 echo Environment variables:
 env
@@ -21,25 +34,6 @@ echo ==================================================
 echo Directory contents:
 ls -Rl
 echo ==================================================
-echo PATHs:
-echo `which wget`
-echo `which curl`
-echo `which ncftpget`
-echo `which ftp`
-echo ==================================================
-echo Installing Globus Toolkit...
-if test -x `which wget`; then
-  wget $GT_INSTALLER_URL
-else
-  curl $GT_INSTALLER_URL > $GT_INSTALLER
-fi
-tar xfz $GT_INSTALLER
-cd gt*-installer
-./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
-make gsi-openssh install
-. $GLOBUS_LOCATION/etc/globus-user-env.sh
-cd ..
-echo ==================================================
 if test -d /prereq/zlib-1.2.3; then
   ZLIB_LOCATION=/prereq/zlib-1.2.3
   echo zlib found in $ZLIB_LOCATION
@@ -52,6 +46,18 @@ else
   cd ..
 fi
 echo ==================================================
+echo Installing Globus Toolkit...
+tar xfz gt*-all-source-installer.tar.gz
+cd gt*-installer
+./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
+            --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
+make gsi-openssh install
+. $GLOBUS_LOCATION/etc/globus-user-env.sh
+cd ..
+echo ==================================================
+echo Environment variables:
+env
+echo ==================================================
 GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
 export GLOBUS_FLAVOR_NAME
 echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.  Installing globus_core.
@@ -62,14 +68,14 @@ if test -f gsi_openssh_bundle-*.tar.gz; then
   gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
     GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
 fi
-if test -d openssh; then
+if test -d gssapi-openssh/openssh; then
   echo ==================================================
   echo Installing autotools...
   cd autotools
   ./install-autotools $GLOBUS_LOCATION
   cd ..
   echo ==================================================
-  cd openssh
+  cd gssapi-openssh/openssh
   if test -f make_gpt_dist; then
     echo Building GSI-OpenSSH GPT package from CVS...
     ./make_gpt_dist
@@ -82,19 +88,26 @@ if test -d openssh; then
       --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
       --with-zlib=$ZLIB_LOCATION \
       --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
-    make install
+    make install-nokeys # nonroot
   fi
+  cd ../..
 fi
-if test -d gtTRUNK-all-source-installer; then
+rm -rf gt*-installer
+if test -f nightly.tar.gz; then
     echo ==================================================
     echo Installing GT CVS Trunk...
     GLOBUS_LOCATION=$_CONDOR_SCRATCH_DIR/globus-trunk
-    cd gtTRUNK-all-source-installer
-    ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose"
+    tar xfz nightly.tar.gz
+    cd gt*-installer
+    ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
+                --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
     make gsi-openssh install
     . $GLOBUS_LOCATION/etc/globus-user-env.sh
     cd ..
     echo ==================================================
+    echo Environment variables:
+    env
+    echo ==================================================
     GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
     export GLOBUS_FLAVOR_NAME
     echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
@@ -104,17 +117,17 @@ if test -d gtTRUNK-all-source-installer; then
         gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
             GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
     fi
-    if test -d openssh; then
+    if test -d gssapi-openssh/openssh; then
         echo ==================================================
         echo Installing autotools...
         cd autotools
         ./install-autotools $GLOBUS_LOCATION
         cd ..
         echo ==================================================
-        cd openssh
+        cd gssapi-openssh/openssh
         if test -f make_gpt_dist; then
             echo Building GSI-OpenSSH GPT package from CVS...
-            ./make_gpt_dist
+            rm -rf BUILD
             gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
                 GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
         else
@@ -125,7 +138,8 @@ if test -d gtTRUNK-all-source-installer; then
                 --with-zlib=$ZLIB_LOCATION \
                 --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
             make clean
-            make install
+            make install-nokeys # nonroot
         fi
     fi
+fi
 ) 2>&1 # we want stdout & stderr mixed in the output file
This page took 0.620514 seconds and 4 git commands to generate.