From owner-freebsd-questions@FreeBSD.ORG Tue Jan 27 15:36:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF9F8106567E for ; Tue, 27 Jan 2009 15:36:52 +0000 (UTC) (envelope-from doug@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 8ECCD8FC18 for ; Tue, 27 Jan 2009 15:36:52 +0000 (UTC) (envelope-from doug@polands.org) Received: from haran.polands.org ([75.87.219.217]) by hrndva-omta02.mail.rr.com with ESMTP id <20090127153651.IGZN4789.hrndva-omta02.mail.rr.com@haran.polands.org>; Tue, 27 Jan 2009 15:36:51 +0000 Received: from eden.polands.org (pccardwifi0.polands.org [172.16.1.35]) by haran.polands.org (8.14.3/8.14.3) with ESMTP id n0RFaoUc050265; Tue, 27 Jan 2009 09:36:51 -0600 (CST) (envelope-from doug@polands.org) Message-ID: <497F2A12.30109@polands.org> Date: Tue, 27 Jan 2009 09:36:50 -0600 From: Doug Poland User-Agent: Thunderbird 2.0.0.19 (X11/20090106) MIME-Version: 1.0 To: Mel References: <200901260921.55827.fbsd.questions@rachie.is-a-geek.net> <20090127013934.GA12318@polands.org> <200901261731.18637.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200901261731.18637.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sharing ports hierarchy via NFS to different arch/versions. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 15:36:54 -0000 Mel wrote: > On Monday 26 January 2009 16:39:35 Doug Poland wrote: >> On Mon, Jan 26, 2009 at 09:21:55AM -0900, Mel wrote: >>> On Monday 26 January 2009 08:23:13 Doug Poland wrote: >>>> On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote: >>>>> perryh@pluto.rain.com 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? >>> make package respects it. >> Curious... I tested it on two different machines, and make package did >> not put the package in the expected location. Perhaps I'm missing >> something? > > Ah, my bad: > Mk/bsd.port.mk: > do-package: ${TMPPLIST} > @if [ -d ${PACKAGES} ]; then \ > > $PACKAGES has to be created before it respected. > Ah ha! Thanks for that info, and the reference to Mk/bsd.port.mk -- Regards, Doug