From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 19 17:50:28 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DEF316A4CF for ; Mon, 19 Jul 2004 17:50:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3251543D2D for ; Mon, 19 Jul 2004 17:50:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i6JHoRIG088745 for ; Mon, 19 Jul 2004 17:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6JHoRLL088744; Mon, 19 Jul 2004 17:50:27 GMT (envelope-from gnats) Date: Mon, 19 Jul 2004 17:50:27 GMT Message-Id: <200407191750.i6JHoRLL088744@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: tmseck-lists@netcologne.de (Thomas-Martin Seck) Subject: Re: ports/69266: www/squid delete existing files when "make deinstall" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thomas-Martin Seck List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 17:50:28 -0000 The following reply was made to PR ports/69266; it has been noted by GNATS. From: tmseck-lists@netcologne.de (Thomas-Martin Seck) To: bug-followup@freebsd.org Cc: Tsurutani Naoki Subject: Re: ports/69266: www/squid delete existing files when "make deinstall" Date: 19 Jul 2004 17:47:39 -0000 * Tsurutani Naoki : >>Description: > www/squid removes many files in $PREFIX/etc/squid when it is deinstalled. > This port has no pkg-plist, and generate it in Makefile. > It seems to me that the generating way is simple listing of > existing files just after installation. > But this procedure includes foreign files from www/squid. > MD5 checksums are also recorded, so changed files are not removed, > but many files that are not changed, cf. configuration files, are > removed. Oops. I admit I did not think about this case when I switched to dynamic plist creation since I used to use a copy of the original directories for modifications. >>How-To-Repeat: > always. Fortunately, you can avoid this. If you want to customize your icons and/or the error pages, just put these modified directories where the PLIST creation script does not look for them. Then use the 'icon_directory' and 'error_directory' configuration options to tell squid where your custom files live. This will preserve them. > >>Fix: > I don't know, but I think the way of generating PLIST should be improved. I see the problem, but the only sure-fire way to avoid this would be to stage a fake installation first, create the package list and then copy this installation into the PREFIX dir, like firefox does. I am not really fond of this and I would like to avoid it. Mind you that other ports suffer from the same problem, e.g. vim. And while this will preserve locally added files, it will still end in modified files being overwritten on every update.