From owner-freebsd-ports@FreeBSD.ORG Tue May 18 19:56:55 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 316EC1065673; Tue, 18 May 2010 19:56:55 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.50.215]) by mx1.freebsd.org (Postfix) with ESMTP id C67358FC19; Tue, 18 May 2010 19:56:54 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 7B0A25C40; Tue, 18 May 2010 15:57:25 -0400 (EDT) Date: Tue, 18 May 2010 15:57:25 -0400 From: Wesley Shields To: Anonymous Message-ID: <20100518195725.GB48168@atarininja.org> References: <86hbm5yjjh.fsf@gmail.com> <20100518115611.GA45921@atarininja.org> <4BF28470.2050903@infracaninophile.co.uk> <86hbm5vycg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86hbm5vycg.fsf@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Ion-Mihai Tetcu , freebsd-ports@freebsd.org, Doug Barton Subject: Re: preferred place for system-wide config files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2010 19:56:55 -0000 On Tue, May 18, 2010 at 10:50:07PM +0400, Anonymous wrote: > Matthew Seaman writes: > > > On 18/05/2010 12:56:11, Wesley Shields wrote: > >> On Tue, May 18, 2010 at 07:29:22AM +0400, Anonymous wrote: > >>> a little confusion arised from ports/146627. > >>> > >>> The Porter's Handbook defines PREFIX as the place where port should > >>> install its files including config files. However, it doesn't say where > >>> the port should try to read its config files that may not exist: > >>> LOCALBASE/etc or PREFIX/etc? Until recently I assumed such files as > >>> installed together with the port unless they belong to some other port. > >>> > >>> For example, many GNU_CONFIGURE ports look for config files under > >>> SYSCONFDIR that's usually under PREFIX/etc and some of them don't > >>> install config files nor samples. A few examples: xorg-server, > >>> subversion, git. Should such ports be modified to use LOCALBASE/etc? > >> > >> PREFIX/etc is the correct place. Very few ports touch LOCALBASE at all, > >> and when they do it's explicitly requested. I'm thinking of bind here as > >> an example. > > > > The principle is that PREFIX is where *this* port is going to be > > installed, but LOCALBASE is where you should assume any prior dependency > > ports have been installed. > > This still doesn't clarify where to look for files that are *not* > installed, e.g. config files. Such files can be created by user and only > used by the port itself when they exist. Does it matter whether they're > installed or not to choose LOCALBASE over PREFIX? PREFIX. -- WXS