From owner-freebsd-questions@FreeBSD.ORG Wed Jan 8 05:36:22 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D27F97A for ; Wed, 8 Jan 2014 05:36:22 +0000 (UTC) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4B41F96 for ; Wed, 8 Jan 2014 05:36:21 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1W0Bpi-0001BX-1M; Mon, 06 Jan 2014 15:11:14 +0000 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1W0Bpf-000C81-SV; Mon, 06 Jan 2014 15:11:11 +0000 Date: Mon, 6 Jan 2014 15:11:10 +0000 From: Steve O'Hara-Smith To: John Rogers Subject: Re: Using pkgng, but building some ports with custom options Message-Id: <20140106151110.323d7289ede6a66a3053ebbd@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 05:36:22 -0000 On Mon, 6 Jan 2014 14:49:26 +0100 John Rogers wrote: > Hello. > > I'm looking into switching to using pkgng once FreeBSD 10 is released. > I must say that I'm very impressed so far after playing around with > it, but I have run into a question that I have been unable to find the > answer to. Is it possible to use pkg install from pkg.FreeBSD.org for > most packages, use portmaster locally for some packages when I want to > use custom build options and have it all work well together? > > A typical scenario that I want to avoid is that I have a custom built > installation of port A. Then one day the package is updated to a new > version on pkg.FreeBSD.org, which overwrites my local install when I > run pkg upgrade. Yes this is possible - I use poudriere to maintain a local repository of a handful of packages with custom build options and/or patches while getting the rest from the freebsd.org servers. My poudriere setup publishes the packages through a thttpd server running on localweb. I set it up like this: /etc/pkg/FreeBSD.conf ------------------------------ FreeBSD: { url: "pkg+http://pkg.eu.FreeBSD.org/${ABI}/latest", mirror_type: "srv", enabled: YES } ------------------------------ /usr/local/etc/pkg/repos/local.conf ------------------------------ local: { URL: http://localweb/packages enabled: YES } ------------------------------ The final part is to use pkg annotate $pkg repository local For every package where the local version must be used, this ensures that I will never pick up those packages from any other repository, -- Steve O'Hara-Smith