/[pdpsoft]/trunk/grid-mw-security/glexec/util/glexec_from_source/glite_from_source.sh
ViewVC logotype

Diff of /trunk/grid-mw-security/glexec/util/glexec_from_source/glite_from_source.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2114 by msalle, Tue Nov 30 16:33:16 2010 UTC revision 2115 by msalle, Wed Dec 1 15:12:20 2010 UTC
# Line 377  get()  { Line 377  get()  {
377      return $?      return $?
378  }  }
379    
380    # Copy function to copy
381    copy_files()    {
382        src=$1; dst=$2;
383        [ -z "$src" -o -z "$dst" ] && return $RC_FAILED
384        shift; shift;
385        for file in $* ; do
386            if [ ! -e ${dst}/$file ];then
387                cp -p ${src}/$file $dst || return $RC_FAILED
388            fi
389        done
390        return $RC_SUCCESS
391    }
392    
393  # Print function for results:  # Print function for results:
394  # $1 - name of component, result is in $rc_<name of component>  # $1 - name of component, result is in $rc_<name of component>
395  print_result()  {  print_result()  {
# Line 606  common_cpp()  { Line 619  common_cpp()  {
619  lcmaps()    {  lcmaps()    {
620      compo_lcmaps=${compo_lcmaps:-org.glite.security.lcmaps}      compo_lcmaps=${compo_lcmaps:-org.glite.security.lcmaps}
621      cd ${SOURCE}      cd ${SOURCE}
622      get lcmaps && cd ${compo_lcmaps} || return $RC_FAILED      get lcmaps && \
623      cp -p ../${compo_common_cpp}/m4/globus.m4 \      cd ${compo_lcmaps} && \
624            ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
625            ../${compo_common_cpp}/m4/glite_security.m4 \          globus.m4 glite.m4 glite_security.m4 lcmaps.m4 && \
           ../${compo_common_cpp}/m4/lcmaps.m4 ./project  
626      ./bootstrap && \      ./bootstrap && \
627      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
628                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 627  lcmaps_interface()    { Line 639  lcmaps_interface()    {
639      dir=org.glite.security.lcmaps-interface      dir=org.glite.security.lcmaps-interface
640      compo_lcmaps_interface=${compo_lcmaps_interface:-org.glite.security.lcmaps}      compo_lcmaps_interface=${compo_lcmaps_interface:-org.glite.security.lcmaps}
641      cd ${SOURCE}      cd ${SOURCE}
642      get lcmaps_interface $dir && cd ${dir} || return $RC_FAILED      get lcmaps_interface $dir && \
643      cp -p ../${compo_common_cpp}/m4/globus.m4 \      cd ${dir} && \
644            ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
645            ../${compo_common_cpp}/m4/glite_security.m4 \          globus.m4 glite.m4 glite_security.m4 lcmaps.m4 && \
           ../${compo_common_cpp}/m4/lcmaps.m4 ./project  
646      ./bootstrap && \      ./bootstrap && \
647      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
648                  --with-gsi-mode --enable-headers && \                  --with-gsi-mode --enable-headers && \
# Line 644  lcmaps_interface()    { Line 655  lcmaps_interface()    {
655  lcas()  {  lcas()  {
656      compo_lcas=${compo_lcas:-org.glite.security.lcas}      compo_lcas=${compo_lcas:-org.glite.security.lcas}
657      cd ${SOURCE}      cd ${SOURCE}
658      get lcas && cd ${compo_lcas} || return $RC_FAILED      get lcas && \
659      cp -p ../${compo_common_cpp}/m4/glite.m4 \      cd ${compo_lcas} && \
660            ../${compo_common_cpp}/m4/globus.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
661            ../${compo_common_cpp}/m4/lcmaps.m4 ./project          /glite.m4 globus.m4 lcmaps.m4 && \
662      ./bootstrap && \      ./bootstrap && \
663      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
664                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 662  lcas() { Line 673  lcas() {
673  lcas_interface()    {  lcas_interface()    {
674      compo_lcas_interface=${compo_lcas_interface:-org.glite.security.lcas-interface}      compo_lcas_interface=${compo_lcas_interface:-org.glite.security.lcas-interface}
675      cd ${SOURCE}      cd ${SOURCE}
676      get lcas_interface && cd ${compo_lcas_interface} || return $RC_FAILED      get lcas_interface && \
677      cp -p ../${compo_common_cpp}/m4/glite.m4 ./project      cd ${compo_lcas_interface} && \
678        copy_files ../${compo_common_cpp}/m4 ./project glite.m4 && \
679      ./bootstrap && \      ./bootstrap && \
680      ./configure --prefix=${prefix} && \      ./configure --prefix=${prefix} && \
681      make install || return $RC_FAILED      make install || return $RC_FAILED
# Line 703  glexec()    { Line 715  glexec()    {
715      # Remainder is glexec >=0.8      # Remainder is glexec >=0.8
716      compo_glexec=${compo_glexec:-org.glite.security.glexec}      compo_glexec=${compo_glexec:-org.glite.security.glexec}
717      cd ${SOURCE}      cd ${SOURCE}
718      get glexec && cd ${compo_glexec} || return $RC_FAILED      get glexec && \
719      cp -p ../${compo_common_cpp}/m4/glite.m4 ./project      cd ${compo_glexec} && \
720        copy_files ../${compo_common_cpp}/m4 ./project glite.m4 && \
721      ./bootstrap && \      ./bootstrap && \
722      ./configure --prefix=${prefix} --with-glite-location=${glite} && \      ./configure --prefix=${prefix} --with-glite-location=${glite} && \
723      make && \      make && \
# Line 717  lcmaps_plugins_basic() { Line 730  lcmaps_plugins_basic() {
730      compo_lcmaps_plugins_basic=${compo_lcmaps_plugins_basic:-org.glite.security.lcmaps-plugins-basic}      compo_lcmaps_plugins_basic=${compo_lcmaps_plugins_basic:-org.glite.security.lcmaps-plugins-basic}
731      cd ${SOURCE}      cd ${SOURCE}
732      get lcmaps_plugins_basic && \      get lcmaps_plugins_basic && \
733      cd ${compo_lcmaps_plugins_basic} || return $RC_FAILED      cd ${compo_lcmaps_plugins_basic} && \
734      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
735            ../${compo_common_cpp}/m4/globus.m4 \          glite.m4 globus.m4 lcmaps.m4 gridlist.m4 && \
           ../${compo_common_cpp}/m4/lcmaps.m4 \  
           ../${compo_common_cpp}/m4/gridlist.m4 ./project  
736      ./bootstrap && \      ./bootstrap && \
737      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
738                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 737  lcmaps_plugins_verify_proxy()  { Line 748  lcmaps_plugins_verify_proxy()  {
748      compo_lcmaps_plugins_verify_proxy=${compo_lcmaps_plugins_verify_proxy:-org.glite.security.lcmaps-plugins-verify-proxy}      compo_lcmaps_plugins_verify_proxy=${compo_lcmaps_plugins_verify_proxy:-org.glite.security.lcmaps-plugins-verify-proxy}
749      cd ${SOURCE}      cd ${SOURCE}
750      get lcmaps_plugins_verify_proxy && \      get lcmaps_plugins_verify_proxy && \
751      cd ${compo_lcmaps_plugins_verify_proxy} || return $RC_FAILED      cd ${compo_lcmaps_plugins_verify_proxy} && \
752      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
753            ../${compo_common_cpp}/m4/glite_security.m4 ./project          glite.m4 glite_security.m4 && \
754      ./bootstrap && \      ./bootstrap && \
755      ./configure --prefix=${prefix} --with-glite-location=${glite} && \      ./configure --prefix=${prefix} --with-glite-location=${glite} && \
756      make && \      make && \
# Line 752  lcmaps_plugins_voms()  { Line 763  lcmaps_plugins_voms()  {
763      compo_lcmaps_plugins_voms=${compo_lcmaps_plugins_voms:-org.glite.security.lcmaps-plugins-voms}      compo_lcmaps_plugins_voms=${compo_lcmaps_plugins_voms:-org.glite.security.lcmaps-plugins-voms}
764      cd ${SOURCE}      cd ${SOURCE}
765      get lcmaps_plugins_voms && \      get lcmaps_plugins_voms && \
766      cd ${compo_lcmaps_plugins_voms} || return $RC_FAILED      cd ${compo_lcmaps_plugins_voms} && \
767      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
768            ../${compo_common_cpp}/m4/glite_security.m4 \          glite.m4 glite_security.m4 globus.m4 lcmaps.m4 gridlist.m4 && \
           ../${compo_common_cpp}/m4/globus.m4 \  
           ../${compo_common_cpp}/m4/lcmaps.m4 \  
           ../${compo_common_cpp}/m4/gridlist.m4 ./project  
769      ./bootstrap && \      ./bootstrap && \
770      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
771                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 773  lcmaps_plugins_afs()   { Line 781  lcmaps_plugins_afs()   {
781      compo_lcmaps_plugins_afs=${compo_lcmaps_plugins_afs:-org.glite.security.lcmaps-plugins-afs}      compo_lcmaps_plugins_afs=${compo_lcmaps_plugins_afs:-org.glite.security.lcmaps-plugins-afs}
782      cd ${SOURCE}      cd ${SOURCE}
783      get lcmaps_plugins_afs && \      get lcmaps_plugins_afs && \
784      cd ${compo_lcmaps_plugins_afs} || return $RC_FAILED      cd ${compo_lcmaps_plugins_afs} && \
785      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
786            ../${compo_common_cpp}/m4/globus.m4 ./project          /glite.m4 globus.m4 && \
787      ./bootstrap && \      ./bootstrap && \
788      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
789                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 791  lcmaps_plugins_gums()  { Line 799  lcmaps_plugins_gums()  {
799      compo_lcmaps_plugins_gums=${compo_lcmaps_plugins_gums:-org.glite.security.lcmaps-plugins-gums}      compo_lcmaps_plugins_gums=${compo_lcmaps_plugins_gums:-org.glite.security.lcmaps-plugins-gums}
800      cd ${SOURCE}      cd ${SOURCE}
801      get lcmaps_plugins_gums && \      get lcmaps_plugins_gums && \
802      cd ${compo_lcmaps_plugins_gums} || return $RC_FAILED      cd ${compo_lcmaps_plugins_gums} && \
803      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
804            ../${compo_common_cpp}/m4/glite_security.m4 \          glite.m4 glite_security.m4 globus.m4 && \
           ../${compo_common_cpp}/m4/globus.m4 ./project  
805      ./bootstrap && \      ./bootstrap && \
806      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
807                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 830  lcmaps_plugins_c_pep() { Line 837  lcmaps_plugins_c_pep() {
837      compo_lcmaps_plugins_c_pep=${compo_lcmaps_plugins_c_pep:-org.glite.security.lcmaps-plugins-c-pep}      compo_lcmaps_plugins_c_pep=${compo_lcmaps_plugins_c_pep:-org.glite.security.lcmaps-plugins-c-pep}
838      cd ${SOURCE}      cd ${SOURCE}
839      get lcmaps_plugins_c_pep && \      get lcmaps_plugins_c_pep && \
840      cd ${compo_lcmaps_plugins_c_pep} || return $RC_FAILED      cd ${compo_lcmaps_plugins_c_pep} && \
841      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
842            ../${compo_common_cpp}/m4/glite_security.m4 ./project          glite.m4 glite_security.m4 && \
843      ./bootstrap && \      ./bootstrap && \
844      ./configure --prefix=${glite} --with-glite-location=${glite} && \      ./configure --prefix=${glite} --with-glite-location=${glite} && \
845      make && \      make && \
# Line 846  saml2_xacml2_c_lib()   { Line 853  saml2_xacml2_c_lib()   {
853      cd ${SOURCE}      cd ${SOURCE}
854      export CXXFLAGS="-fPIC ${CXXFLAGS}"      export CXXFLAGS="-fPIC ${CXXFLAGS}"
855      get saml2_xacml2_c_lib && \      get saml2_xacml2_c_lib && \
856      cd ${compo_saml2_xacml2_c_lib} || return $RC_FAILED      cd ${compo_saml2_xacml2_c_lib} && \
857      cp -p ../${compo_common_cpp}/m4/glite.m4 ./project      copy_files ../${compo_common_cpp}/m4 ./project glite.m4 && \
858      # Only for new style SAML2-XACML2-C-lib do we have gsoap as tarball      # Only for new style SAML2-XACML2-C-lib do we have gsoap as tarball
859      gsoap_tarball="`ls gsoap-2.7*.tar.gz 2>/dev/null`"      gsoap_tarball="`ls gsoap-2.7*.tar.gz 2>/dev/null`"
860      if [ -n "$gsoap_tarball" ];then      if [ -n "$gsoap_tarball" ];then
# Line 871  lcmaps_plugins_scas_client()   { Line 878  lcmaps_plugins_scas_client()   {
878      compo_lcmaps_plugins_scas_client=${compo_lcmaps_plugins_scas_client:-org.glite.security.lcmaps-plugins-scas-client}      compo_lcmaps_plugins_scas_client=${compo_lcmaps_plugins_scas_client:-org.glite.security.lcmaps-plugins-scas-client}
879      cd ${SOURCE}      cd ${SOURCE}
880      get lcmaps_plugins_scas_client && \      get lcmaps_plugins_scas_client && \
881      cd ${compo_lcmaps_plugins_scas_client} || return $RC_FAILED      cd ${compo_lcmaps_plugins_scas_client} && \
882      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
883            ../${compo_common_cpp}/m4/glite_security.m4 \          glite.m4 glite_security.m4 lcmaps.m4 && \
           ../${compo_common_cpp}/m4/lcmaps.m4 ./project  
884      ./bootstrap && \      ./bootstrap && \
885      ./configure --prefix=${glite} --with-glite-location=${glite} && \      ./configure --prefix=${glite} --with-glite-location=${glite} && \
886      make && \      make && \
# Line 887  scas() { Line 893  scas() {
893      compo_scas=${compo_scas:-org.glite.security.scas}      compo_scas=${compo_scas:-org.glite.security.scas}
894      cd ${SOURCE}      cd ${SOURCE}
895      get scas && \      get scas && \
896      cd ${compo_scas} || return $RC_FAILED      cd ${compo_scas} && \
897      cp -p ../${compo_common_cpp}/m4/globus.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
898            ../${compo_common_cpp}/m4/glite.m4 \          globus.m4 glite.m4 glite_security.m4 lcmaps.m4 && \
           ../${compo_common_cpp}/m4/glite_security.m4 \  
           ../${compo_common_cpp}/m4/lcmaps.m4 ./project  
899      ./bootstrap && \      ./bootstrap && \
900      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
901                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 915  ees()  { Line 919  ees()  {
919          fi          fi
920      fi      fi
921      cd ${SOURCE}      cd ${SOURCE}
922      get ees && cd ${compo_ees} || return $RC_FAILED      get ees && \
923      cp -p ../${compo_common_cpp}/m4/glite.m4 \      cd ${compo_ees} && \
924            ../${compo_common_cpp}/m4/glite_security.m4 ./m4      copy_files ../${compo_common_cpp}/m4 ./m4 \
925            glite.m4 glite_security.m4 && \
926      sh ./autogen.sh && \      sh ./autogen.sh && \
927      ./configure --prefix=${prefix} --with-glite-location=${glite} \      ./configure --prefix=${prefix} --with-glite-location=${glite} \
928                  --with-saml2xacml2=${glite} && \                  --with-saml2xacml2=${glite} && \
# Line 931  lcas_plugins_basic()   { Line 936  lcas_plugins_basic()   {
936      compo_lcas_plugins_basic=${compo_lcas_plugins_basic:-org.glite.security.lcas-plugins-basic}      compo_lcas_plugins_basic=${compo_lcas_plugins_basic:-org.glite.security.lcas-plugins-basic}
937      cd ${SOURCE}      cd ${SOURCE}
938      get lcas_plugins_basic && \      get lcas_plugins_basic && \
939      cd ${compo_lcas_plugins_basic} || return $RC_FAILED      cd ${compo_lcas_plugins_basic} && \
940      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
941            ../${compo_common_cpp}/m4/globus.m4 \          glite.m4 globus.m4 gridlist.m4 && \
           ../${compo_common_cpp}/m4/gridlist.m4 ./project  
942      ./bootstrap && \      ./bootstrap && \
943      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
944                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 950  lcas_plugins_check_executable()        { Line 954  lcas_plugins_check_executable()        {
954      compo_lcas_plugins_check_executable=${compo_lcas_plugins_check_executable:-org.glite.security.lcas-plugins-check-executable}      compo_lcas_plugins_check_executable=${compo_lcas_plugins_check_executable:-org.glite.security.lcas-plugins-check-executable}
955      cd ${SOURCE}      cd ${SOURCE}
956      get lcas_plugins_check_executable && \      get lcas_plugins_check_executable && \
957      cd ${compo_lcas_plugins_check_executable} || return $RC_FAILED      cd ${compo_lcas_plugins_check_executable} && \
958      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
959            ../${compo_common_cpp}/m4/globus.m4 \          glite.m4 globus.m4 gridlist.m4 && \
           ../${compo_common_cpp}/m4/gridlist.m4 ./project  
960      ./bootstrap && \      ./bootstrap && \
961      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
962                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 984  lcas_plugins_voms() { Line 987  lcas_plugins_voms() {
987      compo_lcas_plugins_voms=${compo_lcas_plugins_voms:-org.glite.security.lcas-plugins-voms}      compo_lcas_plugins_voms=${compo_lcas_plugins_voms:-org.glite.security.lcas-plugins-voms}
988      cd ${SOURCE}      cd ${SOURCE}
989      get lcas_plugins_voms && \      get lcas_plugins_voms && \
990      cd ${compo_lcas_plugins_voms} || return $RC_FAILED      cd ${compo_lcas_plugins_voms} && \
991      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
992            ../${compo_common_cpp}/m4/glite_security.m4 \          glite.m4 glite_security.m4 globus.m4 gridsite.m4 gridlist.m4 && \
           ../${compo_common_cpp}/m4/globus.m4 \  
           ../${compo_common_cpp}/m4/gridsite.m4 \  
           ../${compo_common_cpp}/m4/gridlist.m4 ./project  
993      ./bootstrap && \      ./bootstrap && \
994      ./configure --prefix=${glite} --with-glite-location=${glite} \      ./configure --prefix=${glite} --with-glite-location=${glite} \
995                  --with-globus-prefix=${globus} \                  --with-globus-prefix=${globus} \
# Line 1009  lcas_lcmaps_gt4_interface()    { Line 1009  lcas_lcmaps_gt4_interface()    {
1009      compo_lcas_lcmaps_gt4_interface=${compo_lcas_lcmaps_gt4_interface:-org.glite.security.lcas-lcmaps-gt4-interface}      compo_lcas_lcmaps_gt4_interface=${compo_lcas_lcmaps_gt4_interface:-org.glite.security.lcas-lcmaps-gt4-interface}
1010      cd ${SOURCE}      cd ${SOURCE}
1011      get lcas_lcmaps_gt4_interface && \      get lcas_lcmaps_gt4_interface && \
1012      cd ${compo_lcas_lcmaps_gt4_interface} || return $RC_FAILED      cd ${compo_lcas_lcmaps_gt4_interface} && \
1013      cp -p ../${compo_common_cpp}/m4/glite.m4 \      copy_files ../${compo_common_cpp}/m4 ./project \
1014            ../${compo_common_cpp}/m4/globus.m4 \          glite.m4 globus.m4 lcmaps.m4 && \
           ../${compo_common_cpp}/m4/lcmaps.m4 ./project  
1015      ./bootstrap && \      ./bootstrap && \
1016      ./configure --prefix=${prefix} \      ./configure --prefix=${prefix} \
1017                  --with-glite-location=${glite} \                  --with-glite-location=${glite} \

Legend:
Removed from v.2114  
changed lines
  Added in v.2115

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28