From owner-cvs-ports@FreeBSD.ORG Sun Jan 29 01:43:44 2006 Return-Path: X-Original-To: cvs-ports@freebsd.org Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D24216A420; Sun, 29 Jan 2006 01:43:44 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 583C643D62; Sun, 29 Jan 2006 01:43:35 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail22.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k0T1hXph030355 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 29 Jan 2006 12:43:33 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k0T1hX69004826; Sun, 29 Jan 2006 12:43:33 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k0T1hX6O004825; Sun, 29 Jan 2006 12:43:33 +1100 (EST) (envelope-from peter) Date: Sun, 29 Jan 2006 12:43:33 +1100 From: Peter Jeremy To: Andrew Pantyukhin Message-ID: <20060129014333.GI2341@turion.vk2pj.dyndns.org> References: <200601281659.k0SGxWdP049268@repoman.freebsd.org> <20060128193852.GA30951@xor.obsecurity.org> <20060128195138.GA31594@xor.obsecurity.org> <1138480529.36184.57.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: cvs-ports@freebsd.org, Kris Kennaway , pav@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org Subject: Re: cvs commit: ports/www/yabb Makefile pkg-plist ports/www/yabb/files pkg-message.in X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2006 01:43:44 -0000 On Sat, 2006-Jan-28 23:47:42 +0300, Andrew Pantyukhin wrote: >On 1/28/06, Pav Lucistnik wrote: >> http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html > >Yes, and it sucks. It works when it's about a couple of >configuration files. But it can't be used as a general >purpose way of handling modified files. It's the best we've got at present. There are also some advantages to having a "sample" configuration file present to assist the user. If you're only talking about a few files, the current approach is reasonable. If you're talking about lots of files and/or large files then you do need something better. >Checksums are good for that, our pkg system can create >them, can tell us if a file has been modified, hell it can >even deinstall a package keeping all modified files >intact. But it's not flexible enough yet, so when I use >portupgrade all files are going to get deleted anyway. It wouldn't be too difficult to make pkg_install refuse to over-write files but that is likely to cause as many problems as it solves. Ideally pkg_install would warn that a file already existed and rename it rather than over-writing it - whilst package infrastructure can't do this, you could do it yourself in a pre-install script. -- Peter Jeremy