Flaws in the ports system?

Esa Karkkainen ejk at iki.fi
Sat Oct 22 06:47:09 PDT 2005


On Fri, Oct 21, 2005 at 01:19:20AM +0200, Benjamin Lutz wrote:
> - Mirror selection. For us europeans, the US sourceforge mirror which
>   is used by a lot of ports by default is very slow. It is possible to
>   override the mirror selection by setting some variables in make.conf,
>   but it's far from apparent how to do so, or that it is even possible.
>   Additionally, while fetch seems to have some support for resuming
>   interrupted downloads, often enough a partial or corrupted existing
>   distfile leads to fetch doing nothing at all. The solution is easy,
>   just delete the existing distfile, but the tools don't hint at that.

I've been using a couple of "tricks" in my /etc/make.conf, which I've
cut&pasted to this e-mail.

By defining MASTER_SORT_REGEX you can have MASTER_SITES sorted to suite
your needs. Here's mine.

MASTER_SORT_REGEX?= ://[^/]*\.fi[/.] ://[^/]*\.se[/.] ://[^/]*\.uk[/.] ://[^/]*\.eu[/.] ://[^/]*\.no[/.] ://[^/]*\.dk[/.] ://[^/]*\.de[/.]

You can add your own mirror sites too.

And I've found few local mirrors, which do not always have the latest
files, but download speeds are quite impressive in my case ;-)

MASTER_SITE_MOZILLA+=	\
	ftp://ftp.funet.fi/pub/mirrors/ftp.mozilla.org/%SUBDIR%/
MASTER_SITE_XFREE+=	ftp://ftp.sunet.se/pub/XFree86/%SUBDIR%/source/

You'll find all common sites defined in /usr/ports/Mk/bsd.sites.mk file.

-- 
"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
        -- Douglas Adams 1952 - 2001


More information about the freebsd-ports mailing list