From owner-freebsd-ports@freebsd.org Thu Jul 16 10:04:42 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 855A39A2BC7 for ; Thu, 16 Jul 2015 10:04:42 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: from hades.sorbs.net (hades.sorbs.net [67.231.146.201]) by mx1.freebsd.org (Postfix) with ESMTP id 023581E55; Thu, 16 Jul 2015 10:04:40 +0000 (UTC) (envelope-from michelle@sorbs.net) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from isux.com (firewall.isux.com [213.165.190.213]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0NRK00DA9S9E9K00@hades.sorbs.net>; Thu, 16 Jul 2015 03:10:28 -0700 (PDT) Message-id: <55A781AF.7010304@sorbs.net> Date: Thu, 16 Jul 2015 12:04:31 +0200 From: Michelle Sullivan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19 To: Matthew Seaman Cc: freebsd-ports@freebsd.org Subject: Re: poudriere with custom packages References: <55A729C8.10301@ish.com.au> <55A758B3.2050502@FreeBSD.org> In-reply-to: <55A758B3.2050502@FreeBSD.org> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 10:04:42 -0000 Matthew Seaman wrote: > On 16/07/2015 04:49, Aristedes Maniatis wrote: > >> I have a custom built package which I'm building outside the FreeBSD >> ports system (using pkg-create commands). How can I add that package >> to a poudriere managed repository so that it appears in the package >> index and can be easily installed like any other package? >> >> Thanks for any help >> > > I can think of two ways to handle this: > > 1) Manually build your own repo containing just your custom package. > Simply copy the package .txz to a directory accessible from your > webserver (or however you want to publish the repo.) Then run > 'pkg repo' in that directory. See pkg-repo(8) for the gory details. > > This fails on your 'poudriere managed' requirement, but it's pretty > simple. You could even add your own package to the directory that > poudriere creates and then use pkg repo to rebuild the catalogue there. > > 2) Integrate your custom package into the ports tree. You can add a > 'Makefile.local' in /usr/ports containing something like: > > SUBDIR += myports > > which adds 'myports' as a new category for your custom stuff. Then just > mimic the layout from any of the other categories. This obviously works > best if your custom stuff uses the standard ports machinery to build > your package. You can then add 'myports/mypackage' to the list of what > poudriere should build. > > I'd be interested to hear about how you are creating packages outside > the ports tree. This is something we'd like to facilitate, but at the > moment pkg(8) and the ports are deeply entwined and there isn't much > useable documentation or prior art for how to do it 'by hand'. > > Cheers, > > Matthew > > You need "CATEGORIES += myports" (or something similar) as well... Michelle -- Michelle Sullivan http://www.mhix.org/