private ports and pkgs versioning

Miroslav Lachman 000.fbsd at
Tue Oct 18 08:13:50 UTC 2016

Thomas Mueller wrote on 2016/10/18 09:31:

> I too might like to compile something not in the ports tree, would like to make a category "mystuff" but don't really know how to make it work.
> I might get an error message for invalid category, as happened to me once in NetBSD with pkgsrc, and I also don't want it to be changed by svn update, or cvs update in the case of NetBSD and pkgsrc.
> One package of possible interest is Steffen Daode Nurpmeso's s-nail, to be renamed to s-mailx, which is an update to heirloom-mailx and mailx or nail; included in Arch Linux and OpenBSD ports.
> Or maybe I want to test a modification to an existing package.

You can start by modifying existing port.
If you want to and your own local category you should add it to 
/usr/ports/Makefile first (SUBDIR += mycategory)

Then you should add new SUBDIR line to /usr/ports/mycategory/Makefile

Miroslav Lachman

More information about the freebsd-ports mailing list