From 11670df557a545dd57e39ab976467145853a8efc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Fri, 30 Sep 2005 15:17:04 +0000 Subject: [PATCH] New org.glite.lb.utils component --- org.glite.lb.utils/.cvsignore | 2 + org.glite.lb.utils/LICENSE | 69 ++++++++++++ org.glite.lb.utils/Makefile | 125 +++++++++++++++++++++ org.glite.lb.utils/build.xml | 102 +++++++++++++++++ org.glite.lb.utils/project/build.number | 1 + org.glite.lb.utils/project/build.properties | 0 .../project/configure.properties.xml | 53 +++++++++ org.glite.lb.utils/project/properties.xml | 60 ++++++++++ org.glite.lb.utils/project/version.properties | 2 + 9 files changed, 414 insertions(+) create mode 100755 org.glite.lb.utils/.cvsignore create mode 100755 org.glite.lb.utils/LICENSE create mode 100644 org.glite.lb.utils/Makefile create mode 100644 org.glite.lb.utils/build.xml create mode 100644 org.glite.lb.utils/project/build.number create mode 100755 org.glite.lb.utils/project/build.properties create mode 100644 org.glite.lb.utils/project/configure.properties.xml create mode 100644 org.glite.lb.utils/project/properties.xml create mode 100755 org.glite.lb.utils/project/version.properties diff --git a/org.glite.lb.utils/.cvsignore b/org.glite.lb.utils/.cvsignore new file mode 100755 index 0000000..1df717b --- /dev/null +++ b/org.glite.lb.utils/.cvsignore @@ -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 index 0000000..01b973b --- /dev/null +++ b/org.glite.lb.utils/LICENSE @@ -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 +. + +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 index 0000000..239d7eb --- /dev/null +++ b/org.glite.lb.utils/Makefile @@ -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 index 0000000..f08c926 --- /dev/null +++ b/org.glite.lb.utils/build.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.glite.lb.utils/project/build.number b/org.glite.lb.utils/project/build.number new file mode 100644 index 0000000..5cfec85 --- /dev/null +++ b/org.glite.lb.utils/project/build.number @@ -0,0 +1 @@ +module.build = 0 diff --git a/org.glite.lb.utils/project/build.properties b/org.glite.lb.utils/project/build.properties new file mode 100755 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 index 0000000..5421722 --- /dev/null +++ b/org.glite.lb.utils/project/configure.properties.xml @@ -0,0 +1,53 @@ + + + + + + + + +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} + + + diff --git a/org.glite.lb.utils/project/properties.xml b/org.glite.lb.utils/project/properties.xml new file mode 100644 index 0000000..65541d5 --- /dev/null +++ b/org.glite.lb.utils/project/properties.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.glite.lb.utils/project/version.properties b/org.glite.lb.utils/project/version.properties new file mode 100755 index 0000000..6f1f8ab --- /dev/null +++ b/org.glite.lb.utils/project/version.properties @@ -0,0 +1,2 @@ +module.version = 0.0.0 +module.age = 0 \ No newline at end of file -- 1.8.2.3