Update of /cvsroot/fink/dists/10.2-gcc3.3/unstable/main/finkinfo/utils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19974

Modified Files:
        clamav.info 
Log Message:
Timeout after 20 seconds and download new virus database if no answer from user. 
Streamlined PostInstallScript. 

Index: clamav.info
===================================================================
RCS file: /cvsroot/fink/dists/10.2-gcc3.3/unstable/main/finkinfo/utils/clamav.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- clamav.info 1 Jul 2004 23:48:18 -0000       1.7
+++ clamav.info 16 Jul 2004 22:45:00 -0000      1.8
@@ -1,6 +1,6 @@
 Package: clamav
 Version: 0.74
-Revision: 1
+Revision: 2
 Source: mirror:sourceforge:%n/%n-%v.tar.gz
 Source-MD5: 3a1e6e0b33267749cdb1f4104ed42f14
 BuildDepends: gmp, bzip2, bzip2-dev
@@ -72,34 +72,16 @@
  fi
 <<
 PostInstScript: <<
- #!/bin/sh
- dir=%p/var/db/%n
- mainDB=main.cvd
- dailyDB=daily.cvd
- mainMD5SUM=937f22844dd8dc7e75604a7c0939ad73
- dailyMD5SUM=566a3e0e2390e72b1fa8b16463d5b462
- origdefs="2"
- if [ -f $dir/$mainDB ] && [ -f $dir/$dailyDB ]; then
-   test1=`md5sum $dir/$mainDB`;
-   test2=`md5sum $dir/$dailyDB`;
-   if [ "$test1" == "$mainMD5SUM  $dir/$mainDB" ] && [ "$test2" == "$dailyMD5SUM  
$dir/$dailyDB" ]; then
-     origdefs="1";
-   fi;
- else
-   origdefs="1";
- fi
- if [ "$origdefs" == "1" ]; then
-  printf "\n*** You appear to have the default virus definitions included with %n."
-  YN=yes;
-  printf "\n*** Download the latest virus definitions now? [Yn] "
-  read YN
-  : ${YN:=yes}
-  case $YN in
-   [yY]|[yY][eE][sS]) %p/bin/freshclam ;;
-  esac
- else
-  printf "\nYou have the newest virus definitions."
+ #!/bin/bash
+ printf "\nDo you want to download the latest virus definitions now? [Yn] "
+ YN=yes
+ if ! read -t 20 YN; then 
+   echo "Yes" 
  fi
+ case $YN in
+   [nN]|[nN][oO]) echo "Your virus definitions might be out-dated." ;;
+   *) %p/bin/freshclam ;;
+ esac
  printf "\nTo download the latest virus definitions in future, run 'sudo 
freshclam'.\n"
  
  if (( `/usr/bin/grep -c "^Example" %p/etc/clamav.conf` )); then 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to