Priority: optional
Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
Build-Depends: debhelper (>= 8)
-Standards-Version: 3.9.3
+Standards-Version: 3.9.6
Package: clamav-cn
Architecture: all
-Depends: ${misc:Depends}, carnet-tools-cn (>= 2.3), rsync, curl, clamav-unofficial-sigs (>= 3.7.1-3)
-Pre-Depends: clamav-daemon (>= 0.97.8+dfsg-1), clamav-freshclam (>= 0.97.8+dfsg-1), clamav (>= 0.97.8+dfsg-1)
-Conflicts: amavisd-cn (<< 2:20030616p5-0), libclamav1, libclamav2, libclamav3, libclamav4, libclamav5
+Depends: ${misc:Depends}, carnet-tools-cn (>= 2.3), clamav-unofficial-sigs (>= 5.4.1~cn0)
+Pre-Depends: clamav-daemon (>= 0.99.2), clamav-freshclam (>= 0.99.2), clamav (>= 0.99.2)
+Conflicts: amavisd-cn (<< 2:20030616p5-0), libclamav1, libclamav2, libclamav3, libclamav4, libclamav5, libclamav6
Description: antivirus scanner for Unix
Clam AntiVirus is an anti-virus toolkit for Unix. The main purpose of this
software is the integration with mail servers (attachment scanning). The
# Load CARNet functions
. /usr/share/carnet-tools/functions.sh
-cp_check_and_sed "^AllowSupplementaryGroups false" \
- "s/AllowSupplementaryGroups false/AllowSupplementaryGroups true/g" \
+# obsolete option
+cp_check_and_sed "^AllowSupplementaryGroups" \
+ "s/^AllowSupplementaryGroups/#AllowSupplementaryGroups/g" \
/etc/clamav/clamd.conf && restart="yes" || true
-if ! grep -q ^AllowSupplementaryGroups /etc/clamav/clamd.conf; then
- echo "AllowSupplementaryGroups true" >> /etc/clamav/clamd.conf
- reload="yes"
-fi
-
chown -R clamav:clamav /var/run/clamav /var/lib/clamav /var/log/clamav
# dodaj korisnika clamav u grupu amavis (ako postoji...)
getent group amavis > /dev/null && usermod -G amavis clamav && restart="yes"
-# ispravi opciju od clamscana u amavis konfi
-# --disable-summary -> --no-summary
-if [ -f /etc/amavis/conf.d/15-av_scanners ]; then
- cp_check_and_sed "\-\-disable-summary" \
- "s/--disable-summary/--no-summary/g" \
- /etc/amavis/conf.d/15-av_scanners && restart_amavis="yes" || true
-
- if [ -f /etc/amavis/conf.d/15-av_scanners.cn-old ]; then
- rm -f /etc/amavis/conf.d/15-av_scanners.cn-old
- fi
-fi
-
-# izbaciti MSRBL
-if ! grep -q "^unset msrbl_dbs" /etc/clamav-unofficial-sigs.conf; then
- echo "unset msrbl_dbs" >> /etc/clamav-unofficial-sigs.conf
-fi
-
-if [ "$restart_amavis" = "yes" ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
- [ -x /etc/init.d/amavisd-cn ] && invoke-rc.d amavisd-cn restart
- else
- [ -x /etc/init.d/amavisd-cn ] && /etc/init.d/amavisd-cn restart
- fi
- # nije potreban restart clamava
- restart="no"
-fi
-
# restart if needed
[ "$restart" = "yes" ] || exit 0
service clamav-daemon restart