clamav: Use freshclam.conf defined by clamav-updater module if enabled
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user