# HG changeset patch # User Eric Joseph-Alexandre # Date 1331766502 -3600 # Node ID cb60d8d42bfd3d41b16932a22b9342c7306dfa5f # Parent 1048bdb56768066a66c7cfb642352cbb7ae0dad2 squidclamav: Fix config. Remove unwanted file diff -r 1048bdb56768 -r cb60d8d42bfd squidclamav/receipt --- a/squidclamav/receipt Wed Mar 14 13:14:54 2012 +0100 +++ b/squidclamav/receipt Thu Mar 15 00:08:22 2012 +0100 @@ -42,12 +42,16 @@ sed -i -e "s|^redirect.*|redirect http://localhost/cgi-bin/squidclamav/clwarn.cgi|" \ -e "s|^#squidguard.*|squidguard /usr/bin/squidGuard|" \ $fs/etc/squidclamav.conf + + rm -f $fs/usr/lib/c_icap/*.la + } #Post install command post_install() { + echo 'Service squidclamav squidclamav.so' >> $1/etc/c-icap/c-icap.conf if ( ps | grep -q squid ); then /etc/init.d/squid restart fi @@ -56,7 +60,11 @@ #Post remove command post_remove() { + sed -i -e "s/.*squidclamav.*//" $1/etc/c-icap/c-icap.conf" if ( ps | grep -q squid ); then /etc/init.d/squid restart fi + if ( ps | grep -q c-icap ); then + /etc/init.d/c-icapd restart + fi } diff -r 1048bdb56768 -r cb60d8d42bfd squidclamav/stuff/icap-clamav.conf --- a/squidclamav/stuff/icap-clamav.conf Wed Mar 14 13:14:54 2012 +0100 +++ b/squidclamav/stuff/icap-clamav.conf Thu Mar 15 00:08:22 2012 +0100 @@ -8,6 +8,8 @@ icap_preview_enable on icap_preview_size 1024 icap_service service_req reqmod_precache bypass=1 icap://127.0.0.1:1344/squidclamav +icap_service service_resp respmod_precache bypass=1 icap://127.0.0.1:1344/squidclamav +adaptation_service_set class_avreq service_req +adaptation_service_set class_avresp service_req adaptation_access service_req allow all -icap_service service_resp respmod_precache bypass=1 icap://127.0.0.1:1344/squidclamav adaptation_access service_resp allow all