From owner-freebsd-ports@FreeBSD.ORG Tue May 18 12:13:42 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 40466106566C; Tue, 18 May 2010 12:13:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id A66E28FC13; Tue, 18 May 2010 12:13:41 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o4ICDaLt053008 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 18 May 2010 13:13:37 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BF28470.2050903@infracaninophile.co.uk> Date: Tue, 18 May 2010 13:13:36 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Wesley Shields References: <86hbm5yjjh.fsf@gmail.com> <20100518115611.GA45921@atarininja.org> In-Reply-To: <20100518115611.GA45921@atarininja.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.96 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.0 required=5.0 tests=DKIM_ADSP_ALL,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: Anonymous , Doug Barton , freebsd-ports@freebsd.org 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 12:13:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. PREFIX and LOCALBASE are virtually never set to different values although I do find doing that useful for tesing ports etc. during maintenance work. I know there have been Qat port building experiments setting both PREFIX and LOCALBASE to a non-standard value, but I don't think there have been any tests trying to install each port to a PREFIX different to the LOCALBASE used for all its dependencies. It's also the case that some ports have to match the PREFIX/LOCALBASE of certain dependencies: for example various of the RT extension modules I maintain are like that. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvyhHAACgkQ8Mjk52CukIynWQCeIDkrr2KdqHNyOrCiw+LJeGWp wWAAnjSxQVZXeVLgb+odWC5vEEX9qFPx =Tz87 -----END PGP SIGNATURE-----