added lb4vdt stuff
authorJan Pospíšil <honik@ntc.zcu.cz>
Fri, 21 Apr 2006 15:39:25 +0000 (15:39 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Fri, 21 Apr 2006 15:39:25 +0000 (15:39 +0000)
org.glite.lb/lb4vdt/LB_install.sh [new file with mode: 0755]
org.glite.lb/lb4vdt/Makefile.inc [new file with mode: 0644]
org.glite.lb/lb4vdt/patches/org.gridsite.core.patch [new file with mode: 0644]
org.glite.lb/lb4vdt/scripts/org.gridsite.core.build [new file with mode: 0644]

diff --git a/org.glite.lb/lb4vdt/LB_install.sh b/org.glite.lb/lb4vdt/LB_install.sh
new file mode 100755 (executable)
index 0000000..205b1f0
--- /dev/null
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+set -e
+
+#OFFLINE=true
+TOPDIR=${PWD}
+LB4VDTDIR=${TOPDIR}/org.glite.lb/project/lb4vdt
+export STAGEDIR=${TOPDIR}/stage
+
+if [ ! -f ${LB4VDTDIR}/Makefile.inc ]; then
+   echo "Error: There is no ${LB4VDTDIR}/Makefile.inc. Exiting."
+   exit 1
+fi
+
+
+export CVSROOT=:pserver:anonymous@jra1mw.cvs.cern.ch:/cvs/jra1mw
+#export CVSROOT=:ext:jpospi@jra1mw.cvs.cern.ch:/cvs/jra1mw
+
+dep_modules="org.glite.wms-utils.jobid
+org.gridsite.core"
+
+modules="org.glite.security.gsoap-plugin
+org.glite.lb.client-interface
+org.glite.lb.common
+org.glite.lb.client
+org.glite.lb.logger
+org.glite.lb.ws-interface
+org.glite.lb.server-bones
+org.glite.lb.server
+org.glite.lb.proxy"
+#org.glite.lb.utils
+
+for i in $dep_modules; 
+do 
+    echo "*********************************************************"
+    echo "*  Module $i"
+    echo "*********************************************************"
+    cd ${TOPDIR}
+    if [ -n "${OFFLINE}" ]; then
+        echo "Working offline"
+    else
+        echo "Getting sources from CVS"
+        cvs co -A $i;
+    fi 
+    if [ -d $i -a -f ${LB4VDTDIR}/patches/$i.patch -a ! -f .$i.patched ]; then
+        echo "Patching $i"
+        patch -p0 < ${LB4VDTDIR}/patches/$i.patch
+       touch .$i.patched
+    fi
+    if [ -d $i ]; then
+        if  [ -f ${LB4VDTDIR}/scripts/$i.build ]; then
+       echo "Building"
+            sh -x ${LB4VDTDIR}/scripts/$i.build 
+        fi
+    else
+        echo "WARNING: directory $i not found"
+    fi
+done
+
+for i in $modules; 
+do 
+    echo "*********************************************************"
+    echo "*  Module $i"
+    echo "*********************************************************"
+    cd ${TOPDIR}
+    if [ -n "${OFFLINE}" ]; then
+        echo "Working offline"
+    else
+        echo "Getting sources from CVS"
+        cvs co -A $i; 
+    fi 
+    if [ -d $i -a -f ${LB4VDTDIR}/patches/$i.patch -a ! -f .$i.patched ]; then
+        echo "Patching $i"
+        patch -p0 < ${LB4VDTDIR}/patches/$i.patch
+       touch .$i.patched
+    fi
+    if [ -d $i ]; then
+        echo "Entering directory ${TOPDIR}/$i"
+        cd ${TOPDIR}/$i
+        echo "Copying supporting files"
+        cp -rv ${TOPDIR}/org.glite.lb/project/{at3,*.T,*.pm} ./project/    
+        mkdir -p build
+        echo "Entering directory ${TOPDIR}/$i/build"
+        cd build 
+        ln -fsv ../Makefile Makefile
+#        ln -fsv ../../Makefile.inc Makefile.inc
+        ln -fsv ${LB4VDTDIR}/Makefile.inc 
+        echo "Building"    
+       make LB_STANDALONE=yes
+        make stage LB_STANDALONE=yes
+    else
+        echo "WARNING: directory $i not found"
+    fi
+    echo "Done"    
+done
+
+cd ${TOPDIR}
diff --git a/org.glite.lb/lb4vdt/Makefile.inc b/org.glite.lb/lb4vdt/Makefile.inc
new file mode 100644 (file)
index 0000000..2326d2f
--- /dev/null
@@ -0,0 +1,61 @@
+# external dependencies:
+
+# missing packages could be downloaded to repository from
+# http://egee-jra1-integration.web.cern.ch/egee-jra1-integration/repository/
+#repository=/home/honik/egee/repository
+
+#vdt_location=/home/honik/egee/vdt-1.3.11
+vdt_location=${VDT_LOCATION}
+
+
+#cares_prefix=${repository}/c-ares/1.3.0/rhel30_gcc32
+cares_prefix=/software/cares-1.3
+
+#classads_prefix=${repository}/classads/0.9.6/rhel30_gcc32
+classads_prefix=${vdt_location}/classads
+
+# not needed (used "only" for unit tests - 'make check'):
+#cppunit_prefix=${repository}/cppunit/1.10.2/rhel30_gcc32
+cppunit_prefix=/software/cppunit-1.10.2
+
+#expat_prefix=/usr
+expat_prefix=${vdt_location}/expat
+
+#globus_prefix=${repository}/globus/2.4.3-VDT-1.2.2/rhel30_gcc32
+globus_prefix=${vdt_location}/globus
+
+#gridsite_prefix=${stagedir}
+
+gsoap_default_version=2.7.6b
+gsoap_versions=${gsoap_default_version}
+#gsoap_name=gsoap
+#gsoap_platform=rhel30_gcc32
+#gsoap_prefix=${repository}/${gsoap_name}/${gsoap_default_version}/${gsoap_platform}
+gsoap_prefix=/software/gsoap-${gsoap_default_version}
+
+#mysql_prefix=${repository}/mysql/4.1.11/rhel30_gcc32
+mysql_prefix=${vdt_location}/mysql
+mysql_version=4.1.11
+
+voms_prefix=${vdt_location}/glite
+#voms_prefix=/home/honik/egee/glite/stage
+
+
+# some defaults:
+
+#PREFIX=${vdt_location}/glite
+PREFIX=/tmp/lb4vdt
+globalprefix=glite
+lbprefix=lb
+
+builddir=build
+distdir=${STAGEDIR}/../dist
+stagedir=${STAGEDIR}
+top_srcdir=..
+
+thrflavour=gcc32dbgpthr
+nothrflavour=gcc32dbg
+
+# needed by org.glite.lb.client:
+glite_location=${stagedir}
+
diff --git a/org.glite.lb/lb4vdt/patches/org.gridsite.core.patch b/org.glite.lb/lb4vdt/patches/org.gridsite.core.patch
new file mode 100644 (file)
index 0000000..545180b
--- /dev/null
@@ -0,0 +1,38 @@
+Index: org.gridsite.core/src/Makefile
+===================================================================
+RCS file: /cvs/jra1mw/org.gridsite.core/src/Makefile,v
+retrieving revision 1.48
+diff -u -r1.48 Makefile
+--- org.gridsite.core/src/Makefile     18 Apr 2006 10:59:01 -0000      1.48
++++ org.gridsite.core/src/Makefile     21 Apr 2006 14:14:53 -0000
+@@ -56,9 +56,9 @@
+ # Build
+ #
+-build: apidoc \
+-       libgridsite.so.$(VERSION) libgridsite.a htcp mod_gridsite.so \
+-       urlencode findproxyfile real-gridsite-admin.cgi gsexec \
++build: \
++       libgridsite.so.$(VERSION) libgridsite.a htcp \
++       urlencode findproxyfile real-gridsite-admin.cgi \
+        gridsite-copy.cgi
+ build: libgridsite_globus.so.$(VERSION) libgridsite_globus.a
+@@ -226,7 +226,7 @@
+ # Install
+ #
+-install: apidoc
++install: 
+       mkdir -p $(prefix)/include \
+                  $(prefix)/lib \
+                  $(prefix)/bin \
+@@ -273,8 +273,6 @@
+       ln -sf htcp $(prefix)/bin/htmv
+       ln -sf htcp $(prefix)/bin/htping
+       ln -sf htcp $(prefix)/bin/htfind
+-      cp -f gsexec $(prefix)/sbin
+-      cp -f mod_gridsite.so $(prefix)/lib/httpd/modules
+ #
+ # Distributions
diff --git a/org.glite.lb/lb4vdt/scripts/org.gridsite.core.build b/org.glite.lb/lb4vdt/scripts/org.gridsite.core.build
new file mode 100644 (file)
index 0000000..7a79eef
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+TOPDIR=${PWD}
+source ./Makefile.inc
+cd org.gridsite.core/src
+make build OPENSSL_FLAGS=-I${globus_prefix}/include/gcc32 OPENSSL_LIBS=-L${globus_prefix}/lib FLAVOR_EXT=_gcc32
+make install prefix=${STAGEDIR} 
+cd ${TOPDIR}
+