I'm trying to figure out the best way to install ports to an alternate root as part of creating a custom FreeBSD distribution that includes certain ports. I can use
but I am worried that some ports may be internally using PREFIX, or setting LOCALBASE to something other than "/usr/local" and my setting prefix from the command line will break that.
Should I instead be using?
Or is there some better way?
Also, I would like to disable ldconfig running when I do this as I do not want anything under /altroot being used by the current operating system. The only way I can see to do this is to set USE_LDCONFIG to an existing directory that already in my hints file. There appears to be no way to just turn it off.
make install PREFIX=/altroot/usr/local
but I am worried that some ports may be internally using PREFIX, or setting LOCALBASE to something other than "/usr/local" and my setting prefix from the command line will break that.
Should I instead be using?
make install LOCALBASE=/altroot/usr/local
Or is there some better way?
Also, I would like to disable ldconfig running when I do this as I do not want anything under /altroot being used by the current operating system. The only way I can see to do this is to set USE_LDCONFIG to an existing directory that already in my hints file. There appears to be no way to just turn it off.