izmjene za novi clamav-unofficial-sigs
authorIvan Rako <irako@nekkar.carnet.hr>
Thu, 21 Jul 2016 22:55:43 +0000 (00:55 +0200)
committerIvan Rako <irako@nekkar.carnet.hr>
Thu, 21 Jul 2016 22:55:43 +0000 (00:55 +0200)
debian/changelog
debian/control
debian/postinst

index be4d9cd..17e27f7 100644 (file)
@@ -1,3 +1,9 @@
+clamav-cn (4:0.99.2~cn0) stable; urgency=medium
+
+  * Ovisnost o novoj verziji clamav-unofficial-sigs
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr>  Fri, 22 Jul 2016 00:47:34 +0200
+
 clamav-cn (4:0.98.7~cn0) stable; urgency=medium
 
   * Prvo izdanje za jessie
index 17f366f..783c43f 100644 (file)
@@ -3,13 +3,13 @@ Section: net
 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
index a219653..bff2dbb 100755 (executable)
@@ -8,47 +8,16 @@ set -e
 # 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