# /site/domain/js.berklix.net/etc/make.conf.fetch.src
#	makes
# /site/domain/js.berklix.net/etc/make.conf.fetch
#	via ./Makefile
# See Also /site/domain/no.berklix.net/etc/make.conf.fetch.src
# See Also /site/domain/xx.berklix.net/etc/make.conf.fetch.src

# A good place to search for distfiles: http://www.filewatcher.com

# Remember non FQDN will not resolve so will slow fetch.

# Installed by Makefile to
#	http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/
# See also ./make.conf

# Where to fetch ports/distfiles from.

# Extra sites to look for stuff that Sun removes its license crippled
# old versions from, when we need old for eg openoffice:
#	http://ftp.de.sinuspl.net/pub/src/

# When searching manually also try maybe:
#       http://www.findthatzipfile.com
#	http://www.filewatcher.com

# If you're behind a firewall and need FTP or HTTP proxy services for
# ports collection fetching to work, the following examples give the
# necessary syntax. See the fetch(3) man page for details.
#	FTP_PROXY=	10.0.0.1:21
#	HTTP_PROXY=	10.0.0.1:80

# /etc/csh.cshrc sets these too, but here they're available for all shells.
#	FTP_PROXY=	http://gate:21
#	HTTP_PROXY=	http://gate:80
# They will thus be seen by cd /usr/ports; make fetch
# but not seen by directly invoked:	fetch ftp://somesite/somefile

# Also it is highly recommended that you configure MASTER_SORT_REGEX
# to choose better mirror sites for you. List awk(1)-style regular
# expressions separated by space so MASTER_SITES will be sorted in
# that order. The following example is for Japanese users; change
# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names
# of your nearest/upstream networks to meet your needs.
# MASTER_SORT_REGEX?=	^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.de/ ://[^/]*\.de\.

# 2015-03-15
#	ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/README.txt
#		Our local distfiles have moved to:
#		http://distcache.FreeBSD.org/local-distfiles/
#		distfiles can be fetched by name from there, as specified
#		in the corresponding port that uses it.
#	http://distcache.freebsd.org/local-distfiles/
#		403 Forbidden
#	so hidden content, no index I presume.
MASTER_SORT_REGEX?=	^file: ^http://distcache\.FreeBSD\.org/local-distfiles/ ://[^/]*\.de/ ://[^/]*\.de\.
# Add .fr .uk .at .se JJLATER

# Notes On ${DIS_LOCAL}
# - All files are kept in the newest (= highest) release number directory
#   in which they are used, even if also used in an older release too.
# - Directories with name *.no/ contain distfiles not fetched with
#   FOR_CDROM asserted in /etc/make.conf. Not to be sold on CDROM.
# - Directories with name *.cdrom/ contain distfiles fetched with
#   FOR_CDROM asserted in /etc/make.conf. Can be sold on CDROM.
# - URLS beginning file: will not be found by a chrooted make for release
# - URLS beginning ftp: will be refused if sym linked away from under ~ftp/
#   (which used to happen when not enough disc).

FTP_HOST=ftp.js.berklix.net

P_F_D=pub/FreeBSD/dists

P_F_P_D=pub/FreeBSD/ports/distfiles
# On ftp.freebsd.org /pub/FreeBSD/distfiles -> ports/distfiles

# DIS_LOCAL is in release date order (newest first),
# not simple reverse numeric order (as we often have major & minor numbers
# of 2 or more releases interleaved on their release dates).
# file:/ gets used by internal AMD'd hosts.
# ftp:// will be used if:
#	- I already have it on my internal ftp host, & want to fetch a
#	  copy back to the gateway to local build on gate.
#	- I want to fetch within a chroot such as release build.

# Order: Most likely first, so newest release first.
#	See also:
#       ~/bin/.sh/distfiles_cmpd
#       ~/bin/.sh/distfiles_dups
#       ~/bin/.sh/distfiles_fetch
#       ~/bin/.sh/distfiles_mount

