From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 23 20:52:25 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0E9416A419 for ; Wed, 23 Jan 2008 20:52:25 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 7C23B13C43E for ; Wed, 23 Jan 2008 20:52:25 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 59568 invoked by uid 2001); 23 Jan 2008 20:25:43 -0000 Date: Wed, 23 Jan 2008 14:25:43 -0600 From: "Rick C. Petty" To: cristi@roedu.net Message-ID: <20080123202543.GA59457@keira.kiwi-computer.com> References: <50587.193.226.5.33.1201086363.squirrel@mail.roedu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50587.193.226.5.33.1201086363.squirrel@mail.roedu.net> User-Agent: Mutt/1.4.2.3i Cc: hackers@freebsd.org Subject: Re: DIST_SUBDIR not working with MASTER_SITE_OVERRIDE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 20:52:26 -0000 On Wed, Jan 23, 2008 at 01:06:03PM +0200, cristi@roedu.net wrote: > Hi everybody, > > I recently wanted to install some gnome stuff from ports. In order to > boost the download speed, I did something like this: > > make MASTER_SITE_OVERRIDE=ftp://ftp1.ro.freebsd.org/pub/FreeBSD/distfiles/ > > as documented in the Handbook. However, many gnome packages seem to have > DIST_SUBDIR in their Makefile, but MASTER_SITE_OVERRIDE doesn't care. This > makes installing ports (with many dependencies) from known non-default > sources very hard. I used to do something similar to this by setting it in /etc/make.conf. The only downside is if DIST_SUBDIR is not set you get paths that don't look pretty, e.g.: ftp://ftp5.freebsd.org/pub/FreeBSD/distfiles//some_distfile.tgz Instead, I added something to my /etc/make.conf similar to: .if defined(DIST_SUBDIR) DIST_SUBDIR_OVERRIDE=${DIST_SUBDIR}/ .else DIST_SUBDIR_OVERRIDE= .endif MASTER_SITE_OVERRIDE=ftp://ftp5.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR_OVERRIDE} -- Rick C. Petty