Date: Tue, 20 Jan 2009 22:09:25 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Guido Falsi <mad@madpilot.net> Cc: ports@FreeBSD.org, Rick Chisholm <rchisholm@parallel42.ca> Subject: Re: FreeBSD Port: squidGuard-1.4 Message-ID: <4976BC15.3080209@FreeBSD.org> In-Reply-To: <497638D3.1000908@madpilot.net> References: <49763159.2070901@parallel42.ca> <497638D3.1000908@madpilot.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4976BC15.3080209>