package/exim: Add support for SMTP AUTH through Dovecot
authorBernd Kuhls <bernd.kuhls@t-online.de>
Wed, 29 Oct 2014 20:14:06 +0000 (21:14 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 30 Oct 2014 21:30:06 +0000 (22:30 +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 f6016fabc3ce46a12ac545554c9bb366ff5a10d1..b6fe2027f6d1ae4b8e0a24f7b9431d224dcc8e42 100644 (file)
@@ -48,6 +48,13 @@ define EXIM_USE_DEFAULT_CONFIG_FILE
        $(call exim-config-unset,EXIM_MONITOR)
 endef
 
+ifeq ($(BR2_PACKAGE_DOVECOT),y)
+EXIM_DEPENDENCIES += dovecot
+define EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT
+       $(call exim-config-change,AUTH_DOVECOT,yes)
+endef
+endif
+
 define EXIM_CONFIGURE_TOOLCHAIN
        $(call exim-config-add,CC,$(TARGET_CC))
        $(call exim-config-add,CFLAGS,$(TARGET_CFLAGS))
@@ -65,6 +72,7 @@ endef
 else # CUSTOM_CONFIG
 define EXIM_CONFIGURE_CMDS
        $(EXIM_USE_DEFAULT_CONFIG_FILE)
+       $(EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT)
        $(EXIM_CONFIGURE_TOOLCHAIN)
 endef
 endif # CUSTOM_CONFIG