From owner-freebsd-arch@FreeBSD.ORG Wed Sep 3 13:07:38 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C73D16A53E for ; Wed, 3 Sep 2003 13:07:38 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-253.dsl.lsan03.pacbell.net [64.169.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2C8243F75 for ; Wed, 3 Sep 2003 13:06:59 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 062AE66B04; Wed, 3 Sep 2003 13:06:59 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 0D4FDA40; Wed, 3 Sep 2003 13:06:59 -0700 (PDT) Date: Wed, 3 Sep 2003 13:06:58 -0700 From: Kris Kennaway To: The Anarcat Message-ID: <20030903200658.GD51382@rot13.obsecurity.org> References: <20030903143948.GA61515@gattaca.yadt.co.uk> <20030903144734.GZ47671@procyon.firepipe.net> <20030903182925.GA79913@gattaca.yadt.co.uk> <20030903191427.GE541@xtanbul> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u65IjBhB3TIa72Vp" Content-Disposition: inline In-Reply-To: <20030903191427.GE541@xtanbul> User-Agent: Mutt/1.4.1i cc: freebsd-arch@freebsd.org Subject: Re: config files in packages (Re: (proposal) new flag for pkg_delete) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 20:07:38 -0000 --u65IjBhB3TIa72Vp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 03, 2003 at 03:14:28PM -0400, The Anarcat wrote: > Debian adopted what I think is an elegant solution to this > problem. The configuration files are marked as such in the > package. When deinstalling, you must explicitely ask it if you want > the configuration files to be removed. Most well-written packages install a sample config file, copy it to the real config file if one does not exist (and it is appropriate to do so), then only remove the real config file at deinstall time iff it does not differ from the sample config file. See any number of port plists for the implementation of this. Kris --u65IjBhB3TIa72Vp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/VkniWry0BWjoQKURAlhdAKCnvLAumhqWzHvPnbXy7Mu9Lt9aXACg43Ny uPGslQJkb+Q1SWMSxuIEN04= =KrUS -----END PGP SIGNATURE----- --u65IjBhB3TIa72Vp--