package/exim: Add ClamAV support
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 31 Oct 2014 21:15:20 +0000 (22:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Nov 2014 14:54:34 +0000 (15:54 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/exim/exim.mk

index b6fe2027f6d1ae4b8e0a24f7b9431d224dcc8e42..77f51e30465e5dfcbb6f7b1578a5a7f7a3fff5b2 100644 (file)
@@ -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