# Quick Tests:
#   source `which unsetenv.csh` ; alias f fetch
#   f ftp://localhost/pub/FreeBSD/dists/Distfile
#   f ftp://ftp.berklix.org/pub/FreeBSD/ports/distfiles/estic-1.40-sources.zip
#   f ftp://gate/pub/FreeBSD/ports/distfiles/pcre-6.7.tar.bz2
#   f file:///etc/motd
#   f /etc/motd

DIS_LOCAL+=           file:///${P_F_D}/current.old/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/current.old/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/current.old/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/current/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/current/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/current/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/13.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/13.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/13.2-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/13.1-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/13.1-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/13.1-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/12.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/12.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/12.4-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/12.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/12.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/12.3-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/12.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/12.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/12.2-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/11.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/11.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/11.3-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/10.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/10.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/10.4-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/9.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/9.3-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/9.3-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/9.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/9.2-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/9.2-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/8.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/8.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/8.4-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/7.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/7.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/7.4-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/6.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/6.4-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/6.4-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/4.11-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/4.11-RELEASE/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/4.11-RELEASE/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/jhs/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/jhs/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/jhs/${DIST_SUBDIR}/

# These chroot jails not accessible from within other jails,
# but accessible from outer prison.
DIS_LOCAL+=                  /jail/usr/ports/distfiles/${DIST_SUBDIR}/
DIS_LOCAL+=           file:///jail/usr/ports/distfiles/${DIST_SUBDIR}/
# DIS_LOCAL+= file:///host/fire/jail/usr/ports/distfiles/${DIST_SUBDIR}/
# DIS_LOCAL+= file:///host/blak/jail/usr/ports/distfiles/${DIST_SUBDIR}/
.if 0	# { lapr
DIS_LOCAL+= file:///host/lapr/jail/usr/ports/distfiles/${DIST_SUBDIR}/
.endif	# } lapr
DIS_LOCAL+= file:///host/dell/jail/usr/ports/distfiles/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/jail/usr/ports/distfiles/${DIST_SUBDIR}/

# DIS_LOCAL+= file:///host/blak/usr/ports/distfiles/
# DIS_LOCAL+= file:///host/blak/usr/ports/distfiles/${DIST_SUBDIR}/
# DIS_LOCAL+= file:///host/fire/usr/ports/distfiles/
# DIS_LOCAL+= file:///host/fire/usr/ports/distfiles/${DIST_SUBDIR}/
.if 0	# { lapr
DIS_LOCAL+= file:///host/lapr/usr/ports/distfiles/
DIS_LOCAL+= file:///host/lapr/usr/ports/distfiles/${DIST_SUBDIR}/
.endif	# } lapr
DIS_LOCAL+= file:///host/dell/usr/ports/distfiles/
DIS_LOCAL+= file:///host/dell/usr/ports/distfiles/${DIST_SUBDIR}/

DIS_LOCAL+=           file:///${P_F_D}/common/${DIST_SUBDIR}/
DIS_LOCAL+=                  /${P_F_D}/common/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/common/${DIST_SUBDIR}/

# DIS_LOCAL+= file:///host/blak/usr1/ftp/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
.if 0	# { lapr
DIS_LOCAL+= file:///host/lapr/usr1/ftp/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
.endif	# } lapr
DIS_LOCAL+= file:///host/dell/usr1/ftp/pub/FreeBSD/distfiles/${DIST_SUBDIR}/

#	Latest version maintenenance by Julian, EG gnokii & estic
#	+ Some Makefiles have been crippled to prevent automatic fetch
#	as Makefile MAINTAINER thinks licence requires non automatic fetch,
#	(so that fetching human must read legal stuff first).
#	Listed almost last to avoid slowing, as very little here.

DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_P_D}/${DIST_SUBDIR}/

# In case I fetch it via browser direct to build host
# rememebering sometimes:
#	- amd mount of /host/gate/.. fails
#	- ftp internal to gate can fails (security, ftpd often off)
#	- if manualy fetched, human sometimes does not know which subdir of
#	  distfiles/ to install it in, so let make fetch take from
#	  ~/tmp/ & install where appropriate under distfiles/
DIS_LOCAL+= file:///home/jhs/Downloads/
DIS_LOCAL+=        /home/jhs/Downloads/

