category for local ports

Matthew Seaman m.seaman at
Fri Jun 9 09:28:22 UTC 2006

Vivek Khera wrote:
> Basically I've settled on this approach, which has worked out extremely
> well for the last couple of days at least :-)
> All local ports are in /usr/ports/local/kci-FOO for port named kci-FOO. 
> I prefix all my local ports with 'kci-' to make things easy to
> identify.  In /usr/ports/local is a Makefile with SUBDIR+=kci-FOO for
> each port just like any other category Makefile.
> In pkgtools.conf I add 'local' to EXTRA_CATEGORIES.  This seems to be
> not used, but doesn't hurt.
> Then, to build the INDEX file I came up with a really great hack.... it
> goes like this:

You could create /usr/ports/Makefile.local containing:

   SUBDIR += local

which would then be incorporated in the usual 'make index' processing
without any further ado.



Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP:         Ramsgate
                                                      Kent, CT11 9PW, UK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-ports mailing list