New org.glite.lb.utils component
authorJan Pospíšil <honik@ntc.zcu.cz>
Fri, 30 Sep 2005 15:17:04 +0000 (15:17 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Fri, 30 Sep 2005 15:17:04 +0000 (15:17 +0000)
org.glite.lb.utils/.cvsignore [new file with mode: 0755]
org.glite.lb.utils/LICENSE [new file with mode: 0755]
org.glite.lb.utils/Makefile [new file with mode: 0644]
org.glite.lb.utils/build.xml [new file with mode: 0644]
org.glite.lb.utils/project/build.number [new file with mode: 0644]
org.glite.lb.utils/project/build.properties [new file with mode: 0755]
org.glite.lb.utils/project/configure.properties.xml [new file with mode: 0644]
org.glite.lb.utils/project/properties.xml [new file with mode: 0644]
org.glite.lb.utils/project/version.properties [new file with mode: 0755]

diff --git a/org.glite.lb.utils/.cvsignore b/org.glite.lb.utils/.cvsignore
new file mode 100755 (executable)
index 0000000..1df717b
--- /dev/null
@@ -0,0 +1,2 @@
+.project
+.cdtproject
\ No newline at end of file
diff --git a/org.glite.lb.utils/LICENSE b/org.glite.lb.utils/LICENSE
new file mode 100755 (executable)
index 0000000..01b973b
--- /dev/null
@@ -0,0 +1,69 @@
+LICENSE file for EGEE Middleware
+================================
+
+Copyright (c) 2004 on behalf of the EU EGEE Project: 
+The European Organization for Nuclear Research (CERN), 
+Istituto Nazionale di Fisica Nucleare (INFN), Italy
+Datamat Spa, Italy
+Centre National de la Recherche Scientifique (CNRS), France
+CS Systeme d'Information (CSSI), France
+Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
+Universiteit van Amsterdam (UvA), Netherlands
+University of Helsinki (UH.HIP), Finlan
+University of Bergen (UiB), Norway
+Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met: 
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. The end-user documentation included with the redistribution, if
+any, must include the following acknowledgment: "This product includes
+software developed by The EU EGEE Project (http://cern.ch/eu-egee/)."
+Alternatively, this acknowledgment may appear in the software itself, if
+and wherever such third-party acknowledgments normally appear.
+
+4. The names EGEE and the EU EGEE Project must not be
+used to endorse or promote products derived from this software without
+prior written permission. For written permission, please contact
+<email address>.
+
+5. You are under no obligation whatsoever to provide anyone with any
+bug fixes, patches, or upgrades to the features, functionality or
+performance of the Software ("Enhancements") that you may develop over
+time; however, if you choose to provide your Enhancements to The EU
+EGEE Project, or if you choose to otherwise publish or distribute your
+Enhancements, in source code form without contemporaneously requiring
+end users of The EU EGEE Proejct to enter into a separate written license
+agreement for such Enhancements, then you hereby grant The EU EGEE Project
+a non-exclusive, royalty-free perpetual license to install, use, copy,
+modify, prepare derivative works, incorporate into the EGEE Middleware
+or any other computer software, distribute, and sublicense your
+Enhancements or derivative works thereof, in binary and source code
+form (if any), whether developed by The EU EGEE Project or third parties.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL PROJECT OR ITS CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the EU EGEE Prject. For more information on The
+EU EGEE Project, please see http://cern.ch/eu-egee/. For more information on
+EGEE Middleware, please see http://egee-jra1.web.cern.ch/egee-jra1/
+
+
diff --git a/org.glite.lb.utils/Makefile b/org.glite.lb.utils/Makefile
new file mode 100644 (file)
index 0000000..239d7eb
--- /dev/null
@@ -0,0 +1,125 @@
+# defaults
+top_srcdir=.
+builddir=build
+top_builddir=${top_srcdir}/${builddir}
+stagedir=.
+distdir=.
+globalprefix=glite
+lbprefix=lb
+package=glite-lb-utils
+version=0.0.0
+PREFIX=/opt/glite
+
+glite_location=/opt/glite
+globus_prefix=/opt/globus
+nothrflavour=gcc32
+thrflavour=gcc32pthr
+expat_prefix=/opt/expat
+ares_prefix=/opt/ares
+gsoap_prefix=/opt/gsoap
+
+-include Makefile.inc
+
+default all: compile
+
+CC=gcc
+DEBUG:=-g -O0 -Wall
+CFLAGS:= \
+       ${WS_CFLAGS} ${DEBUG} \
+       -DVERSION=\"${version}\" \
+       -I${stagedir}/include -I${top_srcdir}/src -I. \
+       -I${top_srcdir}/interface \
+       -I${expat_prefix}/include \
+       -I${ares_prefix}/include \
+       -I${gsoap_prefix}/include -I${gsoap_prefix}/ \
+       ${COVERAGE_FLAGS} \
+       -I${mysql_prefix}/include -I${mysql_prefix}/include/mysql \
+       -I${globus_prefix}/include/${nothrflavour} \
+       $(GRIDSITE_CFLAGS) \
+       -D_GNU_SOURCE
+
+TEST_LIBS:=-L${cppunit}/lib -lcppunit
+TEST_INC:=-I${cppunit}/include
+
+COMPILE:=libtool --mode=compile ${CC} ${CFLAGS}
+LINK:=libtool --mode=link ${CC} -rpath ${stagedir}/lib  ${LDFLAGS} 
+SOLINK:=libtool --mode=link ${CC} -module ${LDFLAGS} -rpath ${stagedir}/lib
+LINKXX:=libtool --mode=link ${CXX} ${LDFLAGS} 
+INSTALL:=libtool --mode=install install
+LINKXX:=libtool --mode=link  ${CXX} -rpath ${stagedir}/lib ${LDFLAGS}
+XSLTPROC:=xsltproc
+
+GLOBUS_LIBS:= -L${globus_prefix}/lib \
+       -lglobus_common_${nothrflavour} \
+       -lglobus_gssapi_gsi_${nothrflavour} \
+
+ifneq (${mysql_prefix},/usr)
+       ifeq ($(shell echo ${mysql_version} | cut -d. -f1,2),4.1)
+               mysqlib := -L${mysql_prefix}/lib/mysql
+       else
+               mysqlib := -L${mysql_prefix}/lib
+       endif
+endif
+
+ifneq (${expat_prefix},/usr)
+       expatlib := -L${expat_prefix}/lib
+endif
+
+vomsflavour := _${nothrflavour}
+ifeq (${nothrflavour},gcc32) 
+       vomsflavour :=
+endif 
+ifeq (${nothrflavour},gcc32dbg)
+       vomsflavour :=
+endif
+
+EXT_LIBS:= -L${ares_prefix}/lib -lares \
+       ${mysqlib} -lmysqlclient -lz\
+       ${expatlib} -lexpat \
+       ${GRIDSITE_LIBS} \
+       -lvomsc${vomsflavour} \
+       ${GLOBUS_LIBS}
+
+default all: compile
+
+compile: 
+
+check: compile 
+
+test_coverage:
+       -mkdir coverage
+       cd coverage && $(MAKE) -f ../Makefile top_srcdir=../../ COVERAGE_FLAGS="-fprofile-arcs -ftest-coverage" check
+       cd coverage && for i in `echo ${INDEX_OBJS} ${BKSERVER_OBJS} | tr ' ' '\012' | sort -u`; do gcov $$i ; done
+
+doc:
+
+stage: compile
+       $(MAKE) install PREFIX=${stagedir} DOSTAGE=yes
+
+dist: distsrc distbin
+
+distsrc:
+       mkdir -p ${top_srcdir}/${package}-${version}
+       cd ${top_srcdir} && GLOBIGNORE="${package}-${version}" && cp -Rf * ${package}-${version}
+       cd ${top_srcdir} && tar -czf ${distdir}/${package}-${version}_src.tar.gz --exclude-from=project/tar_exclude ${package}-${version}
+       rm -rf ${top_srcdir}/${package}-${version}
+
+distbin:
+       $(MAKE) install PREFIX=`pwd`/tmpbuilddir${stagedir}
+       save_dir=`pwd`; cd tmpbuilddir${stagedir} && tar -czf $$save_dir/${top_srcdir}/${distdir}/${package}-${version}_bin.tar.gz *; cd $$save_dir
+       rm -rf tmpbuilddir
+        
+install:
+       -mkdir -p ${PREFIX}/bin 
+       -mkdir -p ${PREFIX}/share/doc/${package}-${version}
+       -mkdir -p ${PREFIX}/lib
+       ${INSTALL} -m 644 ${top_srcdir}/LICENSE ${PREFIX}/share/doc/${package}-${version}
+
+clean:
+
+%.o %.lo: %.c
+       ${COMPILE} -c $<
+
+%.lo: %.c
+       ${COMPILE} -o $@ -c $<
+
diff --git a/org.glite.lb.utils/build.xml b/org.glite.lb.utils/build.xml
new file mode 100644 (file)
index 0000000..f08c926
--- /dev/null
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+       Copyright (c) 2004 on behalf of the EU EGEE Project: 
+       The European Organization for Nuclear Research (CERN), 
+       Istituto Nazionale di Fisica Nucleare (INFN), Italy
+       Datamat Spa, Italy
+       Centre National de la Recherche Scientifique (CNRS), France
+       CS Systeme d'Information (CSSI), France
+       Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
+       Universiteit van Amsterdam (UvA), Netherlands
+       University of Helsinki (UH.HIP), Finland
+       University of Bergen (UiB), Norway
+       Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+
+       Build file for the GLite lb utils component
+       
+       Authors: Jan Pospisil <honik@kma.zcu.cz>
+       Version info: $Id$
+       Release: $Name$
+
+       Revision history:
+       $Log$
+       
+-->
+
+<project name="utils" default="dist">
+
+       <!-- ==============================================
+             Builds the GLite lb utils component
+            ============================================== -->
+       
+       <!-- =========================================
+             Import properties (order is important)
+            ========================================= -->
+       
+       <!-- Import baseline properties & user properties -->
+       <import file="../org.glite/project/baseline.properties.xml" />
+
+       <!-- import component build properties,
+                       component properties &
+                       component common properties -->
+       <import file="./project/properties.xml"/>
+       
+       <!-- import subsystem build properties,
+                       subsystem properties &
+                       subsystem common properties -->
+       <import file="${subsystem.properties.file}"/>
+
+       <!-- import global build properties &
+                       global properties -->
+       <import file="${global.properties.file}" />
+               
+       <!-- =========================================
+             Load dependency property files (order is important)
+            ========================================= -->
+       <property file="${user.dependencies.file}"/>
+       <property file="${component.dependencies.file}" />
+       <property file="${subsystem.dependencies.file}" />
+       <property file="${global.dependencies.file}"/>
+
+       <!-- =========================================
+                 Load configuration definitions (order is important)
+             ========================================= -->
+        <import file="${global.configure.options.file}"/>
+        <import file="${component.configure.options.file}"/>
+       
+       <!-- =========================================
+             Import task definitions (order is important)
+            ========================================= -->
+       <import file="${subsystem.taskdefs.file}" />
+       <import file="${global.taskdefs.file}" />
+       
+       <!-- =========================================
+                Load common targets
+            ========================================= -->
+       <!-- Put your language target (java/c++-ant/c++-autotool/perl) here -->
+       <import file="${global.targets-simple_make.file}" />
+               
+       <!-- =========================================
+                Load version file 
+            ========================================= -->
+       <property file="${module.version.file}"/>
+       <property file="${module.build.file}"/>
+       
+       <!-- ==============================================
+                Local private targets
+            ============================================== -->
+       
+       <target name="localinit"
+               description="Module specific initialization tasks">
+               <antcall target="lbmakefiles" />
+       </target>
+       
+       <target name="localcompile"
+               description="Module specific compile tasks">
+       </target>
+
+       <target name="localclean"
+               description="Module specific cleaning tasks">
+       </target>
+       
+</project>             
diff --git a/org.glite.lb.utils/project/build.number b/org.glite.lb.utils/project/build.number
new file mode 100644 (file)
index 0000000..5cfec85
--- /dev/null
@@ -0,0 +1 @@
+module.build = 0\r
diff --git a/org.glite.lb.utils/project/build.properties b/org.glite.lb.utils/project/build.properties
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/org.glite.lb.utils/project/configure.properties.xml b/org.glite.lb.utils/project/configure.properties.xml
new file mode 100644 (file)
index 0000000..5421722
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+        Copyright (c) 2004 on behalf of the EU EGEE Project:
+        The European Organization for Nuclear Research (CERN),
+        Istituto Nazionale di Fisica Nucleare (INFN), Italy
+        Datamat Spa, Italy
+        Centre National de la Recherche Scientifique (CNRS), France
+        CS Systeme d'Information (CSSI), France
+        Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
+        Universiteit van Amsterdam (UvA), Netherlands
+        University of Helsinki (UH.HIP), Finland
+        University of Bergen (UiB), Norway
+        Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+
+        Configuration build properties file for the GLite lb utils component
+
+        Authors: Jan Pospisil <honik@kma.zcu.cz>
+        Version info: $Id$
+        Release: $Name$
+
+        Revision history:
+        $Log$
+
+-->
+<project name="LB Utils configuration properties">
+       <target name="lbmakefiles">
+                       <exec executable="ln" failonerror="true">
+                               <arg line="-fs ${component.dir}/Makefile ${module.build.dir}/Makefile"/>
+                       </exec>
+                       <echo file="${module.build.dir}/Makefile.inc">
+top_srcdir=..
+builddir=build
+stagedir=${stage.abs.dir}
+distdir=${dist.dir}
+globalprefix=${global.prefix}
+lbprefix=${subsystem.prefix}
+package=${module.package.name}
+PREFIX=${install.dir}
+version=${module.version}
+glite_location=${with.glite.location}
+globus_prefix=${with.globus.prefix}
+thrflavour=${with.globus.thr.flavor}
+nothrflavour=${with.globus.nothr.flavor}
+expat_prefix=${with.expat.prefix}
+ares_prefix=${with.ares.prefix}
+mysql_prefix=${with.mysql.prefix}
+mysql_version=${ext.mysql.version}
+cppunit=${with.cppunit.prefix}
+gsoap_prefix=${with.gsoap.prefix}
+gsoap_version=${ext.gsoap.version}
+                       </echo>
+       </target>
+</project>
diff --git a/org.glite.lb.utils/project/properties.xml b/org.glite.lb.utils/project/properties.xml
new file mode 100644 (file)
index 0000000..65541d5
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+       Copyright (c) 2004 on behalf of the EU EGEE Project: 
+       The European Organization for Nuclear Research (CERN), 
+       Istituto Nazionale di Fisica Nucleare (INFN), Italy
+       Datamat Spa, Italy
+       Centre National de la Recherche Scientifique (CNRS), France
+       CS Systeme d'Information (CSSI), France
+       Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
+       Universiteit van Amsterdam (UvA), Netherlands
+       University of Helsinki (UH.HIP), Finland
+       University of Bergen (UiB), Norway
+       Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
+
+       Common build properties file for the GLite lb utils component
+       
+       Authors: Jan Pospisil <honik@kma.zcu.cz>
+       Version info: $Id$
+       Release: $Name$ 
+       
+       Revision history:
+       $Log$
+       
+-->
+
+<project name="lb utils component common properties">
+
+       <!-- Include build properties to allow overwriting 
+            of properties for subsystem                    -->
+       <property file="project/build.properties" />    
+
+       <!-- ======================================================
+              Define corresponding subsystem properties
+            ====================================================== -->
+
+       <!-- Subsystem name -->
+       <property name="subsystem.name" value="${lb.subsystem.name}"/>
+               
+       <!-- Subsystem prefix -->
+       <property name="subsystem.prefix" value="${lb.subsystem.prefix}"/>
+
+       <!-- ======================================================
+              Define component properties
+            ====================================================== -->
+                               
+       <!-- Component name prefix -->
+       <property name="component.prefix" value="utils" />
+                       
+       <!-- ======================================================
+              Define general component properties
+            ====================================================== -->
+       
+       <import file="${component.general.properties.file}" />
+                                               
+       <!-- ======================================================
+             Define extra properties here ...
+            ====================================================== -->
+       
+               
+</project>
diff --git a/org.glite.lb.utils/project/version.properties b/org.glite.lb.utils/project/version.properties
new file mode 100755 (executable)
index 0000000..6f1f8ab
--- /dev/null
@@ -0,0 +1,2 @@
+module.version = 0.0.0
+module.age = 0
\ No newline at end of file