From owner-freebsd-ports@FreeBSD.ORG Sat Oct 22 13:47:09 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7537816A41F for ; Sat, 22 Oct 2005 13:47:09 +0000 (GMT) (envelope-from ekarkkai@pp.htv.fi) Received: from smtp2.pp.htv.fi (smtp2.pp.htv.fi [213.243.153.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8924043D49 for ; Sat, 22 Oct 2005 13:47:04 +0000 (GMT) (envelope-from ekarkkai@pp.htv.fi) Received: from cs181097070.pp.htv.fi (cs181097070.pp.htv.fi [82.181.97.70]) by smtp2.pp.htv.fi (Postfix) with ESMTP id 2F7D9296C01; Sat, 22 Oct 2005 16:47:03 +0300 (EEST) Received: from thunderbolt.my.domain (thunderbolt.my.domain [10.192.168.30]) by cs181097070.pp.htv.fi (8.13.3/8.13.3) with ESMTP id j9MDl2lC055189; Sat, 22 Oct 2005 16:47:02 +0300 (EEST) (envelope-from ekarkkai@pp.htv.fi) Received: from thunderbolt.my.domain (localhost [127.0.0.1]) by thunderbolt.my.domain (8.13.3/8.13.3) with ESMTP id j9MDl290024973; Sat, 22 Oct 2005 16:47:02 +0300 (EEST) (envelope-from ejk@thunderbolt.my.domain) Received: (from ejk@localhost) by thunderbolt.my.domain (8.13.3/8.13.3/Submit) id j9MDl1Zu024972; Sat, 22 Oct 2005 16:47:01 +0300 (EEST) (envelope-from ejk) Date: Sat, 22 Oct 2005 16:47:01 +0300 From: Esa Karkkainen To: Benjamin Lutz Message-ID: <20051022134701.GA14596@pp.htv.fi> Mail-Followup-To: Benjamin Lutz , nocturnal , freebsd-ports@freebsd.org References: <4357D830.7060506@swehack.se> <435825F8.4020305@datacomm.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <435825F8.4020305@datacomm.ch> User-Agent: Mutt/1.4.2.1i Cc: nocturnal , freebsd-ports@freebsd.org Subject: Re: Flaws in the ports system? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2005 13:47:09 -0000 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