From owner-freebsd-ports@FreeBSD.ORG Tue Jan 20 20:49:29 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 5D67310657C5 for ; Tue, 20 Jan 2009 20:49:29 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id E8BB38FC08 for ; Tue, 20 Jan 2009 20:49:28 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from localhost (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id EE383130C40; Tue, 20 Jan 2009 21:49:26 +0100 (CET) X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by localhost (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bRuxPyQ8xvuY; Tue, 20 Jan 2009 21:49:24 +0100 (CET) Received: from anakin.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP; Tue, 20 Jan 2009 21:49:24 +0100 (CET) Message-ID: <497638D3.1000908@madpilot.net> Date: Tue, 20 Jan 2009 21:49:23 +0100 From: Guido Falsi User-Agent: Thunderbird 2.0.0.19 (X11/20090111) MIME-Version: 1.0 To: Rick Chisholm References: <49763159.2070901@parallel42.ca> In-Reply-To: <49763159.2070901@parallel42.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org 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: Tue, 20 Jan 2009 20:49:31 -0000 Rick Chisholm wrote: > Hello: > > I recently did a SG 1.3 to 1.4 portupgrade and it seems to have cleared > out my /var/db/squidGuard dir. Does that make sense? Hi! It does make sense. It depends on how the port was first installed. When taking maintainership I did not modify the original logic. 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. BTW, the default datadir is /var/db/squidGuard. This logic is there to adhere to porting guidelines and make portlint/tinderboxes happy, and also give first time users a working software. It could be changed, but I can't just have the port create a directory full of files and then leave them there. One solution could be to just create the directory before installing/upgrading the software one time, then it will be left there untouched. > > As an aside, I would like to thank-you for maintaining this port - your > work is appreciated. Thank you a lot. I'm open to suggestions to how to make the port better. I just have to follow porting guidelines regarding not leaving files behind. -- Guido Falsi