From owner-cvs-all Thu Aug 27 02:08:48 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA10154 for cvs-all-outgoing; Thu, 27 Aug 1998 02:08:48 -0700 (PDT) (envelope-from owner-cvs-all) Received: from tyree.iii.co.uk (tyree.iii.co.uk [195.89.149.230]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA10120; Thu, 27 Aug 1998 02:08:27 -0700 (PDT) (envelope-from nik@iii.co.uk) From: nik@iii.co.uk Received: from carrig.strand.iii.co.uk (carrig.strand.iii.co.uk [192.168.7.25]) by tyree.iii.co.uk (8.8.8/8.8.8) with ESMTP id KAA25095; Thu, 27 Aug 1998 10:07:30 +0100 (BST) Received: (from nik@localhost) by carrig.strand.iii.co.uk (8.8.8/8.8.7) id KAA12641; Thu, 27 Aug 1998 10:06:25 +0100 (BST) Message-ID: <19980827100624.G6112@iii.co.uk> Date: Thu, 27 Aug 1998 10:06:24 +0100 To: Satoshi Asami Cc: dillon@backplane.com, jkoshy@FreeBSD.org, bde@zeta.org.au, committers@hub.freebsd.org Subject: Re: cvs commit: src/etc make.conf References: <19980827093257.A12452@iii.co.uk> <199808270851.BAA11702@silvia.hip.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199808270851.BAA11702@silvia.hip.berkeley.edu>; from Satoshi Asami on Thu, Aug 27, 1998 at 01:51:36AM -0700 Organization: interactive investor Sender: owner-cvs-all@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Thu, Aug 27, 1998 at 01:51:36AM -0700, Satoshi Asami wrote: > * I'd prefer it look for /usr/local/etc/make.conf. I like /etc to be as > * close to the original installation as possible. > > Um, we're talking about variables defined usually in /etc/make.conf > here. What does that have to do with ${PREFIX}? (One of the several > possible, even?) I wasn't thinking of /usr/local/etc as the default for ${PREFIX}, more as somewhere useful to put changed configuration files. I like /etc being as static as possible. It minimises the amount of work I have to do when I upgrade the system (since most of my changes are in /usr/local/etc) and it's a step in the right direction to being able to mount /etc read-only. In general, I just want somewhere to put configuration files that differ from those shipped with the OS, and that will be used in preference to those shipped with the OS. On Solaris at work that happens to be (because of local policy) /opt/CONFIG (so, /opt/CONFIG/sendmail.cf, /opt/CONFIG/gnats/* and so on). On FreeBSD I prefer /usr/local/etc. I quite like the idea of making ${PREFIX} a system wide variable (perhaps a sysctl?) that can be queried. Perhaps [/etc/rc.conf] ... local_config="/usr/local/etc" # Where local config info. is kept ... [/etc/rc] ... sysctl -w kern.local_config=$local_config ... [/etc/daily] ... set daily_local=`sysctl -n kern.local_config`/daily if [ -f $daily_local ]; then echo Running $daily_local sh $daily_local fi ... and so on. "kern.local_config" is probably a very bad name for it though. N -- --+==[ Nik Clayton becomes Just Another Perl Contractor in 16 days. ]==+-- She's still dead. Deal with it.