{ "name": "clamav", "version": "1.5.4", "summary": "ClamAV antivirus: clamd, clamscan, freshclam (Rspamd asks clamd)", "category": "server", "license": "GPL-2.0-only", "homepage": "https://www.clamav.net/", "source": { "url": "https://github.com/Cisco-Talos/clamav/releases/download/clamav-1.5.4/clamav-1.5.4.tar.gz", "sha256": "1af1117a228f1b5bc7fa91a0dabc37848a99e7d25188e9be8043332ce721dfd3" }, "watch": {"kind": "github-release", "repo": "Cisco-Talos/clamav", "tag_regex": "^clamav-([0-9]+\\.[0-9]+\\.[0-9]+)$"}, "deps": [ "openssl", "zlib", "bzip2", "pcre2", "libxml2", "json-c", "curl", "ncurses" ], "env_packages": [ "cargo-web", "rustc-web" ], "env_packages_for": { "ubuntu-24.04": [ "cargo-1.89", "rustc-1.89" ] }, "static": false, "nss": true, "check": "bin/clamscan --version | first && t=$(mktemp -d) && printf 'bvs antivirus check\\n' > \"$t/f\" && printf 'clean\\n' > \"$t/g\" && printf '%s:%s:Bvs.Test.Signature\\n' \"$(md5sum < \"$t/f\" | cut -d' ' -f1)\" \"$(wc -c < \"$t/f\")\" > \"$t/t.hdb\" && { bin/clamscan --no-summary -d \"$t/t.hdb\" \"$t/f\" \"$t/g\" > \"$t/o\"; r=$?; cat \"$t/o\"; [ $r = 1 ]; } && has 'f: Bvs.Test.Signature.*FOUND' < \"$t/o\" && has 'g: OK' < \"$t/o\"" }