From owner-freebsd-questions@FreeBSD.ORG Mon Aug 7 14:01:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CFD916A4E2 for ; Mon, 7 Aug 2006 14:01:45 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E6C543D4C for ; Mon, 7 Aug 2006 14:01:44 +0000 (GMT) (envelope-from cpghost@cordula.ws) Received: from epia2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 6230DDE55F; Mon, 7 Aug 2006 15:59:26 +0200 (CEST) Date: Mon, 7 Aug 2006 16:02:21 +0200 From: cpghost To: Jonathan McKeown Message-ID: <20060807140221.GA7988@epia2.farid-hajji.net> References: <20060805171645.GA948@epia2.farid-hajji.net> <200608071024.48724.jonathan@hst.org.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608071024.48724.jonathan@hst.org.za> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Using pre-built packages with portmanager 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: Mon, 07 Aug 2006 14:01:45 -0000 On Mon, Aug 07, 2006 at 10:24:48AM +0200, Jonathan McKeown wrote: > On Saturday 05 August 2006 19:16, cpghost wrote: > > > How do I get portmanager to upgrade ports, using > > 1. pre-built packages from /usr/ports/packages (ONLY), > > and only if there's no binary package there, > > 2. build from source as usual? > > > > Additional limit (preventing use of portupgrade -P) is that only > > local (/usr/ports/packages), and no remote packages should be > > used. > > Edit /usr/local/etc/pkgtools.conf and add > > ENV['PKG_FETCH'] = '/usr/bin/false' > > portupgrade will look for a local package, then try and fetch a package > remotely using false(1) - which will fail because that's what false(1) does - > and portupgrade will then build the port. That's a great idea for portupgrade! Thank you! It's still not clear how portmanager (instead of portupgrade) would behave, but I'll give it a try. > Jonathan Thanks again, -cpghost. -- Cordula's Web. http://www.cordula.ws/