# /site/domain/js.berklix.net/etc/make.conf.fetch # Installed by /site/etc/Makefile to # http://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 the brain dead Sun firm removes its licensed crippled old versions ftom, when we need old for eg openoffice: # http://ftp.de.sinuspl.net/pub/src/ # 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\. # 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/ FTP_HOST=ftp 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, not numeric order # 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 likeliest first, so newest release first. # See also ~/bin/.sh/distfiles_cmpd #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/${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}/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:///${P_F_D}/7.0-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/7.0-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/7.0-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= file:///${P_F_D}/6.3-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/6.3-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/6.3-RELEASE/${DIST_SUBDIR}/ # Accesing laps from fire under a chroot is slow. # Maybe cos no /etc/nsswitch.conf or /etc/resolv.conf ? # DIS_LOCAL+= file:///host/laps/${P_F_D}/current/${DIST_SUBDIR}/ # DIS_LOCAL+= /host/laps/${P_F_D}/current/${DIST_SUBDIR}/ # DIS_LOCAL+= ftp://laps/${P_F_D}/current/${DIST_SUBDIR}/ DIS_LOCAL+= file:///${P_F_D}/6.2-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/6.2-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/6.2-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= file:///${P_F_D}/6.1-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/6.1-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/6.1-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= file:///${P_F_D}/5.5-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/5.5-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/5.5-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}/4.10-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/4.10-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/4.10-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= file:///${P_F_D}/5.1-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= /${P_F_D}/5.1-RELEASE/${DIST_SUBDIR}/ DIS_LOCAL+= ftp://${FTP_HOST}/${P_F_D}/5.1-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}/ # 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. U_F_P_D=usr/ftp/pub/FreeBSD/ports/distfiles # U_F_P_D ia an extra cludge as ${P_F_P_D} often fails # as gate refuses to export /=root but does export /usr. DIS_LOCAL+= file:///host/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}/ # New stuff on gateway. Sometimes ftp or cvsup dont 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 # 6.1-RELEASE/src/lib/libfetch has no no_proxy DIS_LOCAL+= file:///gate/${P_F_P_D}/ DIS_LOCAL+= /host/gate/${P_F_P_D}/ DIS_LOCAL+= /host/gate/${U_F_P_D}/ DIS_LOCAL+= ftp://gate/${P_F_P_D}/ # 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 isnt in allowable path for anonymous ftp. # In case I fetch it via fetch command moused to gate xterm. DIS_LOCAL+= file:///host/gate/tmp/ DIS_LOCAL+= /host/gate/tmp/ DIS_LOCAL+= file:///host/gate/usr/home/`whoami`/tmp/ DIS_LOCAL+= /host/gate/usr/home/`whoami`/tmp/ # In case building as root, explicitly try jhs on gate too. DIS_LOCAL+= file:///host/gate/usr/home/jhs/tmp/ DIS_LOCAL+= /host/gate/usr/home/jhs/tmp/ # In case I fetch it via google & browser to build host DIS_LOCAL+= file:///usr/home/jhs/tmp/ DIS_LOCAL+= /usr/home/jhs/tmp/ DIS_LOCAL+= file:///usr/home/jhs/tmp/distfiles/ DIS_LOCAL+= /usr/home/jhs/tmp/distfiles/ # In case I fetch it via google & browser to user host: DIS_LOCAL+= file:///host/user/usr/home/jhs/tmp/ DIS_LOCAL+= /host/user/usr/home/jhs/tmp/ # DIS_LOCAL+= ftp://user/usr/home/jhs/tmp/ # A chroot anon ftp wont allow the above. # Bulk disc store: ftp.berklix DIS_REMOTE+= ftp://ftp.berklix.org/${P_F_P_D}/${DIST_SUBDIR}/ # Host with newest current ports: slim.berklix # DIS_REMOTE+= 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.tu-clausthal.de/${P_F_P_D}/${DIST_SUBDIR}/ # # ftp7.freebsd.org = ftp.tu-clausthal.de # DIS_REMOTE+=ftp://ftp.plusline.net/${P_F_P_D}/${DIST_SUBDIR}/ # # ftp3.de.freebsd.org ftp.plusline.net. # DIS_REMOTE+=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.nikoma.de/${P_F_P_D}/${DIST_SUBDIR}/ # # ftp.de.freebsd.org = ftp1.de.freebsd.org = ftp.nikoma.de. # DIS_REMOTE+=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.gwdg.de/${P_F_P_D}/${DIST_SUBDIR}/ # # ftp2.de.freebsd.org = ftp.gwdg.de Month old betas at least ! # DIS_REMOTE+=ftp://ftp.cs.tu-berlin.de/${P_F_P_D}/${DIST_SUBDIR}/ # # ftp6.de.freebsd.org = ftpadm@cs.tu-berlin.de No Betas # DIS_REMOTE+=ftp://ftp.leo.org/${P_F_P_D}/${DIST_SUBDIR}/ # Fast in town, but ftp.proxy negotiation fails. # even fails manually direct Sat Sep 3 11:35:17 CEST 2005 # ftp4.de.freebsd.org = ftp.leo.org = informatik.tu-muenchen.de # No route to host, (even from my external server) # } # Elsewhere in Europe. DIS_REMOTE+=ftp://ftp.uk.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/ # = ftp.plig.org : Newer Betas than some German sites. DIS_REMOTE+=ftp://ftp.se.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/ # No Betas, good for distfiles though I think. # Not in Europe, Consume Atlantic bandwidth. DIS_REMOTE+= ftp://ftp.freebsd.org/${P_F_P_D}/${DIST_SUBDIR}/ # Try NetBSD DIS_REMOTE+=ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/ # MASTER_SITES= ${DIS_LOCAL} # 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. MASTER_SITE_BACKUP= ${DIS_REMOTE} # 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