From owner-freebsd-ports Tue Jun 20 14: 1:54 2000 Delivered-To: freebsd-ports@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 773C637B553 for ; Tue, 20 Jun 2000 14:01:50 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net. [192.168.0.24]) by thehousleys.net (8.9.3/8.9.3) with ESMTP id RAA17253; Tue, 20 Jun 2000 17:01:42 -0400 (EDT) (envelope-from jim@thehousleys.net) Message-ID: <394FDB85.18B291B1@thehousleys.net> Date: Tue, 20 Jun 2000 17:00:53 -0400 From: James Housley Organization: The Housleys dot Net X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Garrett Wollman Cc: Will Andrews , ports@FreeBSD.ORG Subject: Re: cvs commit: ports/Mk bsd.sites.mk References: <200006200648.XAA21323@freefall.freebsd.org> <200006201507.LAA34568@khavrinen.lcs.mit.edu> <20000620163806.F32776@argon.gryphonsoft.com> <200006202051.QAA36213@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Garrett Wollman wrote: > > > 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 > # ... What about something like: REGION?= USA # Region where you are located values of USA, EUROPE, ASIA, AUSTRALIA MASTER_SITE_XCONTRIB+=$MASTER_SITE_XCONTRIB_$REGION for i in (regions) if $i != $REGION then MASTER_SITE_XCONTRIB+=$MASTER_SITE_XCONTRIB_$i fi end I know it is not perfect Makefile code but the logic is to all the regions sites first then the rest of them. Jim -- Unix is very user-friendly. It's just picky who its friends are. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message