I have a few freebsd servers and to ease maintenance I have mounted /usr/ports as read only on all my servers from a nfs share. I've then changed /etc/make.conf to:
The problem with this is that portmaster starts to whine when I run
Since nothing useful turns up on google, I'm starting to think that I should have done something different to maintain a single ports tree, since if portmaster can't handle it, then it sure would be someone else having a problem with it..?
This also leads to another problem when I run
So am I doing something completely wrong or is portmaster letting me down? Maybe my question should be how I can migrate existings server to use a read only /usr/ports, /usr/src and /usr/obj directory instead? (I should
Code:
WRKDIRPREFIX=/var/ports
DISTDIR=/var/ports/distfiles
PACKAGES=/var/ports/packages
The problem with this is that portmaster starts to whine when I run
portmaster --clean-distfiles-all
:
Code:
===>>> Gathering distinfo list for installed ports
===>>> Checking for stale distfiles
find: -delete: /var/ports/distfiles/: relative path potentially not safe
Since nothing useful turns up on google, I'm starting to think that I should have done something different to maintain a single ports tree, since if portmaster can't handle it, then it sure would be someone else having a problem with it..?
This also leads to another problem when I run
portmaster --check-port-dbdir
. It tells me that it doesn't look like /var/db/ports/distfiles is installed and asks me to remove it..? I didn't even know of that directory, but something tells me that I shouldn't remove it...So am I doing something completely wrong or is portmaster letting me down? Maybe my question should be how I can migrate existings server to use a read only /usr/ports, /usr/src and /usr/obj directory instead? (I should
rm -rf /usr/ports && portsnap fetch extract
on the server sharing /usr/ports over nfs, right?