Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 11:26:55 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Robert G." <rob5g@adelphia.net>, freebsd-questions@freebsd.org
Subject:   Re: How do I change which server to download ports from?
Message-ID:  <20050829082655.GA16597@orion.daedalusnetworks.priv>
In-Reply-To: <stfystuyo8.yst@mail.opusnet.com>
References:  <43127FE1.5050007@adelphia.net> <stfystuyo8.yst@mail.opusnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-08-28 21:58, "Gary W. Swearingen" <garys@opusnet.com> wrote:
>"Robert G." <rob5g@adelphia.net> writes:
>> I'm not talking about SUPFILE= in /etc/make.conf to change which CVS server
>> I download all the ports, I'm talking about when I download/install
>> individual ports it seems to pick a random server. Sometimes the server is
>> one in another country, and I download a 30MB file at 5KB/sec which takes
>> some time (I have 6.5Mbps).  Is there an option to change this to a server
>> of my choice?
>
> MASTER_SITE_OVERRIDE in /usr/ports/Mk/bsd.ports.mk sounds like what you want
> (to use in your "make").

Exactly.

There are other ports-related ``make.conf'' options that one can use.  See the
ports(7) manpage for some of them and the /usr/ports/Mk/*.mk files for the rest.

I have the following in my ``/etc/make.conf'' file, to make sure GNU software
is picked up from ftp.ntua.gr, which is a mirror that is network-wise close to
my FreeBSD machines here in Greece:

	MASTER_SITE_GNU=	ftp://ftp.ntua.gr/pub/gnu/%SUBDIR%/

Note that the ``bsd.sites.mk'' Ports makefile only *appends* to existing make
variables, so any override come first.  More than one MASTER_SITE_GNU sites
can be specified too:

	MASTER_SITE_GNU=	ftp://ftp.ntua.gr/pub/gnu/%SUBDIR%/ \
				ftp://ftp.duth.gr/pub/gnu/%SUBDIR%/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050829082655.GA16597>