summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-09-13 06:22:11 +0000
committerjkh <jkh@FreeBSD.org>1994-09-13 06:22:11 +0000
commit5a8c75ff30deb1ecf1663e944e3f2fb0d99f7447 (patch)
tree219a6ecb6530257fc78dbca62a1fa002f45c4c56 /share
parent450da2127568f8f221b0d8521a1ba04abb940a9c (diff)
downloadFreeBSD-src-5a8c75ff30deb1ecf1663e944e3f2fb0d99f7447.zip
FreeBSD-src-5a8c75ff30deb1ecf1663e944e3f2fb0d99f7447.tar.gz
Ok, I think I have this whole HOME_LOCATION / MASTER_SITE stuff resolved
to a reasonable compromise: MASTER_SITES now contains a space seperated list of sites for which each DISTFILE may be retrieved. This should be a directory spec, which will be concatenated with each file in DISTFILES. HOME_LOCATION is *gone* now and isn't used for anything, so you can delete it from your Makefiles. If you want to force a fetch from a given location, simply do something like: MASTER_SITES= ftp://fnord.foo.bar/pub/dist DISTFILES= a.tar.gz b.tar.gz Your entry in MASTER_SITES will be tried first to fetch a.tar.gz and b.tar.gz, followed by any master sites we have set up (right now, only freebsd.cdrom.com).
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk24
1 files changed, 14 insertions, 10 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 082f732..3b4be5b 100644
--- a/share/mk/bsd.port.mk
+++ b/share/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 \
OpenPOWER on IntegriCloud