This article is a stub. You can help by editing it.

This document specifies additional details helpful or necessary when /usr/pkgsrc is mounted via NFS. These are mostly related to /etc/mk.conf variables you can set.

Work files

The working files have to be placed in a writable directory, so if the mount is read-only, you need to add:

WRKOBJDIR=/usr/work

You also need to create that directory. Alternatively, if the mount is read/write, you just need to keep the work files from clobbering those from other platforms, so instead add:

OBJMACHINE=defined

You may want to set this in /usr/pkgsrc/mk/defaults/mk.conf if you intend on using it anywhere, so that it will be used everywhere and you don't shoot yourself in the foot accidentally.

Distribution files

The distribution files have to be placed in a writable directory, so if the mount is read-only, you need to add:

DISTDIR=/usr/distfiles

You also need to create that directory. Alternatively, you can mount the NFS partition read/write, which can be helpful if you build the same packages on multiple platforms.

Generated packages

If you generate binary packages, they have to be placed in a writable directory where they will not clobber those from other platforms, so add:

PACKAGES=/usr/pkg/packages

You may want to set this in /usr/pkgsrc/mk/defaults/mk.conf if you intend on using it anywhere, so that it will be used everywhere and you don't shoot yourself in the foot accidentally. (Is it possible to do something like /usr/pkg/packages/sys-ver/arch automatically?)