Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2005 16:47:01 +0300
From:      Esa Karkkainen <ejk@iki.fi>
To:        Benjamin Lutz <benlutz@datacomm.ch>
Cc:        nocturnal <nocturnal@swehack.se>, freebsd-ports@freebsd.org
Subject:   Re: Flaws in the ports system?
Message-ID:  <20051022134701.GA14596@pp.htv.fi>
In-Reply-To: <435825F8.4020305@datacomm.ch>
References:  <4357D830.7060506@swehack.se> <435825F8.4020305@datacomm.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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