From owner-freebsd-ports@FreeBSD.ORG Mon May 17 02:32:41 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD81F16A4CE for ; Mon, 17 May 2004 02:32:41 -0700 (PDT) Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.e-technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D08C343D53 for ; Mon, 17 May 2004 02:32:40 -0700 (PDT) (envelope-from ma@dt.e-technik.uni-dortmund.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])B3AA71E598; Mon, 17 May 2004 11:32:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 02E93B7DF1; Mon, 17 May 2004 11:32:38 +0200 (CEST) Received: from merlin.emma.line.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18849-04; Mon, 17 May 2004 11:32:36 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 98493B7DEE; Mon, 17 May 2004 11:32:36 +0200 (CEST) To: Oliver Eikemeier In-Reply-To: <40A682F2.1050905@fillmore-labs.com> (Oliver Eikemeier's message of "Sat, 15 May 2004 22:52:02 +0200") References: <7DEC7598-A53D-11D8-AFB0-0003937C4014@knowledgetap.com> <20040514011513.GA51312@wombat.localnet> <20040515180408.GA97698@numachi.com> <40A682F2.1050905@fillmore-labs.com> From: Matthias Andree Date: Mon, 17 May 2004 11:32:36 +0200 Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at m2a2.dyndns.org cc: ports@freebsd.org cc: Ben Bangert cc: Lars.Koeller@Uni-Bielefeld.DE Subject: Re: ports overwriting configuration files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2004 09:32:41 -0000 Oliver Eikemeier writes: > Grmbl. It is hard to think of an algorithm that recognizes `real' configuration > files automatically. In my ports I install *.default configuration files, which > *are* overwritten with new ones. The `real' configuration files are not touched > if they are different (edited) from the default ones, but of course I know which > are the real and which are the default files. Well, the ports I maintain - if they include configuration - will run cmp(1) to check if the configuration file is the same as the example file (however it is named, *.dist, *.sample, ...) and only if it is the same, will be removed. For some ports that have a linear collection of independent options, Sam Varshavchik's sysconftool (used, for instance, by mail/cone), is the right thing to use, but this will not work for nested configurations and configurations with sections that can be repeated, think Samba. -- Matthias Andree Encrypted mail welcome: my GnuPG key ID is 0x052E7D95