OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../anomy-mailtools/clamav.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./contrib/check_for_virus.orig 2001-08-13 12:10:10.000000000 -0400
  18. +++ ./contrib/check_for_virus 2003-08-25 10:17:26.000000000 -0400
  19. @@ -49,6 +49,23 @@
  20. logger "virus check for $1: ok"
  21. echo "CLEAN : OK"
  22. fi
  23. +# ClamAV (Clam AntiVirus)
  24. +elif test -x /usr/bin/clamdscan; then
  25. + STATUS=
  26. + /usr/bin/clamdscan --quiet "$1"
  27. + RETURNCODE=$?
  28. + if test $RETURNCODE -eq 1; then
  29. + STATUS="virus found"
  30. + RET=3
  31. + fi
  32. + if test -n "$STATUS"; then
  33. + INFO=`/usr/bin/clamdscan --disable-summary --stdout "$1"|cut -f2 -d' '`
  34. + logger "virus check for $1: VIRUS FOUND!! - $INFO"
  35. + echo "VIRUS : $INFO"
  36. + else
  37. + logger "virus check for $1: ok"
  38. + echo "CLEAN : OK"
  39. + fi
  40. # AVP (Kaspersky Anti-Virus for Linux)
  41. elif test -x /usr/bin/kavscanner; then
  42. STATUS=