From owner-freebsd-ports Wed Dec 13 8: 6:40 2000 From owner-freebsd-ports@FreeBSD.ORG Wed Dec 13 08:06:38 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 0FC4337B402 for ; Wed, 13 Dec 2000 08:06:38 -0800 (PST) Received: (qmail 96384 invoked by uid 100); 13 Dec 2000 16:06:37 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14903.40589.65717.291026@guru.mired.org> Date: Wed, 13 Dec 2000 10:06:37 -0600 (CST) To: ports@freebsd.org Subject: Re: ${PREFIX}/etc/defaults? In-Reply-To: <20001213000550.B74111@dragon.nuxi.com> References: <14898.15686.684993.235346@guru.mired.org> <20001213000550.B74111@dragon.nuxi.com> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David O'Brien types: > 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. I didn't say so explicitly, but the idea isn't to force binaries to duplicate that behavior, it's to provide a standard place to put sample/default config files, etc. Shell scripts could duplicate the behavior of /etc/defaults because it *is* trivial. Binaries would either document the defaults while providing an example of the config file, so that like /etc/defaults, all you needed to list in the ${PREFIX}/etc file are the changes; or they would provide a sample file, and start with the instructions "Copy this file to ${PREFIX}/etc and edit ....". Thanx,