blob: a93511f0a6f2e6733144fdb908126175b3b5ed5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Clamav(AutotoolsPackage):
"""Open source antivirus engine for detecting trojans,
viruses, malware & other malicious threats."""
homepage = "https://www.clamav.net/"
url = "https://www.clamav.net/downloads/production/clamav-0.101.2.tar.gz"
version("0.101.2", sha256="0a12ebdf6ff7a74c0bde2bdc2b55cae33449e6dd953ec90824a9e01291277634")
depends_on("pkgconfig", type="build")
depends_on("json-c")
depends_on("openssl")
depends_on("pcre")
depends_on("yara")
depends_on("zlib-api")
depends_on("bzip2")
depends_on("curl", type="link")
def configure_args(self):
spec = self.spec
args = [
"--enable-llvm=no",
"--with-libjson=%s" % spec["json-c"].prefix,
"--with-openssl=%s" % spec["openssl"].prefix,
"--with-pcre=%s" % spec["pcre"].prefix,
"--with-zlib=%s" % spec["zlib-api"].prefix,
"--with-bzip2=%s" % spec["bzip2"].prefix,
]
return args
|