How do I change which server to download ports from?
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Aug 29 08:27:03 GMT 2005
On 2005-08-28 21:58, "Gary W. Swearingen" <garys at opusnet.com> wrote:
>"Robert G." <rob5g at 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%/
More information about the freebsd-questions
mailing list