mutt: add smtp, sasl, gnutls, menuconfig options
Compile tested: bcm53xx, MX65, master Add support for SMTP, SASL, GnuTLS and POP, IMAP, OpenSSL in the menuconfig. The SMTP/SASL configurable was required to successfully send email on GMail. Tested separately using OpenSSL and GnuTLS. Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
This commit is contained in:
parent
7b422274fa
commit
19877a952d
1 changed files with 42 additions and 4 deletions
|
@ -30,7 +30,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
define Package/mutt
|
define Package/mutt
|
||||||
SECTION:=mail
|
SECTION:=mail
|
||||||
CATEGORY:=Mail
|
CATEGORY:=Mail
|
||||||
DEPENDS:=+libopenssl +libncursesw +terminfo +zlib
|
DEPENDS:=+MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +terminfo +zlib
|
||||||
TITLE:=Console mail client
|
TITLE:=Console mail client
|
||||||
URL:=http://www.mutt.org/
|
URL:=http://www.mutt.org/
|
||||||
endef
|
endef
|
||||||
|
@ -43,10 +43,13 @@ endef
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--includedir=$(PKG_BUILD_DIR)/. \
|
--includedir=$(PKG_BUILD_DIR)/. \
|
||||||
--oldincludedir=$(PKG_BUILD_DIR)/. \
|
--oldincludedir=$(PKG_BUILD_DIR)/. \
|
||||||
--enable-pop \
|
$(if $(CONFIG_MUTT_POP),--enable-pop) \
|
||||||
--enable-imap \
|
$(if $(CONFIG_MUTT_IMAP),--enable-imap) \
|
||||||
|
$(if $(CONFIG_MUTT_SMTP),--enable-smtp) \
|
||||||
|
$(if $(CONFIG_MUTT_SASL),--with-sasl) \
|
||||||
--with-mailpath=/var/mail \
|
--with-mailpath=/var/mail \
|
||||||
--with-ssl \
|
$(if $(CONFIG_MUTT_GNUTLS),--with-gnutls) \
|
||||||
|
$(if $(CONFIG_MUTT_OPENSSL),--with-ssl) \
|
||||||
--without-idn \
|
--without-idn \
|
||||||
--disable-doc
|
--disable-doc
|
||||||
|
|
||||||
|
@ -55,4 +58,39 @@ define Package/mutt/install
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/mutt/config
|
||||||
|
menu "Select mutt build options"
|
||||||
|
config MUTT_POP
|
||||||
|
bool "POP support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enables POP support in mutt.
|
||||||
|
config MUTT_IMAP
|
||||||
|
bool "IMAP support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enables IMAP support in mutt
|
||||||
|
config MUTT_SMTP
|
||||||
|
bool "SMTP support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enables SMTP support in mutt.
|
||||||
|
config MUTT_SASL
|
||||||
|
bool "SASL support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enables SASL support in mutt (libsasl2).
|
||||||
|
config MUTT_GNUTLS
|
||||||
|
bool "GnuTLS support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enables GnuTLS support in mutt (libgnutls).
|
||||||
|
config MUTT_OPENSSL
|
||||||
|
bool "OpenSSL support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enables OpenSSL support in mutt (libopenssl).
|
||||||
|
endmenu
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,mutt))
|
$(eval $(call BuildPackage,mutt))
|
||||||
|
|
Loading…
Reference in a new issue