diff --git a/BLFS/libs/scripts.xsl b/BLFS/libs/scripts.xsl index c88c1f2..926f07e 100644 --- a/BLFS/libs/scripts.xsl +++ b/BLFS/libs/scripts.xsl @@ -179,9 +179,30 @@ cd $UNPACKDIR - - + SRC_ARCHIVE=$SRC_ARCHIVE +FTP_SERVER=$FTP_SERVER + mkdir -p ${section} cd ${section} + + for line in $(grep -v '^#' ../${sect-ver}.wget) ; do + if [[ ! -f $line ]] ; then + if [[ -f $SRC_ARCHIVE/Xorg/$section/$line ]] ; then + cp $SRC_ARCHIVE/Xorg/$section/$line $line + elif [[ -f $SRC_ARCHIVE/Xorg/$line ]] ; then + cp $SRC_ARCHIVE/Xorg/$line $line + elif [[ -f $SRC_ARCHIVE/$section/$line ]] ; then + cp $SRC_ARCHIVE/$section/$line $line + elif [[ -f $SRC_ARCHIVE/$line ]] ; then + cp $SRC_ARCHIVE/$line $line + else + wget ${FTP_SERVER}conglomeration/Xorg/$line || \ + wget http://xorg.freedesktop.org/releases/individual/util/$line + fi + fi +done +md5sum -c ../${sect-ver}.md5 +cp ../${sect-ver}.wget ../${sect-ver}.wget.orig +cp ../${sect-ver}.md5 ../${sect-ver}.md5.orig for package in $(grep -v '^#' ../${sect-ver}.wget) ; do @@ -191,7 +212,11 @@ cd $UNPACKDIR cd .. rm -rf $packagedir -done + sed -i "/${package}/d" ../${sect-ver}.wget + sed -i "/${package}/d" ../${sect-ver}.md5 +done +mv ../${sect-ver}.wget.orig ../${sect-ver}.wget +mv ../${sect-ver}.md5.orig ../${sect-ver}.md5 sudo /sbin/ @@ -433,7 +458,9 @@ done - sect-ver= + section= + + sect-ver= diff --git a/README.BLFS b/README.BLFS index 585f93c..430f9ae 100644 --- a/README.BLFS +++ b/README.BLFS @@ -196,10 +196,17 @@ $Id$ 4.5 XORG7 - The generated scripts for Xorg7 pseudo-packages don't have support for - $SRC_ARCHIVE. If you have previously downloaded the packages, you must edit + The generated scripts for Xorg7 pseudo-packages have $SRC_ARCHIVE + support for individual packages, but not for patches nor *.wget and *.md5 + files. + + If you have previously downloaded the patches, you must edit the scripts to use your local packages. + The *.wget and *.md5 files should be downladed always from inside + the scripts to be sure that the most current individual packages are + used. Thus don't reuse previouly existing ones. + 4.6 PATCHES By default, all required patches will be downloaded from the NET.