First version of this file
authorAlberto Di Meglio <alberto.di.meglio@cern.ch>
Wed, 6 Oct 2004 09:19:24 +0000 (09:19 +0000)
committerAlberto Di Meglio <alberto.di.meglio@cern.ch>
Wed, 6 Oct 2004 09:19:24 +0000 (09:19 +0000)
org.glite.deployment.lb/build.xml [new file with mode: 0644]
org.glite.deployment.lb/project/.cvsignore [new file with mode: 0644]
org.glite.deployment.lb/project/build.properties [new file with mode: 0644]
org.glite.deployment.lb/project/glite-lb.sdf.xml.template [new file with mode: 0644]
org.glite.deployment.lb/project/lxscript-rpm.xsl [new file with mode: 0644]
org.glite.deployment.lb/project/properties.xml [new file with mode: 0644]
org.glite.deployment.lb/project/version.properties [new file with mode: 0644]

diff --git a/org.glite.deployment.lb/build.xml b/org.glite.deployment.lb/build.xml
new file mode 100644 (file)
index 0000000..088b493
--- /dev/null
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
+
+       Build file for the gLite LB Server Deployment Unit
+       
+    Authors: Alberto Di Meglio <alberto.di.meglio@cern.ch>     
+
+       Version info: $Id$
+       Release: $Name$
+
+       Revision history:
+       $Log$
+-->
+
+<project name="deployment-lb-server" default="dist">
+       
+       <!-- =========================================
+                Builds the gLite LB Server Deployment Unit
+                ========================================= -->
+       
+       <!-- =========================================
+            Import properties (order is important)
+                ========================================= -->
+
+       <!-- import baseline & 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}"/>
+       
+       
+       <!-- =========================================
+                Import task definitions (order is important)
+                ========================================= -->
+       <import file="${subsystem.taskdefs.file}" />
+       <import file="${global.taskdefs.file}" />
+                       
+       <!-- =========================================
+                Load configure options
+                ========================================= -->
+       <property file="${global.configure.options.file}"/>
+
+       <!-- =========================================
+                Load common targets
+                ========================================= -->
+       <import file="${global.targets-external-dependencies.file}"/>   
+       <import file="${global.targets-deploy.file}" />
+
+       <!-- =========================================
+                Load version file 
+                ========================================= -->
+       <property file="${module.version.file}"/>
+               
+       <!-- ==============================================
+                Local private targets
+                ============================================== -->
+       
+       <target name="localinit"
+               description="Module specific initialization tasks">
+       </target>
+               
+       <target name="localcompile"
+               description="Module specific compilation tasks">
+               <copy file="${module.project.dir}/${global.prefix}-${component.prefix}.sdf.xml.template"
+                       tofile="${module.project.dir}/${global.prefix}-${component.prefix}.sdf.xml" overwrite="true">
+                       <filterset>
+
+               </filterset>
+               </copy>
+       </target>
+               
+       <target name="localclean"
+               description="Module specific cleaning tasks">
+       </target>
+       
+</project>             
diff --git a/org.glite.deployment.lb/project/.cvsignore b/org.glite.deployment.lb/project/.cvsignore
new file mode 100644 (file)
index 0000000..caf4eaa
--- /dev/null
@@ -0,0 +1 @@
+glite-lb.sdf.xml
diff --git a/org.glite.deployment.lb/project/build.properties b/org.glite.deployment.lb/project/build.properties
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/org.glite.deployment.lb/project/glite-lb.sdf.xml.template b/org.glite.deployment.lb/project/glite-lb.sdf.xml.template
new file mode 100644 (file)
index 0000000..3b8b5ad
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version ="1.0" encoding="UTF-8"?>
+<!--
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
+-->
+
+<service name="glite-wms-node">
+       <components>
+       </components>
+       <dependencies>
+       </dependencies>
+</service>
\ No newline at end of file
diff --git a/org.glite.deployment.lb/project/lxscript-rpm.xsl b/org.glite.deployment.lb/project/lxscript-rpm.xsl
new file mode 100644 (file)
index 0000000..9e017f4
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsl:stylesheet version="1.0" 
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       
+       <xsl:output method="xml" 
+               indent="yes"
+               encoding="UTF-8"
+               omit-xml-declaration="yes"/>
+
+       <!-- Definition of variables and parameters -->
+       <xsl:param name="repository"/>
+       <xsl:param name="ext-repository"/>
+
+       <!-- global processing -->
+       <xsl:template match="/">
+#!/bin/sh -f
+#
+# glite-wn_installer
+# usage: glite-wn_installer [-u]
+                -u             uninstall
+#
+# glite-wn_installer installs the gLite Worker Node Deployment Unit
+#
+               <xsl:apply-templates/>
+# Install dependencies and gLite RPMS
+rpm -Uvh *
+       </xsl:template>
+
+       <xsl:template match="dependencies">
+# Download gLite dependencies RPMS from repository
+               <xsl:apply-templates/>
+       </xsl:template>
+
+       <xsl:template match="service">
+# Download gLite RPMS from repository
+               <xsl:apply-templates/>
+       </xsl:template>
+
+       <xsl:template name="components" match="components/component">
+               <xsl:variable name="package"><xsl:value-of select="@name"/>-<xsl:value-of select="@version"/>-<xsl:value-of select="@age"/>.1386.rpm</xsl:variable>
+wget <xsl:value-of select="$repository"/><xsl:value-of select="$package"/>
+<!-- rpm -Uvh <xsl:value-of select="$package"/> -->
+       </xsl:template>
+
+       <xsl:template name="dependencies" match="external">
+               <xsl:variable name="package"><xsl:value-of select="@name"/>-<xsl:value-of select="@version"/>-<xsl:value-of select="@age"/>.1386.rpm</xsl:variable>
+wget <xsl:value-of select="$ext-repository"/><xsl:value-of select="$package"/>
+<!-- rpm -Uvh <xsl:value-of select="$package"/> -->
+       </xsl:template>
+</xsl:stylesheet>
+   
diff --git a/org.glite.deployment.lb/project/properties.xml b/org.glite.deployment.lb/project/properties.xml
new file mode 100644 (file)
index 0000000..638f02b
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+       Copyright (c) Members of the EGEE Collaboration. 2004 
+       See http://eu-egee.org/partners/ for details on the copyright holders
+       For license conditions see the license file or http://eu-egee.org/license.html
+
+       Common build properties file for the gLite LB Server Node Deployment Unit
+       
+       Author: Alberto Di Meglio <alberto.di.meglio@cern.ch>
+       Version info: $Id$
+       Release: $Name$ 
+       
+       Revision history:
+       $Log$
+-->
+
+<project name="gLite LB Server Deployment Unit 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="${deployment.subsystem.name}"/>
+               
+       <!-- Subsystem prefix -->
+       <property name="subsystem.prefix" value="${deployment.subsystem.prefix}"/>
+
+       <!-- ======================================================
+          Define component properties
+                ====================================================== -->
+                               
+       <!-- Component name prefix -->
+       <property name="component.prefix" value="lb" />
+                       
+       <!-- ======================================================
+          Define general component properties
+                ====================================================== -->
+       
+       <import file="${component.general.properties.file}" />
+                                               
+       <!-- ======================================================
+                Define extra properties here ...
+                ====================================================== -->
+                
+</project>
diff --git a/org.glite.deployment.lb/project/version.properties b/org.glite.deployment.lb/project/version.properties
new file mode 100644 (file)
index 0000000..6a607e0
--- /dev/null
@@ -0,0 +1,3 @@
+module.version=0.0.0
+module.age=0
+module.build=0
\ No newline at end of file