Date: Tue, 18 Oct 2016 20:36:43 +0200 From: olli hauer <ohauer@gmx.de> To: freebsd-ports@freebsd.org Subject: Re: private ports and pkgs versioning Message-ID: <48156635-d5f1-cd81-ab51-2cb96f3ce67c@gmx.de> In-Reply-To: <20161018125414.GA18517@lonesome.com> References: <1cba6ef9-89af-c3b8-48df-0cbdc8499b6c@freebsd.org> <ed1e5d26-3a0f-3889-665f-5e32dc708c7f@FreeBSD.org> <20161018125414.GA18517@lonesome.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-10-18 14:54, Mark Linimon wrote: > On Tue, Oct 18, 2016 at 08:49:06AM +0100, Matthew Seaman wrote: >> Yes, there is a lot of useful stuff in the ports tree to support local >> ports or even whole local categories of ports. I can't recall now how I >> learned about all this stuff -- it may well have been just be a >> combination of reading Makefiles and hints dropped on mailing lists. I >> cannot recall a document describing this stuff anywhere. > > I don't believe that there is one. > > I'm sure there are N locally-grown solutions out in the wild. > > We ought to work together to poll people on what they use. > > As for adding the category, I think there's a quick fix, if you don't > care about building INDEX. Add USE_LOCAL_MK=yes to your Makefile > invocations, and use the patch below. > > Note: I haven't tried this yet, so adding the category to ports/Makefile > may also be necessary to pacify ports/Mk/bsd.port.subdir.mk (e.g. INDEX.) > > Index: ports/Mk/bsd.local.mk > =================================================================== > --- ports/Mk/bsd.local.mk (revision 423944) > +++ ports/Mk/bsd.local.mk (working copy) > @@ -14,6 +14,8 @@ > # time should live. > # > > +VALID_CATEGORIES+= local > + > .endif # !defined(_POSTMKINCLUDED) && !defined(Local_Pre_Include) > > .if defined(_POSTMKINCLUDED) && !defined(Local_Post_Include) > > mcl It's easier for the user to define VALID_CATEGORIES+= in /etc/make.conf, this way the own category is not lost in case someone wipes /usr/ports or uses portsnap. For poudriere this should be defined also in $localbase/poudriere/make.conf, I'm using this myself for since a long time. >From my memory (don't nail me down): I think synth is able to use packages from pkg.FreeBSD.org and can build only packages with changed OPTIONS, but to be sure better ask marino@ -- olli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48156635-d5f1-cd81-ab51-2cb96f3ce67c>