1: **This article is a stub. You can help by editing it.**
2:
3: 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.
4:
5: #Work files
6:
7: The working files have to be placed in a writable directory, so if the mount is read-only, you need to add:
8:
9: WRKOBJDIR=/usr/work
10:
11: 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:
12:
13: OBJMACHINE=defined
14:
15: 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.
16:
17: #Distribution files
18:
19: The distribution files have to be placed in a writable directory, so if the mount is read-only, you need to add:
20:
21: DISTDIR=/usr/distfiles
22:
23: 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.
24:
25: #Generated packages
26:
27: 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:
28:
29: PACKAGES=/usr/pkg/packages
30:
31: 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?)
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb