From owner-freebsd-ports@FreeBSD.ORG Thu Jul 1 07:26:23 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CB3516A4CE for ; Thu, 1 Jul 2004 07:26:23 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5B043D5D for ; Thu, 1 Jul 2004 07:26:23 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-7.local ([172.16.0.7] helo=localhost) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34 (FreeBSD)) id 1Bfvxb-000DH3-US; Thu, 01 Jul 2004 09:26:22 +0200 Date: Thu, 1 Jul 2004 09:26:43 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Robin Schoonover From: Oliver Eikemeier In-Reply-To: <20040701045011.GB19108@Odin.AC.HMC.Edu> Message-Id: <005485B1-CB30-11D8-9FE1-00039312D914@fillmore-labs.com> Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: Brooks Davis cc: freebsd-ports@freebsd.org Subject: Re: where to install data? (boinc) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 07:26:23 -0000 Brooks Davis wrote: > On Wed, Jun 30, 2004 at 10:27:13PM -0600, Robin Schoonover wrote: >> I need some advice involving installation locations... >> >> I've pretty much have boinc ported over, but I want to make sure I'm >> doing >> the right thing with the default installation location. >> >> Currently I have boinc installed into /var/db/boinc to be consistant >> with >> where setiathome puts its data files (I think I can see the reasoning >> on >> why /var would be a good place). If you tweak PREFIX you can have >> boinc be >> installed somewhere else. Are you talking about *data files* or the program here? Normally hier(7) should answer most of you questions, and during installation time you should only put files into ${PREFIX}/.., which should have it's default value. >> Also, there is an rcNG script I have written, >> which by default gets installed into ${LOCALBASE}/etc/rc.d/ (also >> tweakable). Nope, your port installs into ${PREFIX}/.., so put it into ${PREFIX}/etc/rc.d >> All the other boinc data lives in /var/db/boinc (so setiathome, or >> seti_boinc as I should probably call it, gets installed to >> /var/db/boinc/projects/setiathome.berkeley.edu). Hmmm... that may be a misunderstanding on my side, but you shouldn't *install* stuff there. The port can keep it's (generated) data in this location, though. >> Should I continue to have it install to the /var partition, or not mess >> with PREFIX and have the default be ${LOCALBASE}? Don't install anything to ${LOCALBASE}, never. > I believe this is the correct thing to do. You should create the > directory in the pkg-install script and then, if it is empty, delete it > on uninstall (you need to use an @unexec statement). No, ports shouldn't touch anything outside of ${PREFIX}, especially not install any files there. It is ok to occasionally create some directories, like /var/{db,log,run}/..., but they should be empty. And don't install into ${LOCALBASE}. The idea is that I'm able to completely separate a port when I want to. Any people smart enough to install ports to /whatever are also smart enough to tweak local_startup when they really want to run the port from there. -Oliver