Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 17:31:18 -0900
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Doug Poland <doug@polands.org>
Subject:   Re: Sharing ports hierarchy via NFS to different arch/versions.
Message-ID:  <200901261731.18637.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <20090127013934.GA12318@polands.org>
References:  <f0c8cc893db0ae217f945b3cbeafb422.squirrel@email.polands.org> <200901260921.55827.fbsd.questions@rachie.is-a-geek.net> <20090127013934.GA12318@polands.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261731.18637.fbsd.questions>