From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 03:05:14 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 3ED7C106566C for ; Mon, 26 Jan 2009 03:05:14 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0D4978FC12 for ; Mon, 26 Jan 2009 03:05:13 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 4957CAFC1FE; Sun, 25 Jan 2009 18:05:13 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sun, 25 Jan 2009 18:05:12 -0900 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901251805.12600.fbsd.questions@rachie.is-a-geek.net> Cc: Doug Poland 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: Mon, 26 Jan 2009 03:05:14 -0000 On Saturday 24 January 2009 09:32:54 Doug Poland wrote: > Hello, > > 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 problem > comes in with INDEX files and packages. Indexes get updated only when > the host serving the export updates the hierarchy via portsnap update. > If I create a package on SPARC64 and the package exists already for > an i386 build, then I've got an issue. > > Can someone point me to a doc/google/man page that may give me some > guidance in setting up such an environment? 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/} Packages will end up in /usr/ports/packages/sparc64 on sparc64 machines and /usr/ports/packages/i386 on i386 machines etc. Indexfiles will be named according to arch as well. Adjust PKG_PATH in your environment if you use pkg_add(1) accordingly. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.