Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 10:24:48 +0200
From:      Jonathan McKeown <jonathan@hst.org.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using pre-built packages with portmanager
Message-ID:  <200608071024.48724.jonathan@hst.org.za>
In-Reply-To: <20060805171645.GA948@epia2.farid-hajji.net>
References:  <20060805171645.GA948@epia2.farid-hajji.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608071024.48724.jonathan>