Moving sources (base/ports) from /usr

Dewayne Geraghty dewayne at
Tue May 12 07:03:10 UTC 2020

Hi Ede,
Something like this might help, where you construct:
then on as needed basis, you can
mount_nullfs /import/src /usr/src
mount_nullfs /import/ports /usr/ports

I have something like this when I'm using one source (for src and ports)
on a virtual disk under virtualbox (on Win) across multiple VM's.  This
also means I don't have to fiddle with variables.


On 9/05/2020 5:04 am, Ede Wolf wrote:
> Hi,
> As the title implies, I would like to move everything src/build related
> from /usr to a different folder, let's call it /import. And since it
> won't be mounted permanently, I'd rather like not to use links. That would certainly work, but it's ugly. 
> So I am looking for a more clean way of archiving this, but currently I am having trouble to find a
> comprehensive list of the  variables, that would need to be set, and more over, where the proper place woulf be, to do so. 
> More often than not it is not /etc/make.conf 
> For MAKEOBJDIRPREFIX it is src-env.conf, but what about the others?
> SRCDIR, PORTSDIR, WRKDIRPREFIX, DISTFILES, WRKSRC? Is that list correct and/or complete?
> Is there any documentation providing a decent overview of the
> environment (base as well as ports)? Or maybe anyone is running this
> kind of setup as well?
> Thanks for helping out
> Ede
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list