From owner-freebsd-stable@FreeBSD.ORG Sun Mar 23 07:58:24 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11410106566B for ; Sun, 23 Mar 2008 07:58:24 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from anduin.net (anduin.net [213.225.74.230]) by mx1.freebsd.org (Postfix) with ESMTP id B1F838FC1D for ; Sun, 23 Mar 2008 07:58:23 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from p5499e469.dip.t-dialin.net ([84.153.228.105] helo=[192.168.2.22]) by anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JdKoj-000Pyl-IA; Sun, 23 Mar 2008 08:40:33 +0100 Message-Id: <470FAA23-402B-4735-8C35-9897CA6C2589@anduin.net> From: =?ISO-8859-1?Q?Eirik_=D8verby?= To: Matthew Seaman In-Reply-To: <47E60695.2070507@infracaninophile.co.uk> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 23 Mar 2008 08:40:31 +0100 References: <868x0ezh9u.fsf@zid.claresco.hr> <200803192028.m2JKSZen098816@lurza.secnetix.de> <20080323000707.GA33311@fupp.net> <47E60695.2070507@infracaninophile.co.uk> X-Mailer: Apple Mail (2.919.2) Cc: stable@freebsd.org Subject: Re: Upgrading to 7.0 - stupid requirements X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2008 07:58:24 -0000 On Mar 23, 2008, at 08:28, Matthew Seaman wrote: > Freddie Cash wrote: > >> All that's really needed is a more formalised process for handling >> upgrading config files, with as much as possible managed via the >> ports >> framework itself. Something that dictates the name of the config >> file, and that compares the config file from the port against the >> installed config file (or against an md5 of the port config file) and >> only replaces it if it is unchanged. Something that is part of the >> make system. > > Most ports that install configuration files actually do this already. > It's generally why you'll find that a sample configuration file is > considered part of the port, but the actuall live configuration file > is not. The port will only feel free to meddle with the config file > if > it is still identical to the sample file. There are a few exceptions to this rule: The courier authdaemon ports, for instance, are notorious for overwriting my carefully-crafted configuration files when upgrading. I loathe those ports (or apps - not sure who's to blame) for that reason alone. In fact, it not only installs a config.dist file (which is fine), but it ALSO overwrites the current config. A cardinal sin, if there ever were any.. Now I must say I'm with the people who think that one should follow the one-port-one-configfile approach; however for a somewhat different reason: The closer a port sticks with the "default" configuration files, or samples if you will, of the software in question, the less FreeBSD-specific knowledge needs to be built to manage the port. If debian splits up the config into a forest of includefiles and symlinks, that might be good for a particular purpose, but it's something I'd prefer to do myself if the need is there. I've done similiar things on some occations, but that is, and IMO should be, "homebrew". Also, making ports adhere to a much stricter configuration regime would make the uptake of new ports slow down considerably. I believe (though I have no numbers to back this up, so it is of course pure speculation) that the large number of ports available is at least partly due to the fact that making an initial port is relatively easy and straight forward. Just my 2 cents. /Eirik