I usually build my own packages with poudriere but it’s not fun to do on tiny boxes so I just do pkg install on them and use upstream packages. One downside is, that package is build with default options. I recently ran into a situation where I wanted to change some options for just a single port.

Now, what is the minimal set of things in /usr/ports/ that I need to checkout to be able to config/build just one port? Turns out to be:

/usr/ports/Mk
/usr/ports/Keywords
/usr/ports/Templates
/usr/ports/ports-mgmt/dialog4ports

And the port I want to actually build. Now I can make config, change the options and build/install that port without checking out entire ports tree.