Sharing ports hierarchy via NFS to different arch/versions.

Doug Poland doug at
Mon Jan 26 09:38:43 PST 2009

On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
> perryh at wrote:
>>>> I've got a network running different versions of FreeBSD
>>>> (6.3, 7.0) on different architectures (i386, SPARC64).
>>>> What I'd like to do is export the ports hierarchy to all machines,
>>>> but preserving ports/packages for each version/architecture.
>>>> I also want to make rebuilding indexes run as fast as possible.
>>>> Right now, I simply exports(5) /usr/ports via NFSv3 ...
>> ...
>>> The following 2 lines on each machine in /etc/make.conf should
>>> fix those problems:
>>> PACKAGES=${PORTSDIR}/packages/${ARCH}
>>> INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}
It would seem the package building tools (make package, portinstall -p)
do not honor the PACKAGES setting in /etc/make.conf.  The package is
simply deposited in /usr/ports/{category}/{pkgname}.  Is there a way to
force the package builder to use this knob?


More information about the freebsd-questions mailing list