Build just one FreeBSD port

Posted: January 23rd, 2015 | Author: | Filed under: FreeBSD | Tags: , | 1 Comment »

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.


One Comment on “Build just one FreeBSD port”

  1. 1 bapt said at 9:12 am on January 24th, 2015:

    This is only true for a bunch of ports, we are aiming at making it true all the time but it still needs some work :)