Set scripts to use ftp mirrors instead of a specific http mirror for downloads

This commit is contained in:
Jeremy Huntwork 2006-03-03 20:58:07 +00:00
parent b792da1825
commit b701a0fdbc
5 changed files with 12 additions and 12 deletions

View file

@ -524,14 +524,14 @@ download() { # Download file, write name to MISSING_FILES.DMP if
if [ ! -f $2 ] ; then
case $DL in
wget ) wget $HTTP/$DIR/$2 ;;
curl ) `curl -# $HTTP/$DIR/$2 -o $2` ;;
wget ) wget --passive $FTP/$DIR/$2 ;;
curl ) `curl -# $FTP/$DIR/$2 -o $2` ;;
* ) echo "$DL not supported at this time." ;;
esac
elif ! echo "$MD5" | md5sum -c - >/dev/null 2>/dev/null ; then
case $DL in
wget ) wget -c $HTTP/$DIR/$2 ;;
curl ) `curl -# -C - $HTTP/$DIR/$2 -o $2` ;;
wget ) wget --passive -c $FTP/$DIR/$2 ;;
curl ) `curl -# -C - $FTP/$DIR/$2 -o $2` ;;
* ) echo "$DL not supported at this time." ;;
esac
fi

View file

@ -5,7 +5,7 @@
#####
declare -r SVN="svn://svn.linuxfromscratch.org"
declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/conglomeration
declare -r FTP=http://ftp.linuxfromscratch.org/pub/lfs/conglomeration
declare -r LOG=000-jhahlfs.log
#--- Mount point for the build

8
jhalfs
View file

@ -258,10 +258,10 @@ download() {
if [ ! -f $2 ] ; then
case $DL in
wget )
wget $HTTP/$DIR/$2
wget --passive $FTP/$DIR/$2
;;
curl )
`curl -# $HTTP/$DIR/$2 -o $2`
`curl -# $FTP/$DIR/$2 -o $2`
;;
* )
echo "$DL not supported at this time."
@ -270,10 +270,10 @@ download() {
elif ! echo "$MD5" | md5sum -c - >/dev/null 2>/dev/null ; then
case $DL in
wget )
wget -c $HTTP/$DIR/$2
wget --passive -c $FTP/$DIR/$2
;;
curl )
`curl -# -C - $HTTP/$DIR/$2 -o $2`
`curl -# -C - $FTP/$DIR/$2 -o $2`
;;
* )
echo "$DL not supported at this time."

View file

@ -23,7 +23,7 @@ Debian 3.1 stable.
+ if [ ! -f $2 -o $2 == MD5SUMS ] ; then
case $DL in
wget )
wget $HTTP/$DIR/$2
wget $FTP/$DIR/$2
@@ -274,7 +277,7 @@
echo "$DL not supported at this time."
;;
@ -32,7 +32,7 @@ Debian 3.1 stable.
+ elif [ "$md5_chksum" != "$(md5sum $md5_file | sed -r -e 's/^[[:blank:]]+//;s/[[:blank:]]+$//;s/[[:blank:]]+/\t/g' | cut -f 1)" ] ; then
case $DL in
wget )
wget -c $HTTP/$DIR/$2
wget -c $FTP/$DIR/$2
@@ -287,8 +290,11 @@
;;
esac

View file

@ -5,7 +5,7 @@
#####
declare -r SVN="svn://svn.linuxfromscratch.org"
declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/conglomeration
declare -r FTP=ftp://ftp.linuxfromscratch.org/pub/lfs/conglomeration
declare -r LOG=000-jhalfs.log
#--- Mount point for the build