Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/utils
In directory vz-cvs-3.sog:/tmp/cvs-serv13469

Modified Files:
        clamav.info 
Log Message:
New upstream version. No longer ships virus db in tarball.

Index: clamav.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/utils/clamav.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- clamav.info 19 Mar 2012 15:50:28 -0000      1.5
+++ clamav.info 27 Jun 2012 15:34:32 -0000      1.6
@@ -1,6 +1,6 @@
 Info3: <<
 Package: clamav
-Version: 0.97.4
+Version: 0.97.5
 Revision: 11
 
 Description: Clam Anti-Virus scanner
@@ -43,7 +43,7 @@
 Homepage: http://www.clamav.net/
 License: GPL
 Source: mirror:sourceforge:%n/%n-%v.tar.gz
-Source-MD5: dc1e5abc093b11f120e4eac94a7f78aa
+Source-MD5: 4d4b93243a5add0216acc4f24f43a895
 
 BuildDepends: <<
   fink (>= 0.24.12),
@@ -190,11 +190,13 @@
 
 InfoTest: <<
  TestSuiteSize: medium
+ TestSource: http://db.local.clamav.net/main.cvd
+ TestSource-MD5: eb12490fda87d602e476d4b163f8a34b
  TestScript: <<
    #!/bin/sh -ev
    make check || exit 2
    for clamfile in `/bin/ls -1 %b/test/clam*`; do
-     ( %b/clamscan/clamscan --database=%b/database $clamfile ) ;
+     ( %b/clamscan/clamscan --database=%b/.. $clamfile ) ;
      if [ $? -ne 1 ] ; then exit 2 ; fi
    done
  <<
@@ -203,6 +205,7 @@
 PostInstScript: <<
  # need to change permissions here as these files might already been
  # installed, in which case the permission are not adjusted
+ /bin/mkdir -p %p/var/db/clamav
  /usr/sbin/chown -R clamav:admin %p/var/db/clamav
  /bin/chmod g+w %p/var/db/clamav
  /bin/chmod g+w %p/etc/freshclam.conf
@@ -219,7 +222,9 @@
  printf "\nTo download the latest virus definitions in future, run 
'freshclam'.\n"
 <<
 PreRmScript: <<
-  # Remove db files
-  /bin/rm -rf %p/var/db/clamav
+  if [ $1 != "upgrade" ]; then
+    # Remove db files
+    /bin/rm -rf %p/var/db/clamav
+  fi
 <<
 <<


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to