diff options
author | Denis Davydov <davydden@gmail.com> | 2019-06-25 01:47:15 +0200 |
---|---|---|
committer | Elizabeth Fischer <elizabeth.fischer@columbia.edu> | 2019-06-24 19:47:15 -0400 |
commit | 8e89a82076b9fe5a634528e4f71f3b082514d91e (patch) | |
tree | 12f2503717e9bd392634a3b677cfe2361666da19 /var | |
parent | 16ff38b784b9ca96e02ef9d22ed07754aa3a4b76 (diff) | |
download | spack-8e89a82076b9fe5a634528e4f71f3b082514d91e.tar.gz spack-8e89a82076b9fe5a634528e4f71f3b082514d91e.tar.bz2 spack-8e89a82076b9fe5a634528e4f71f3b082514d91e.tar.xz spack-8e89a82076b9fe5a634528e4f71f3b082514d91e.zip |
clamav: add new package (#11818)
* clamav: add new package
* fix flake8
* remove --dsable lines
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/clamav/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/clamav/package.py b/var/spack/repos/builtin/packages/clamav/package.py new file mode 100644 index 0000000000..e02a574808 --- /dev/null +++ b/var/spack/repos/builtin/packages/clamav/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2019 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 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('pkg-config', type='build') + depends_on('json-c') + depends_on('openssl') + depends_on('pcre') + depends_on('yara') + depends_on('zlib') + depends_on('bzip2') + + 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'].prefix, + '--with-bzip2=%s' % spec['bzip2'].prefix + ] + return args |