DIS_LOCAL+= file:///home/jhs/tmp/
DIS_LOCAL+=        /home/jhs/tmp/

# DIS_LOCAL+= file:///host/fire/home/jhs/tmp/
# DIS_LOCAL+=        /host/fire/home/jhs/tmp/

# DIS_LOCAL+= file:///host/blak/home/jhs/tmp/
# DIS_LOCAL+=        /host/blak/home/jhs/tmp/

.if 0	# { lapr
DIS_LOCAL+= file:///host/lapr/home/jhs/tmp/
DIS_LOCAL+=        /host/lapr/home/jhs/tmp/
.endif	# } lapr
DIS_LOCAL+= file:///host/dell/home/jhs/tmp/
DIS_LOCAL+=        /host/dell/home/jhs/tmp/

# In case I fetch it via ftp to user host:
# Theres some repetition here as /host/user is currently /host/ftp,
# but that may not remain so.
DIS_LOCAL+= file:///host/user/home/jhs/tmp/
DIS_LOCAL+=        /host/user/home/jhs/tmp/
# DIS_LOCAL+= file:///host/fire/home/jhs/tmp/
# DIS_LOCAL+=        /host/fire/home/jhs/tmp/
# DIS_LOCAL+= ftp://user/home/jhs/tmp/
# A chroot anon ftp wont allow the above.

# In case I fetch it via firefox to user host:
# Theres some repetition here as /host/user is currently /host/ftp,
# but that may not remain so.
DIS_LOCAL+= file:///host/user/home/jhs/Downloads/
DIS_LOCAL+=        /host/user/home/jhs/Downloads/
# DIS_LOCAL+= ftp://user/home/jhs/Downloads/
# A chroot anon ftp wont allow the above.

.if 0	# { Gate is currently just a proxy, not a store.
DIS_LOCAL+= file:///host/gate/${P_F_P_D}/${DIST_SUBDIR}/
DIS_LOCAL+=        /host/gate/${P_F_P_D}/${DIST_SUBDIR}/

U_F_P_D=usr/ftp/pub/FreeBSD/ports/distfiles/
#	Gate often fails to export / (=root) for ${P_F_P_D} but exports usr.

DIS_LOCAL+= /host/gate/${U_F_P_D}/${DIST_SUBDIR}/
DIS_LOCAL+= ftp://gate/${P_F_P_D}/${DIST_SUBDIR}/
#	New stuff on gateway. Sometimes ftp or cvsup do not fetch to
#	internal hosts through my gate proxy, so I run the fetch direct
#	on the gateway, & there it stays till I move it manually.
# /etc/passwd specifies a home anonymous login of "/usr/ftp/./"
#	& /usr/ftp -> ../usr1/ftp
# The URL above only work if one first above comments out
#	FTP_PROXY & HTTP_PROXY & also:
#	unsetenv FTP_PROXY HTTP_PROXY ftp_proxy http_proxy
#	7.1-RELEASE/src/lib/libfetch has no_proxy, 6.4 has, 6.1 has not.

DIS_LOCAL+=  file:///gate/${P_F_P_D}/${DIST_SUBDIR}/
DIS_LOCAL+=    /host/gate/${P_F_P_D}/${DIST_SUBDIR}/
DIS_LOCAL+=    /host/gate/${U_F_P_D}/${DIST_SUBDIR}/
DIS_LOCAL+=    ftp://gate/${P_F_P_D}/${DIST_SUBDIR}/
#	So if my proxy ftpd fails, & I manually fetch on the gateway,
#	& stuff ends up in top dir, rather than a sub dir, it will
#	still be found.
#	(I've checked that build host correctly puts in sub dir later).

DIS_LOCAL+= file:///host/gate/usr/ports/distfiles/${DIST_SUBDIR}/
DIS_LOCAL+=        /host/gate/usr/ports/distfiles/${DIST_SUBDIR}/
DIS_LOCAL+=        ftp://gate/usr/ports/distfiles/${DIST_SUBDIR}/

