Package: c-icap
Version: 1:0.3.3-0gaio1
Severity: important

I've recompiled c-icap in wheezy, without further modification.

I've also compiled and i'm using 'squidclamav', and i've hit a little
trouble (too verbose log), that squidclamav author say me to insert in
c-icap.conf, right after the squidclamav module load, the entry:

        squidclamav.PreviewSize 1024

but when i tried to restart the service i got:

        root@lupus:~# /etc/init.d/c-icap start
        /etc/init.d/c-icap: 65: export: config_squidclamav.PreviewSize: bad 
variable name

After fiddling a bit, i've understood that the trouble came from the
/etc/init.d/c-icap script, that try to export some variables bult from
c-icap.conf file, and fail with the new one (presumibly for the dot).

I've done a simple modification to the script:

root@lupus:~# diff -ud /etc/init.d/c-icap~ /etc/init.d/c-icap
--- /etc/init.d/c-icap~ 2014-03-12 08:07:27.000000000 +0100
+++ /etc/init.d/c-icap  2014-03-31 14:40:57.000000000 +0200
@@ -58,7 +58,7 @@
        config_Group=c-icap
 
        if [ -f "$CONFFILE" ]; then
-               for variable in `egrep -v '^[[:space:]]*(#|$)' "$CONFFILE" | 
awk '{print $1}'`; do
+               for variable in `egrep -v '^[[:space:]]*(#|$)' "$CONFFILE" | 
awk '{print $1}' | egrep -v '\.'`; do
                        value=`grep ^$variable $CONFFILE | head -n1 | awk 
'{print $2}'`
 
                        if [ -n "$value" ]; then

and clearly now works, but i don't know if there's a better way...


More info on:

        https://github.com/darold/squidclamav/issues/17


Thanks.

-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages c-icap depends on:
ii  adduser      3.113+nmu3
ii  libc6        2.13-38+deb7u1
ii  libdb5.1     5.1.29-5
ii  libicapapi3  1:0.3.3-0gaio1
ii  lsb-base     4.1+Debian8+deb7u1

c-icap recommends no packages.

Versions of packages c-icap suggests:
pn  libc-icap-module  <none>
ii  squid3            3.1.20-2.2

-- Configuration Files:
/etc/c-icap/c-icap.conf changed [not included]
/etc/default/c-icap changed [not included]
/etc/init.d/c-icap changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to