From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 16:00:17 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FDFF83D; Mon, 28 Apr 2014 16:00:17 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4DA1F9E; Mon, 28 Apr 2014 16:00:16 +0000 (UTC) Received: from Alfreds-MacBook-Pro-9.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id CCA771A3C23; Mon, 28 Apr 2014 09:00:16 -0700 (PDT) Message-ID: <535E7B10.3030103@freebsd.org> Date: Mon, 28 Apr 2014 09:00:16 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Julian Elischer , ports@freebsd.org Subject: Re: setting up a ports distfile mirror References: <535E0CD7.2030900@freebsd.org> In-Reply-To: <535E0CD7.2030900@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 16:00:17 -0000 Julian, why not have a look at the freenas build system, you'll find it does a lot of the magic you are looking to do. I'll be at BSDcan and I can walk anyone through it that is interested. In the meanwhile the fix to your problem is this: : ${MASTER_SITE_OVERRIDE='http://gitserver/freenas/distfiles/${DIST_SUBDIR}/'} (from: https://github.com/freenas/freenas/blob/master/nanobsd/common) On 4/28/14 1:09 AM, Julian Elischer wrote: > I noticed that if I set an override site, that it uses it differently > that a primary site. > for example: > > if I have a file needed for a perl install on my ftp server: > > /pub/ports-distfiles/perl/defined-or-5.8.9.bz2 > > and set the over-ride to point to my local server's ports-distfiles > directory, > it fails to find that file because it doesn't look in .../perl/.., > yet on the primary site (or the FreeBSD site) > it looks for , and finds this file in the 'perl' subdirectory. > > On the Over-ride site however, it looks for it in the base directory. > and doesn't look in the 'perl' subdirectory. (this is an 8.0 vintage > system) > but I see similar happennig on newer systems, (I will confirm this soon). > > Is there a way to specify a local distfile mirror that has the same > layout as the > primaries? > > Julian > p.s. keep me in CCs please. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >