#636287 squidguard should depend on squid to guarantee /var/log/squid existence

Package:
squidguard
Source:
squidguard
Description:
filter and redirector plugin for Squid
Submitter:
Geoff Crompton
Date:
2015-01-27 14:33:10 UTC
Severity:
normal
#636287#5
Date:
2011-08-01 23:53:52 UTC
From:
To:
On my system I had squid, squid3, srg and squidguard. squid had been installed
due to a recommends dependancy by srg.

When I purged squid the logrotation for squidguard started to complain. By
default squidGuard logs to /var/log/squid, and
/var/lib/dpkg/info/squidguard.list mentions /var/log/squid.

The /var/lib/dpkg/info/squid.postrm script does 'rm -rf /var/log/squid'. I
don't think the squid package should be removing directories that are used by
other packages.

I've attached a trivial patch, to change the rm command to remove the logfiles
rather than the directory.

#636287#10
Date:
2011-08-07 10:46:46 UTC
From:
To:
Since /var/log/squid/ is a private directory added by the squid package
for its own use I don't think other packages should be requiring its
existence without a clear dependency on the squid package which creates it.

squidguard appears to be violating the FHS standard by not using
/var/log/squidguard/ for its own logs.

AYJ

#636287#15
Date:
2015-01-27 14:25:28 UTC
From:
To:
reassign 636287 squidguard
retitle 636287 squidguard should depend on squid to guarantee /var/log/squid existence
tags 636287 -patch
thanks

I’m re-assigning this (ancient) bug to squidguard following Amos advice.

Regards,

L