From e168c71513a48e006360b4e5f9c9b9b3caddebf6 Mon Sep 17 00:00:00 2001 From: Alberto Di Meglio Date: Sun, 17 Oct 2004 22:34:39 +0000 Subject: [PATCH] Use new installer script format Use global filters Use RH standard expat rpm in sdf template --- org.glite.deployment.lb/build.xml | 38 +---- .../project/glite-lb.sdf.xml.template | 8 +- org.glite.deployment.lb/project/lxscript-rpm.xsl | 179 ++++++++++++++++++--- 3 files changed, 161 insertions(+), 64 deletions(-) diff --git a/org.glite.deployment.lb/build.xml b/org.glite.deployment.lb/build.xml index 8274bcb..0ceaee9 100644 --- a/org.glite.deployment.lb/build.xml +++ b/org.glite.deployment.lb/build.xml @@ -13,6 +13,9 @@ Revision history: $Log$ + Revision 1.4 2004/10/14 16:07:53 dimeglio + Removed wms.thirdparty-globus-ssl-utils + Revision 1.3 2004/10/14 11:50:22 dimeglio Fixed some name and formatting issues @@ -92,41 +95,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -62,8 +62,8 @@ age="0" arch="i386"/> - \ 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 index 860a2c3..20c12b8 100644 --- a/org.glite.deployment.lb/project/lxscript-rpm.xsl +++ b/org.glite.deployment.lb/project/lxscript-rpm.xsl @@ -15,50 +15,179 @@ #!/bin/sh + +# 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 + +# glite-lb_installer v. # -# glite-lb_installer -# usage: glite-lb_installer [-u] -# -u uninstall -# -# glite-wn_installer installs the gLite Worker Node Deployment Unit +# The glite-lb_installer installs the gLite Deployment Unit # - +# Usage: glite-lb_installer [-u|-v|--help] +# -u uninstall +# -v print version +# --help print script usage info +# Return codes: 0 - Ok +# 1 - if a file could not be downloaded ############################################################################### -# Download global dependencies - - +function install() +{ + # Download global dependencies + + + true + + + + + + # Download dependencies RPMS from repository + + + true + -############################################################################### + + # Download RPMS from repository + + + true + + + + - -############################################################################### -# Download dependencies RPMS from repository - - - -############################################################################### -# Download RPMS from repository - - - + # Install all RPMS + rpm -Uvh $RPMLIST +} + ############################################################################### +function uninstall() +{ + # Global dependencies + + + false + + + + + + # dependencies RPMS from repository + + + false + + + + # RPMS from repository + + + false + + + + # Uninstall all RPMS + rpm -e $RPMLIST +} + ############################################################################### -# Install all RPMS -rpm -Uvh *.rpm +function usage() +{ + echo + echo Copyright \(c\) Members of the EGEE Collaboration. 2004 + echo See http://eu-egee.org/partners/ for details on the copyright holders + echo For license conditions see the license file or http://eu-egee.org/license.html + echo + echo glite-lb_installer v. + echo + echo The glite-lb_installer installs the gLite Deployment Unit + echo + echo Usage: glite-lb_installer \[-u\|-v\|--help\] + echo -u uninstall + echo -v print version + echo --help print script usage info + echo + echo Return codes: + echo 0 - Ok + echo 1 - if a file could not be downloaded + echo +} + ############################################################################### +function version +{ + echo + echo Copyright \(c\) Members of the EGEE Collaboration. 2004 + echo See http://eu-egee.org/partners/ for details on the copyright holders + echo For license conditions see the license file or http://eu-egee.org/license.html + echo + echo glite-lb_installer v. + echo +} + + +RPMLIST= + +############################################################################### +# Main + +while getopts uvh opt +do + case $opt in + 'u') uninstall + exit 0 + ;; + 'v') version + exit 0 + ;; + 'h') usage + exit 0 + ;; + esac +done + +install + +exit 0 + --..rpm -wget + + +wget -N --non-verbose +if [ ! -f "" ] +then + echo + echo ERROR: could not be downloaded! + exit 1 +fi + + +RPMLIST="$RPMLIST " + --..rpm -wget /RPMS/ + + +wget -N --non-verbose /RPMS/ +if [ ! -f "" ] +then + echo + echo ERROR: could not be downloaded! + exit 1 +fi + + +RPMLIST="$RPMLIST " -- 1.8.2.3