Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 21:49:23 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        Rick Chisholm <rchisholm@parallel42.ca>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: squidGuard-1.4
Message-ID:  <497638D3.1000908@madpilot.net>
In-Reply-To: <49763159.2070901@parallel42.ca>
References:  <49763159.2070901@parallel42.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?497638D3.1000908>