From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 17:38:08 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 848EE106566B for ; Wed, 23 Dec 2009 17:38:08 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:a80a:1:21f:d0ff:fe22:b8a8]) by mx1.freebsd.org (Postfix) with ESMTP id 46F6F8FC08 for ; Wed, 23 Dec 2009 17:38:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id 4DCDA30759 for ; Wed, 23 Dec 2009 11:38:07 -0600 (CST) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K4ihddU1kDck for ; Wed, 23 Dec 2009 11:38:04 -0600 (CST) Received: from athena.daycos.com (athena.daycos.com [IPv6:2001:470:c054:1:221:9bff:fe00:de3f]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTPSA id 472B530755 for ; Wed, 23 Dec 2009 11:38:04 -0600 (CST) Message-ID: <4B325579.5060106@strauser.com> Date: Wed, 23 Dec 2009 11:38:01 -0600 From: Kirk Strauser User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.5) Gecko/20091214 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Blacklisting a SourceForge mirror from ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 17:38:08 -0000 in ports/Mk/bsd.sites.mk, the list of SourceForge mirrors is defined by: .for mirror in heanet sunet iweb switch surfnet kent freefr \ voxel jaist osdn nchc transact softlayer \ internode biznetnetworks ufpr # garr dfn ovh (redirect as of 2009-Sep-02) MASTER_SITE_SOURCEFORGE+= \ http://${mirror}.dl.sourceforge.net/project/%SUBDIR%/ .endfor .endif The problem is that the first mirror, heanet, is glacially slow every time I try to download from it. Transfers of 5-10KB/s aren't unheard of. When I see that a large tarball is coming down from heanet, I'll routinely kill the transfer and manually download it. In my /etc/make.conf, I have: MASTER_SITE_SOURCEFORGE=http://sunet.dl.sourceforge.net/%SUBDIR%/ That *usually* works, but will often return a redirect, in which case the fetch goes back to using the list of mirrors, starting with heanet, which puts me back in the same predicament. I could obviously edit bsd.sites.mk to remove that entry, but updates could wipe out my changes. Worse, if the SF layout changes and bsd.sites.mk is updated to reflect the new structure, a locally edited version wouldn't have those fixes. All that said, is there a better way to specify SourceForge mirrors? A blacklist would be ideal for this specific situation, but I'm open to ideas. -- Kirk Strauser