From owner-freebsd-ports@FreeBSD.ORG Wed Jan 21 06:09:00 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65A28106564A for ; Wed, 21 Jan 2009 06:09:00 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id F10448FC13 for ; Wed, 21 Jan 2009 06:08:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 4561 invoked by uid 399); 21 Jan 2009 06:08:59 -0000 Received: from localhost (HELO ?192.168.0.19?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 21 Jan 2009 06:08:59 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4976BC15.3080209@FreeBSD.org> Date: Tue, 20 Jan 2009 22:09:25 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Guido Falsi References: <49763159.2070901@parallel42.ca> <497638D3.1000908@madpilot.net> In-Reply-To: <497638D3.1000908@madpilot.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, Rick Chisholm Subject: Re: FreeBSD Port: squidGuard-1.4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 06:09:00 -0000 Guido Falsi wrote: > Since ports are expected not to leave files behind when deinstalled, > port logic checks on first install if ${DATADIR} exists. If it does it > will NOT be created/populated and NOT included in the plist, and not > removed on deinstall. > > On the contrary if it does not find such directory it will create, > populate it remove it on deinstall. The way that this is traditionally handled is for the port to install both file and file.sample, but only list file.sample in the plist. Then at deinstall time there should be a script to compare file to file.sample and remove file if it is the same. Repeat for values of $file as needed. It is not expected or desirable for a port to remove user-modified files (including those files created by a daemon). hth, Doug -- This .signature sanitized for your protection