From owner-freebsd-ports Wed Dec 13 1: 2:10 2000 From owner-freebsd-ports@FreeBSD.ORG Wed Dec 13 01:02:08 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from apollo.orakel.ntnu.no (apollo.orakel.ntnu.no [129.241.56.245]) by hub.freebsd.org (Postfix) with SMTP id F1E4037B400 for ; Wed, 13 Dec 2000 01:02:06 -0800 (PST) Received: (qmail 9166 invoked by uid 28778); 13 Dec 2000 09:02:05 -0000 Date: Wed, 13 Dec 2000 10:02:05 +0100 From: Oyvind Moll To: ports@freebsd.org Subject: Re: ${PREFIX}/etc/defaults? Message-ID: <20001213100205.A567@orakel.ntnu.no> References: <14898.15686.684993.235346@guru.mired.org> <20001213000550.B74111@dragon.nuxi.com> <20001213105547.A373@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.0.1i In-Reply-To: <20001213105547.A373@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, Dec 13, 2000 at 10:55:47AM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Peter Pentchev | | 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. | | 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. With semantics subtly but deeply different from /etc/default, it should not be called /usr/local/etc/default, but rather /usr/local/etc/samples/ or something. -- Øyvind Møll Initio IT-løsninger AS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message