Index: release/Makefile =================================================================== RCS file: /a/ncvs/src/release/Makefile,v retrieving revision 1.764 diff -u -r1.764 Makefile --- release/Makefile 23 Mar 2003 04:23:10 -0000 1.764 +++ release/Makefile 31 Mar 2003 08:22:23 -0000 @@ -373,6 +373,9 @@ else \ mkdir -p ${CHROOTDIR}/usr/ports/distfiles; \ fi +.if defined(NFSDISTFILES) + mount ${NFSDISTFILES} ${CHROOTDIR}/usr/ports/distfiles +.endif .if !defined(NO_PREFETCHDISTFILES) @cd ${.CURDIR} && ${MAKE} fetch-distfiles .endif Index: share/man/man7/release.7 =================================================================== RCS file: /a/ncvs/src/share/man/man7/release.7,v retrieving revision 1.23 diff -u -r1.23 release.7 --- share/man/man7/release.7 23 Mar 2003 04:23:10 -0000 1.23 +++ share/man/man7/release.7 31 Mar 2003 08:18:50 -0000 @@ -327,6 +327,15 @@ release build can be found. This may save a significant amount of time over downloading the distfiles through a slow link. +.It Va NFSDISTFILES +The remote NFS mount point where the distributrion files for ports +required by the release build can be found. +This is similar to the above, except the files on the remote +fileserver are mounted directly inside the +.Xr chroot 8 +environment, so they do not need to be copied onto the local disk +until they are extracted. +This can save both time and disk space on the build machine. .It Va RELEASENOUPDATE If this variable is defined for .Dq Li "make rerelease" , @@ -402,14 +411,18 @@ The following sequence of commands can be used to build a .Dq "-CURRENT snapshot" of a -locally modified source tree: +locally modified source tree. +This example also utilizes a local NFS server +.Pq 10.0.0.2 +to provide the ports distfiles: .Bd -literal -offset indent cd /usr/src cvs diff -u > /path/to/local.patch make buildworld cd release make release CHROOTDIR=/local3/release BUILDNAME=5.0-CURRENT \\ - CVSROOT=/host/cvs/usr/home/ncvs LOCAL_PATCHES=/path/to/local.patch + CVSROOT=/host/cvs/usr/home/ncvs LOCAL_PATCHES=/tmp/local.patch \\ + NFSDISTFILES=10.0.0.2:/usr/ports/distfiles .Ed .Sh SEE ALSO .Xr cc 1 ,