From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 08:46:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A133516A41F for ; Tue, 27 Sep 2005 08:46:52 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38E2343D48 for ; Tue, 27 Sep 2005 08:46:50 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 13so577699nzp for ; Tue, 27 Sep 2005 01:46:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FsDgBZISjxYzyzEXEt6DhZUbjONCe12XBYb+FSnmfSLEJtRSzpxrgYD6upoabaJuAHzQ15qnDhYU8tnaUY4m/5l9jUjf2xnNk4RoeZBDXNnjGCuCleuNdkmtJdbyx/jkYg87KQ2jDMe+UC4RFvAXZi/F2vB5q4/QiI4CXwJ0IFA= Received: by 10.36.23.6 with SMTP id 6mr2288625nzw; Tue, 27 Sep 2005 01:46:49 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Tue, 27 Sep 2005 01:46:49 -0700 (PDT) Message-ID: Date: Tue, 27 Sep 2005 12:46:49 +0400 From: "Andrew P." To: Gordon Ross In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: Sharing /usr/ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Andrew P." List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 08:46:52 -0000 On 9/24/05, Gordon Ross wrote: > I've got two FreeBSD 5.4 machines. One is a server, the other is a > desktop. > > I've mounted on the desktop the /usr/ports directory from the server. My > idea being that I could share the one /usr/ports directory amongst my > machines and save disc space, and also save having to recompile everythin= g > whenever I install a port. > > My problem is that, if I do a "make" on one machine, I can't then do a > "make install" on the other machine. (When I try, nothing happens) > > I haven't mounted any of the directories from under /var/db (e.g. pkg, > ports) > > Is what I'm trying to do possible ? > If so, what am I missing or doing wrong ? > Like others have already told you here, the best solution is packaging. There is a problem though - you can't make a package without installing the port first. If you're using portupgrade the whole thing is very simple. You mount /usr/ports from your file server on every client machine, and 'setenv WRKDIRPREFIX /usr/local/mywrk'. Then you just always run portupgrade with the -p switch on your fast machines, and use -PP (double P) switch on your slow machines. If they are all of single architecture and you don't put some very custom stuff in /etc/make.conf, it'll all work completely hassle-free. You'll also want to ensure that portupgrade uses the same ports db driver on all machines. dbm_hash is probably the most portable one, so you can place ENV['PORTS_DBDRIVER'] =3D 'dbm_hash' in /usr/local/etc/pkgtools.conf on every machine. >From then on you can "portsnap fetch && portsnap update \ && portsdb -uUF && portupgrade -arRF" every morning, "portupgrade -aprR" on your build boxes, "portupgrade -arRPP" on your other boxes - and then just relax sit back and enjoy the magical feeling of being up-to-date. Cheerz, Andrew P.