# In case I fetch it manually, after web search,
# try skipping /${DIST_SUBDIR}
DIS_LOCAL+= file:///host/gate/usr/ports/distfiles/
DIS_LOCAL+= /host/gate/usr/ports/distfiles/
DIS_LOCAL+= ftp://gate/usr/ports/distfiles/
# A chroot anon ftp might not allow the above, depending if under ~ftp.

# /usr/ports is not in allowable path for anonymous ftp.

# In case I manually fetch it via a fetch command mouse copied to gate xterm.
DIS_LOCAL+= file:///host/gate/tmp/
# Warning: /host/gate works from host=fire-9.2 & lapr-9.2,
# but not from host=lapo-8.4
DIS_LOCAL+=        /host/gate/tmp/

DIS_LOCAL+= file:///host/gate/home/`whoami`/tmp/
DIS_LOCAL+= /host/gate/home/`whoami`/tmp/

# whoami often becomes root when called from xs make, so add jhs
# In case building as root, explicitly try jhs on gate too.
DIS_LOCAL+= file:///host/gate/home/jhs/tmp/
DIS_LOCAL+=        /host/gate/home/jhs/tmp/
.endif	# }

DIS_LOCAL+= /home/`whoami`/tmp/
DIS_LOCAL+=      /home/jhs/tmp/
# In case I have found it with firefox

# Do not normally uncomment, avoid loading these remote servers.
# DIS_REMOTE_FTP+= ftp://ftp.berklix.org/${P_F_P_D}/${DIST_SUBDIR}/
# Host with newest ports:
# DIS_REMOTE_FTP+= ftp://slim.berklix.org/${P_F_P_D}/${DIST_SUBDIR}/

# {	Local country
#	In order of usefulness, It's hard to compare contents of distfiles
#	so instead I looked to see which beta versions numbers were in
#	pub/FreeBSD/releases/i386/ISO-IMAGES/6.0

# Hashing out all names not ending freebsd.org, as presumably if they
# commit to mirroring freebs.org they should have a C name in the DNS name
# space (except that is a bit of a crude assumption as eg ftp*.de.freebsd.org
# strikes me over the years as somewhat like a like a cheese with holes.

DIS_REMOTE_FTP+=ftp://ftp.tu-clausthal.de/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp7.freebsd.org = ftp.tu-clausthal.de

DIS_REMOTE_FTP+=ftp://ftp.plusline.net/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp3.de.freebsd.org ftp.plusline.net.

DIS_REMOTE_FTP+=ftp://ftp.rrze.uni-erlangen.de/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp5.de.freebsd.org ftpadmin@rrze.uni-erlangen.de

DIS_REMOTE_FTP+=ftp://ftp.nikoma.de/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp.de.freebsd.org = ftp1.de.freebsd.org = ftp.nikoma.de.

DIS_REMOTE_FTP+=ftp://sunsite.informatik.RWTH-Aachen.DE/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp8.de.freebsd.org sunsite.informatik.RWTH-Aachen.DE
#		(net problem my end - MTU maybe)

DIS_REMOTE_FTP+=ftp://ftp.gwdg.de/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp2.de.freebsd.org = ftp.gwdg.de Month old betas at least !
#		I suspect ftp2 or www2. .de.freebsd.org is no longer maintained.

DIS_REMOTE_FTP+=ftp://ftp.cs.tu-berlin.de/${P_F_P_D}/${DIST_SUBDIR}/
#		ftp6.de.freebsd.org = ftpadm@cs.tu-berlin.de No Betas

# }

# Elsewhere in Europe.
DIS_REMOTE_FTP+=ftp://ftp.uk.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/
#		= ftp.plig.org : Newer Betas than some German sites.

DIS_REMOTE_FTP+=ftp://ftp.se.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/
#		No Betas, good for distfiles though I think.

# 1 of 2 in Europe, 1 across in USA.
DIS_REMOTE_FTP+= ftp://ftp.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/

# Try NetBSD
DIS_REMOTE_FTP+=ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/

# My proxy breaks on FTP, so list a few http://

