]> andersk Git - gssapi-openssh.git/blobdiff - nmi/testscript
build globus_usage library for gsi-openssh
[gssapi-openssh.git] / nmi / testscript
index 9f0ea2c00c48a07349f5ee80c38d7337353a734a..20ec1b3e3714294b760043fdd8bd9306bab39bf9 100755 (executable)
@@ -6,7 +6,15 @@ 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
+if test -n "${_NMI_PREREQ_openssl_0_9_8k_shared_ROOT}"; then
+    PKG_CONFIG_PATH="${_NMI_PREREQ_openssl_0_9_8k_shared_ROOT}/lib/pkgconfig"
+    OPENSSL_CFLAGS="-I${_NMI_PREREQ_openssl_0_9_8k_shared_ROOT}/include"
+    OPENSSL_INCLUDES="-I${_NMI_PREREQ_openssl_0_9_8k_shared_ROOT}/include"
+    OPENSSL_LDFLAGS="-L${_NMI_PREREQ_openssl_0_9_8k_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_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"
@@ -52,7 +60,7 @@ for installer in `ls gt*-all-source-installer.tar.gz *nightly.tar.gz`; do
   cd gt*-installer
   ./configure --prefix=$GLOBUS_LOCATION --with-buildopts="-verbose" \
               --with-gsiopensshargs="--with-zlib=$ZLIB_LOCATION"
-  make gsi-openssh install
+  make globus_usage gsi-openssh install
   . $GLOBUS_LOCATION/etc/globus-user-env.sh
   cd ..
   echo ==================================================
@@ -65,6 +73,7 @@ for installer in `ls gt*-all-source-installer.tar.gz *nightly.tar.gz`; do
   if test -f gsi_openssh_bundle-*.tar.gz; then
     echo ==================================================
     echo Building GSI-OpenSSH GPT bundle...
+    rm -rf BUILD
     gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
       GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
   fi
@@ -75,9 +84,12 @@ for installer in `ls gt*-all-source-installer.tar.gz *nightly.tar.gz`; do
     ./install-autotools $GLOBUS_LOCATION
     cd ..
     echo ==================================================
-    cd gssapi-openssh/openssh
+    cd gssapi-openssh
+    cp -r openssh openssh.build
+    cd openssh.build
     if test -f make_gpt_dist; then
       echo Building GSI-OpenSSH GPT package from CVS...
+      rm -f gsi_openssh-*.tar.gz
       ./make_gpt_dist
       gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
         GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
@@ -90,7 +102,9 @@ for installer in `ls gt*-all-source-installer.tar.gz *nightly.tar.gz`; do
         --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
       make install-nokeys # nonroot
     fi
-    cd ../..
+    cd ..
+    rm -rf openssh.build
+    cd ..
   fi
   rm -rf gt*-installer $GLOBUS_LOCATION
 done
This page took 0.035753 seconds and 4 git commands to generate.