From owner-freebsd-ports Tue Jun 20 13:51:51 2000 Delivered-To: freebsd-ports@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id D8B0937C04A for ; Tue, 20 Jun 2000 13:51:46 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA36213; Tue, 20 Jun 2000 16:51:38 -0400 (EDT) (envelope-from wollman) Date: Tue, 20 Jun 2000 16:51:38 -0400 (EDT) From: Garrett Wollman Message-Id: <200006202051.QAA36213@khavrinen.lcs.mit.edu> To: Will Andrews Cc: ports@FreeBSD.org Subject: Re: cvs commit: ports/Mk bsd.sites.mk In-Reply-To: <20000620163806.F32776@argon.gryphonsoft.com> References: <200006200648.XAA21323@freefall.freebsd.org> <200006201507.LAA34568@khavrinen.lcs.mit.edu> <20000620163806.F32776@argon.gryphonsoft.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > It'd be nice if we could provide some sort of mechanism for preferred > mirrors, but other than MASTER_SITE_* vars in make.conf, we can't. Sure we could. Just have the user provide something like `MASTER_SITE_REGION', and then switch the other MASTER_SITE_* defaults based on its contents. E.g.: .if "${MASTER_SITE_REGION}" == "US-East" MASTER_SITE_XCONTRIB+= ftp://ftp5.freebsd.org/pub/X/contrib/%SUBDIR%/ \ ftp://ftp.duke.edu/pub/X11/contrib/%SUBDIR%/ .endif .if "${MASTER_SITE_REGION}" == "Europe" MASTER_SITE_XCONTRIB+= ftp://ftp.gwdg.de/pub/x11/x.org/contrib/%SUBDIR%/ \ ftp://ftp.sunet.se/pub/X11/contrib/%SUBDIR%/ .endif # ... MASTER_SITE_XCONTRIB+= ftp://ftp.x.org/contrib/%SUBDIR%/ (where the last one is the canonical location). -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message