Ignore:
Timestamp:
07/30/2006 04:32:18 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
7613d3c
Parents:
9b09518
Message:

Fixed the paco patch update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/jhalfs-paco.patch

    r9b09518 r8715be1  
    11Index: LFS/master.sh
    22===================================================================
    3 --- LFS/master.sh       (revision 2861)
     3--- LFS/master.sh       (revision 2864)
    44+++ LFS/master.sh       (working copy)
    55@@ -173,6 +173,11 @@
     
    8383Index: LFS/lfs.xsl
    8484===================================================================
    85 --- LFS/lfs.xsl (revision 2861)
     85--- LFS/lfs.xsl (revision 2864)
    8686+++ LFS/lfs.xsl (working copy)
    8787@@ -32,6 +32,9 @@
     
    148148Index: common/config
    149149===================================================================
    150 --- common/config       (revision 2861)
     150--- common/config       (revision 2864)
    151151+++ common/config       (working copy)
    152 @@ -86,6 +86,14 @@
     152@@ -86,6 +86,23 @@
    153153 #--- Run farce testing 0(no)/1(yes)
    154154 RUN_FARCE=0
     
    160160+
    161161+#--- Name of the Paco source package
    162 +PACO_FILE=paco-$PACO_VERSION.tar.*
     162+PACO_FILE=paco-$PACO_VERSION.tar.bz2   # (use .tar.gz if preferred)
     163+
     164+#--- Sourceforge mirror to use for Paco source download
     165+# Europe: heanet, belnet, puzzle, surfnet, switch, kent
     166+# North America: superb-east, superb-west, umn, easynews
     167+# South America: ufpr
     168+# Asia: nchc, jaist
     169+# Australia: optusnet
     170+PACO_MIRROR1=heanet
     171+PACO_MIRROR2=kent
    163172+
    164173 #==== INTERNAL VARIABLES ====
    165174 # Don't edit it unless you know what you are doing
    166175 
    167 @@ -103,3 +111,9 @@
     176@@ -103,3 +120,9 @@
    168177 
    169178 #--- farce report log directory
     
    177186Index: common/func_validate_configs.sh
    178187===================================================================
    179 --- common/func_validate_configs.sh     (revision 2861)
     188--- common/func_validate_configs.sh     (revision 2864)
    180189+++ common/func_validate_configs.sh     (working copy)
    181190@@ -86,10 +86,10 @@
     
    206215--- common/paco-functions       (revision 0)
    207216+++ common/paco-functions       (revision 0)
    208 @@ -0,0 +1,209 @@
     217@@ -0,0 +1,251 @@
    209218+#!/bin/bash
    210219+
     
    416425+esac
    417426+}
     427+
     428+#----------------------------------#
     429+get_paco_src() {                   #
     430+#----------------------------------#
     431+# Download the paco sources
     432+# We don't do any MD5SUM checking as of yet
     433+# http://jaist.dl.sourceforge.net/sourceforge/paco/paco-1.10.10.tar.bz2
     434+
     435+local PACO_URL1="http://$PACO_MIRROR1.dl.sourceforge.net/sourceforge/paco/$PACO_FILE"
     436+local PACO_URL2="http://$PACO_MIRROR2.dl.sourceforge.net/sourceforge/paco/$PACO_FILE"
     437+
     438+# Test if paco is to be used
     439+[ ! "$USE_PACO" = "1" ] && return
     440+
     441+# If the file exists in the archive copy it to the $BUILDDIR/sources dir.
     442+if [ ! -z ${SRC_ARCHIVE} ] &&
     443+   [   -d ${SRC_ARCHIVE} ] &&
     444+   [   -f ${SRC_ARCHIVE}/$PACO_FILE ]; then
     445+  cp ${SRC_ARCHIVE}/$PACO_FILE .
     446+  echo "$PACO_FILE: -- copied from $SRC_ARCHIVE"
     447+  fromARCHIVE=1
     448+else
     449+  echo "${BOLD}${YELLOW}$PACO_FILE: not found in ${SRC_ARCHIVE}${OFF}"
     450+  fromARCHIVE=0
     451+  # If the file does not exist yet in /sources download a fresh one
     452+  if [ ! -f $PACO_FILE ] ; then
     453+    if ! wget $PACO_URL1 && ! wget $PACO_URL2 ; then
     454+      gs_wrt_message "$PACO_FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
     455+      continue
     456+    fi
     457+  fi
     458+fi
     459+
     460+# Copy the freshly downloaded file to the source archive.
     461+if [ ! -z ${SRC_ARCHIVE}  ] &&
     462+   [   -d ${SRC_ARCHIVE}  ] &&
     463+   [   -w ${SRC_ARCHIVE}  ] &&
     464+   [ "$fromARCHIVE" = "0" ] ; then
     465+     echo "Storing file:<$PACO_FILE> in the package archive"
     466+     cp -f $PACO_FILE ${SRC_ARCHIVE}
     467+fi
     468+}
    418469Index: common/paco-build-lfs.sh
    419470===================================================================
     
    433484Index: common/common-functions
    434485===================================================================
    435 --- common/common-functions     (revision 2861)
     486--- common/common-functions     (revision 2864)
    436487+++ common/common-functions     (working copy)
    437488@@ -69,6 +69,9 @@
     
    461512       ;;
    462513     *) exit 1 ;;
     514@@ -836,6 +841,9 @@
     515     # Generate URLs file
     516   create_urls
     517 
     518+    # If Paco is to be used, then download the sources
     519+  get_paco_src
     520+
     521   IFS=$'\x0A'  # Modify the 'internal field separator' to break on 'LF' only
     522   for line in `cat urls.lst`; do
     523     IFS=$saveIFS  # Restore the system defaults
    463524Index: HLFS/hlfs.xsl
    464525===================================================================
    465 --- HLFS/hlfs.xsl       (revision 2861)
     526--- HLFS/hlfs.xsl       (revision 2864)
    466527+++ HLFS/hlfs.xsl       (working copy)
    467528@@ -39,6 +39,9 @@
     
    516577Index: HLFS/master.sh
    517578===================================================================
    518 --- HLFS/master.sh      (revision 2861)
     579--- HLFS/master.sh      (revision 2864)
    519580+++ HLFS/master.sh      (working copy)
    520581@@ -76,7 +76,9 @@
     
    608669Index: master.sh
    609670===================================================================
    610 --- master.sh   (revision 2861)
     671--- master.sh   (revision 2864)
    611672+++ master.sh   (working copy)
    612673@@ -149,6 +149,8 @@
Note: See TracChangeset for help on using the changeset viewer.