Package: squid
Version: 2.7.STABLE9-2.1
Severity: normal
Tags: patch

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.


-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages squid depends on:
ii  adduser             3.112+nmu2           add and remove users and groups
ii  debconf [debconf-2. 1.5.36.1             Debian configuration management sy
ii  libc6               2.11.2-10            Embedded GNU C Library: Shared lib
ii  libcomerr2          1.41.12-4stable1     common error description library
ii  libdb4.8            4.8.30-2             Berkeley v4.8 Database Libraries [
ii  libgssapi-krb5-2    1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - k
ii  libkrb5-3           1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries
ii  libldap-2.4-2       2.4.23-7.2           OpenLDAP libraries
ii  libpam0g            1.1.1-6.1            Pluggable Authentication Modules l
ii  logrotate           3.7.8-6              Log rotation utility
ii  lsb-base            3.2-23.2squeeze1     Linux Standard Base 3.2 init scrip
ii  netbase             4.45                 Basic TCP/IP networking system
ii  squid-common        2.7.STABLE9-2.1      Internet object cache (WWW proxy c

squid recommends no packages.

Versions of packages squid suggests:
pn  logcheck-database <none>                 (no description available)
pn  resolvconf        <none>                 (no description available)
ii  smbclient         2:3.5.6~dfsg-3squeeze4 command-line SMB/CIFS clients for
pn  squid-cgi         <none>                 (no description available)
ii  squidclient       3.1.6-1.2              A full featured Web Proxy cache (H
pn  winbind           <none>                 (no description available)

-- debconf information:
--- squid.postrm        2011-08-02 09:49:43.000000000 +1000
+++ squid.postrm.new    2011-08-02 09:52:15.000000000 +1000
@@ -16,7 +16,7 @@
                rm -f /etc/init.d/squid
                update-rc.d squid remove > /dev/null
                echo "Purging logfiles .."
-               rm -rf /var/log/squid
+               rm -f /var/log/squid/{access,cache,store}.log*
                if [ -f /etc/squid/squid.conf ]; then
                        echo "Removing the config-file .."
                        rm -f /etc/squid/squid.conf

Reply via email to