From owner-freebsd-pkg@FreeBSD.ORG Thu Jan 23 17:46:49 2014 Return-Path: Delivered-To: freebsd-pkg@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 9A77DFA5; Thu, 23 Jan 2014 17:46:49 +0000 (UTC) Received: from bewilderbeast.blackhelicopters.org (mwlucas-2-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:b9c::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 31EC9177A; Thu, 23 Jan 2014 17:46:44 +0000 (UTC) Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.14.7/8.14.7) with ESMTP id s0NHkhw6073517; Thu, 23 Jan 2014 12:46:43 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.14.7/8.14.7/Submit) id s0NHkhTG073516; Thu, 23 Jan 2014 12:46:43 -0500 (EST) (envelope-from mwlucas) Date: Thu, 23 Jan 2014 12:46:42 -0500 From: "Michael W. Lucas" To: Baptiste Daroussin Subject: Re: using certain packages from my repo Message-ID: <20140123174642.GA73471@bewilderbeast.blackhelicopters.org> References: <20140123172853.GA73401@bewilderbeast.blackhelicopters.org> <20140123173415.GA37299@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140123173415.GA37299@ithaqua.etoilebsd.net> User-Agent: Mutt/1.5.22 (2013-10-16) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bewilderbeast.blackhelicopters.org [127.0.0.1]); Thu, 23 Jan 2014 12:46:43 -0500 (EST) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 17:46:49 -0000 On Thu, Jan 23, 2014 at 06:34:16PM +0100, Baptiste Daroussin wrote: > On Thu, Jan 23, 2014 at 12:28:53PM -0500, Michael W. Lucas wrote: > > Hi, > > > > I'm sure this is a "Lucas doesn't know which man page to read" > > problem, but after a second day of looking I'm giving up and throwing > > myself on the mercy of the developers. > > > > I'm setting up poundriere for the first time. Everything seems good, > > except I can't figure out how to tell clients to use my repo only for > > certain packages. > > > > For example, I need custom lang/php5 and www/apache22 ports. I want to > > install these ports and their dependencies from my repo. Everything > > else should come from the official repo. > > > > Can anyone point me at the answer? > > pkg-repository(5) but it is a bit hidden :) > Look at the very last lines of that man page: > > ---- quote ---- > then to make updates to that package ``sticky'' to the same reposi- > tory, add an annotation to the package: > > pkg annotate -A example repository repo-a > ---- quote ---- Awesome, thank you. So, to bootstrap my custom php5 package onto a system, I must use -r to tell pkg to use my repo, then pkg annotate to make the package sticky. Will annotation affect dependencies? Or should I make note of all the packages installed from my private repo and manually "stickify" them? Just trying to get this straight before I finish this blog post. Thanks, ==ml -- Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e coupon code "ILUVMICHAEL" gets you 30% off & helps me.