diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-13 06:22:11 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-13 06:22:11 +0000 |
commit | 491e992bb5eff39fdd22f6374c4d30132d6721ab (patch) | |
tree | 1dae62ce276b90574b3e181669da7c9e4f3413c5 /Mk/bsd.port.mk | |
parent | fc6ee137214d467d075e7f844f9b4d8cf08a1b24 (diff) | |
download | ports-491e992bb5eff39fdd22f6374c4d30132d6721ab.tar.gz ports-491e992bb5eff39fdd22f6374c4d30132d6721ab.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 082f73252053..3b4be5be7d4b 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.32 1994/09/11 12:06:34 jkh Exp $ +# $Id: bsd.port.mk,v 1.33 1994/09/11 12:55:54 jkh Exp $ # # Please view me with 4 column tabs! @@ -126,9 +126,9 @@ PKG_CMD?= pkg_create PKG_ARGS?= -v -c ${PKGDIR}/COMMENT -d ${PKGDIR}/DESCR -f ${PKGDIR}/PLIST PKG_SUFX?= .tgz -# I guess we're in the master distribution business! :) -MASTER_SITE?= ftp://freebsd.cdrom.com/pub/FreeBSD/FreeBSD-current/ports/distfiles -HOME_LOCATION?= <original site unknown> +# I guess we're in the master distribution business! :) As we gain mirror +# sites for distfiles, add them to this list. +MASTER_SITES+= ftp://freebsd.cdrom.com/pub/FreeBSD/FreeBSD-current/ports/distfiles # Derived names so that they're easily overridable. DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} @@ -285,12 +285,16 @@ fetch: pre-fetch for file in ${DISTFILES}; do \ if [ ! -f $$file ]; then \ echo ">> $$file doesn't seem to exist on this system."; \ - echo ">> Attempting to fetch it from master site."; \ - if ${NCFTP} ${NCFTPFLAGS} ${MASTER_SITE}/$$file; then \ - echo ">> $$file Fetched!" ; \ - else \ - echo ">> Couldn't fetch it - please try to manually retreive";\ - echo ">> ${HOME_LOCATION}/$$file into ${DISTDIR} and try again."; \ + echo ">> Attempting to fetch it from a master site."; \ + for site in ${MASTER_SITES}; do \ + if ${NCFTP} ${NCFTPFLAGS} $$site/$$file; then \ + echo ">> $$file Fetched!" ; \ + break; \ + fi \ + done \ + if [ ! -f $$file ]; then \ + echo ">> Couldn't fetch it - please try to retreive this";\ + echo ">> port manually into ${DISTDIR} and try again."; \ exit 1; \ fi; \ fi \ |