aboutsummaryrefslogtreecommitdiff
path: root/package/exim
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2014-10-31 22:15:20 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-01 15:54:34 +0100
commitaf96cc2e32076112ef12808f4ad8ffa3102f3c24 (patch)
tree25db6dc2c28018d7e203b94fe6a4056f381c3138 /package/exim
parentbf3753064b4414fb984ee013acc320b5b4a277c7 (diff)
downloadbuildroot-af96cc2e32076112ef12808f4ad8ffa3102f3c24.tar.gz
buildroot-af96cc2e32076112ef12808f4ad8ffa3102f3c24.tar.bz2
package/exim: Add ClamAV support
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/exim')
-rw-r--r--package/exim/exim.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index b6fe2027f6..77f51e3046 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -55,6 +55,13 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT
endef
endif
+ifeq ($(BR2_PACKAGE_CLAMAV),y)
+EXIM_DEPENDENCIES += clamav
+define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV
+ $(call exim-config-change,WITH_CONTENT_SCAN,yes)
+endef
+endif
+
define EXIM_CONFIGURE_TOOLCHAIN
$(call exim-config-add,CC,$(TARGET_CC))
$(call exim-config-add,CFLAGS,$(TARGET_CFLAGS))
@@ -73,6 +80,7 @@ else # CUSTOM_CONFIG
define EXIM_CONFIGURE_CMDS
$(EXIM_USE_DEFAULT_CONFIG_FILE)
$(EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT)
+ $(EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV)
$(EXIM_CONFIGURE_TOOLCHAIN)
endef
endif # CUSTOM_CONFIG