clamav: Use freshclam.conf defined by clamav-updater module if enabled

This commit is contained in:
Martin Sturm
2016-03-04 02:26:44 +01:00
parent 4bea06636a
commit 507ad9a4f9
2 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
{ stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
, libmilter, pcre }:
, libmilter, pcre, freshclamConf ? null }:
stdenv.mkDerivation rec {
name = "clamav-${version}";
version = "0.99";
@@ -24,6 +25,8 @@ stdenv.mkDerivation rec {
"--disable-clamav"
];
fixupPhase = if (freshclamConf != null) then ''echo "${freshclamConf}" > $out/etc/freshclam.conf'' else "";
meta = with stdenv.lib; {
homepage = http://www.clamav.net;
description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";