DIS_REMOTE_HTTP+= http://ftp.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/
# http://ftp.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/ JJLATER not checked yet.

#	I got these with google
#		http://pub/FreeBSD/ports/distfiles/
#		Index of /pub/FreeBSD/ports/distfiles .freebsd.org
DIS_REMOTE_HTTP+=http://ftp.netbsd.org/pub/pkgsrc/distfiles/${DIST_SUBDIR}/

DIS_REMOTE_HTTP+= http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/distfiles/${DIST_SUBDIR}/

DIS_REMOTE_HTTP+= http://distcache.FreeBSD.org/ports-distfiles/${DIST_SUBDIR}/

# MASTER_SITES=	${DIS_LOCAL}
#  /usr/ports/Mk/bsd.port.mk:
#    Primary location(s) for distribution files if not found locally.
#    This get overwritten by Makefiles in EG devel/imake & devel/tkcvs.
#    Setting it in make command line environment doesnt over ride makefiles.

# Added 2020-02-27	{
# /usr/ports/Mk/bsd.sites.mk sets several MASTER_SITE_LOCAL+=
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/make.conf.fetch.src/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/current/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/12.3-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/12.2-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/11.3-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/10.4-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/9.3-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/9.2-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/8.4-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/7.4-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/6.4-RELEASE/%SUBDIR%/
MASTER_SITE_LOCAL+= http://ftp.js.berklix.com/pub/FreeBSD/dists/4.11-RELEASE/%SUBDIR%/
#			}

MASTER_SITE_BACKUP=
# MASTER_SITE_BACKUP+=	${DIS_REMOTE_FTP}
MASTER_SITE_BACKUP+=	${DIS_REMOTE_HTTP}
#  bsd.port.mk:	Backup location(s) for distribution files and patch files if
#		not found locally and ${MASTER_SITES}/${PATCH_SITES}
#		(default: ftp://ftp.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/)/

MASTER_SITE_OVERRIDE= ${DIS_LOCAL}
#  bsd.port.mk:	If set, override the MASTER_SITES setting with this value.
#  String. Assert it to avoid doing slow remote internet fetches to
#  ${MASTER_SITES} when I have most on local fast ethernet servers.

# MASTER_SITE_FREEBSD
#  bsd.port.mk:	If set, only use ${MASTER_SITE_BACKUP} for MASTER_SITES.
#  Binary.

# http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#access :
# To retrieve the file /etc/motd,
#	ftp://user@host/%2f/etc/motd/

# apache by default does an anonymous ftp login eg:
#	user: anonymous
#	password: apache_proxy@
# For apache to try a personal rather than anonymous access
#	ftp://username:password@host/myfile/

# /usr/ports/Mk/bsd.port.mk
#	FETCH_ARGS    - Arguments to ftp/http fetch command.
#                                 Default: "-ApRr"
#	FETCH_ARGS="-ApRrv"
# Man fetch:
#	-A	Do not automatically follow ``temporary'' (302) redirects.
#		Some broken Web sites will return a redirect instead of a
#		not-found error when the requested object does not exist.
#	-p	Use passive FTP.  This is useful if you are behind a firewall
#		which blocks incoming connections.  Try this flag if fetch
#		seems to hang when retrieving FTP URLs.
#	-R	The output files are precious, and should not be deleted
#		under any circumstances, even if the transfer failed or was
#		incomplete.
#	-r	Restart a previously interrupted transfer.  Note that the -m
#		and -r flags are mutually exclusive.
#	-v	Increase verbosity level.
# 30.08.2010 experiment:
#	-A	Remove later
#	-p	Removed
#		gate /usr/local/sbin/ftp.proxy doesnt like passive.
#		As proven with fetch -ARrv \
#		ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/mutt-1.4.2.3.tar.gz
# FETCH_ARGS="-ARrv"	Pre 2012-06-06
FETCH_ARGS=-ARrv

# RANDOMIZE_MASTER_SITES="YES"	# Not yet tried
#	MK/bsd.port.mk presumably shuffling _RANDOMIZE_SITE
