From owner-freebsd-ports Wed Dec 13 0:56:46 2000 From owner-freebsd-ports@FreeBSD.ORG Wed Dec 13 00:56:44 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (pool106-tch-1.Sofia.0rbitel.net [212.95.170.106]) by hub.freebsd.org (Postfix) with SMTP id EDF4737B400 for ; Wed, 13 Dec 2000 00:56:39 -0800 (PST) Received: (qmail 940 invoked by uid 1000); 13 Dec 2000 08:55:48 -0000 Date: Wed, 13 Dec 2000 10:55:47 +0200 From: Peter Pentchev To: ports@freebsd.org Cc: Mike Meyer Subject: Re: ${PREFIX}/etc/defaults? Message-ID: <20001213105547.A373@ringworld.oblivion.bg> Mail-Followup-To: ports@freebsd.org, Mike Meyer References: <14898.15686.684993.235346@guru.mired.org> <20001213000550.B74111@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001213000550.B74111@dragon.nuxi.com>; from obrien@freebsd.org on Wed, Dec 13, 2000 at 12:05:51AM -0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Dec 13, 2000 at 12:05:51AM -0800, David O'Brien wrote: > On Sat, Dec 09, 2000 at 08:10:14AM -0600, Mike Meyer wrote: > > In contemplating building another port with a config file, I have to > > wonder why ports don't use the same mechanism as the base system? > > I.e. - why do I have /usr/opt/etc/healthd.conf.sample instead of > > /usr/opt/etc/defaults/healthd.conf, > > Because binaries aren't flexable enough. > Remember that everything in /etc/defaults is used by shell scripts. So > it is trival to test for existance and source. Hmm maybe I'm missing something here, but.. I thought the whole point of the *.sample conf files installed by ports was that they do NOT get used by any binaries (and therefore, need not be customized and kept untouched over port upgrades)? So files in /usr/local/etc/defaults/ are just that - samples - you copy them and modify them to fit your needs. If you're thinking about the /etc/defaults/rc.conf - /etc/rc.conf relationship, where /etc/defaults/rc.conf is sourced *before* /etc/rc.conf and the 'real' file in /etc only adds deltas - no, the OP was not proposing such a thing; rather, the kind of /etc/defaults/make.conf - /etc/make.conf relationship, where the defaults/ file is *never* used, and serves only as a reference to build the real config file. G'luck, Peter -- This inert sentence is my body, but my soul is alive, dancing in the sparks of your brain. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message