Replace wget with ftp as default in fetch scripts

This default is overriden by curl when it is available on the system.

This allows for the fetch script to work on MINIX systems without any
additions from PKGSRC, while requiring either a netbsd compatible ftp or
curl to be installed on other systems.

Change-Id: Id79f799e1ef0f5fde6bb1c0e570984b7579519fb
This commit is contained in:
Lionel Sambuc 2014-01-23 11:38:26 +01:00
parent b12bb57943
commit 29b8e5ff06
6 changed files with 10 additions and 14 deletions

View file

@ -7,7 +7,7 @@ cd `dirname $0`
# Configure fetch method
URL="http://www.minix3.org/distfiles-minix/binutils-2.22.tar.bz2"
BACKUP_URL="http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"

View file

@ -7,7 +7,7 @@ cd `dirname $0`
# Configure fetch method
URL="http://www.minix3.org/distfiles-minix/gcc-4.5.3.tar.bz2"
BACKUP_URL="ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"

View file

@ -7,7 +7,7 @@ cd `dirname $0`
# Configure fetch method
URL="http://www.minix3.org/distfiles-minix/gmp-5.1.2.tar.bz2"
BACKUP_URL="ftp://ftp.gmplib.org/pub/gmp-5.1.2/gmp-5.1.2.tar.bz2"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"

View file

@ -7,7 +7,7 @@ cd `dirname $0`
# Configure fetch method
URL="http://www.minix3.org/distfiles-minix/mpc-1.0.1.tar.gz"
BACKUP_URL="http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"

View file

@ -7,7 +7,7 @@ cd `dirname $0`
# Configure fetch method
URL="http://www.minix3.org/distfiles-minix/mpfr-3.1.2.tar.bz2"
BACKUP_URL="http://www.mpfr.org/mpfr-3.1.2/mpfr-3.1.2.tar.bz2"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"

14
gnu/dist/fetch.sh vendored
View file

@ -4,15 +4,16 @@
echo $0
cd `dirname $0`
# Configure fetch method - GMAKE
URL="http://www.minix3.org/distfiles-minix/make-3.80.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2"
FETCH=wget
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"
fi
# Configure fetch method - GMAKE
URL="http://www.minix3.org/distfiles-minix/make-3.80.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2"
# Fetch sources if not available
if [ ! -d gmake ];
then
@ -32,11 +33,6 @@ fi
# Configure fetch method - TEXINFO
URL="http://www.minix3.org/distfiles-minix/texinfo-4.8.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.8.tar.bz2"
FETCH=wget
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"
fi
# Fetch sources if not available
if [ ! -d texinfo ];