Changeset 8715be1 for contrib/jhalfs-paco.patch
- Timestamp:
- 07/30/2006 04:32:18 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 7613d3c
- Parents:
- 9b09518
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/jhalfs-paco.patch
r9b09518 r8715be1 1 1 Index: LFS/master.sh 2 2 =================================================================== 3 --- LFS/master.sh (revision 286 1)3 --- LFS/master.sh (revision 2864) 4 4 +++ LFS/master.sh (working copy) 5 5 @@ -173,6 +173,11 @@ … … 83 83 Index: LFS/lfs.xsl 84 84 =================================================================== 85 --- LFS/lfs.xsl (revision 286 1)85 --- LFS/lfs.xsl (revision 2864) 86 86 +++ LFS/lfs.xsl (working copy) 87 87 @@ -32,6 +32,9 @@ … … 148 148 Index: common/config 149 149 =================================================================== 150 --- common/config (revision 286 1)150 --- common/config (revision 2864) 151 151 +++ common/config (working copy) 152 @@ -86,6 +86, 14@@152 @@ -86,6 +86,23 @@ 153 153 #--- Run farce testing 0(no)/1(yes) 154 154 RUN_FARCE=0 … … 160 160 + 161 161 +#--- 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 163 172 + 164 173 #==== INTERNAL VARIABLES ==== 165 174 # Don't edit it unless you know what you are doing 166 175 167 @@ -103,3 +1 11,9 @@176 @@ -103,3 +120,9 @@ 168 177 169 178 #--- farce report log directory … … 177 186 Index: common/func_validate_configs.sh 178 187 =================================================================== 179 --- common/func_validate_configs.sh (revision 286 1)188 --- common/func_validate_configs.sh (revision 2864) 180 189 +++ common/func_validate_configs.sh (working copy) 181 190 @@ -86,10 +86,10 @@ … … 206 215 --- common/paco-functions (revision 0) 207 216 +++ common/paco-functions (revision 0) 208 @@ -0,0 +1,2 09@@217 @@ -0,0 +1,251 @@ 209 218 +#!/bin/bash 210 219 + … … 416 425 +esac 417 426 +} 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 +} 418 469 Index: common/paco-build-lfs.sh 419 470 =================================================================== … … 433 484 Index: common/common-functions 434 485 =================================================================== 435 --- common/common-functions (revision 286 1)486 --- common/common-functions (revision 2864) 436 487 +++ common/common-functions (working copy) 437 488 @@ -69,6 +69,9 @@ … … 461 512 ;; 462 513 *) 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 463 524 Index: HLFS/hlfs.xsl 464 525 =================================================================== 465 --- HLFS/hlfs.xsl (revision 286 1)526 --- HLFS/hlfs.xsl (revision 2864) 466 527 +++ HLFS/hlfs.xsl (working copy) 467 528 @@ -39,6 +39,9 @@ … … 516 577 Index: HLFS/master.sh 517 578 =================================================================== 518 --- HLFS/master.sh (revision 286 1)579 --- HLFS/master.sh (revision 2864) 519 580 +++ HLFS/master.sh (working copy) 520 581 @@ -76,7 +76,9 @@ … … 608 669 Index: master.sh 609 670 =================================================================== 610 --- master.sh (revision 286 1)671 --- master.sh (revision 2864) 611 672 +++ master.sh (working copy) 612 673 @@ -149,6 +149,8 @@
Note:
See TracChangeset
for help on using the changeset viewer.