mutt: prevent exposing mutt config options when not enabled

Ensure Mutt's configuration options do not appear in the config when
Mutt is not enabled.

Reported-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
This commit is contained in:
Matthew Hagan 2021-11-06 23:42:44 +00:00 committed by Rosen Penev
parent 33ea7a719f
commit abca3c73e6

View file

@ -33,6 +33,7 @@ define Package/mutt
DEPENDS:=+MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +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/
MENU:=1
endef endef
define Package/mutt/description define Package/mutt/description
@ -59,38 +60,42 @@ define Package/mutt/install
endef endef
define Package/mutt/config define Package/mutt/config
menu "Select mutt build options"
config MUTT_POP config MUTT_POP
depends on PACKAGE_mutt
bool "POP support" bool "POP support"
default y default y
help help
Enables POP support in mutt. Enables POP support in mutt.
config MUTT_IMAP config MUTT_IMAP
depends on PACKAGE_mutt
bool "IMAP support" bool "IMAP support"
default y default y
help help
Enables IMAP support in mutt Enables IMAP support in mutt
config MUTT_SMTP config MUTT_SMTP
depends on PACKAGE_mutt
bool "SMTP support" bool "SMTP support"
default n default n
help help
Enables SMTP support in mutt. Enables SMTP support in mutt.
config MUTT_SASL config MUTT_SASL
depends on PACKAGE_mutt
bool "SASL support" bool "SASL support"
default n default n
help help
Enables SASL support in mutt (libsasl2). Enables SASL support in mutt (libsasl2).
config MUTT_GNUTLS config MUTT_GNUTLS
depends on PACKAGE_mutt
bool "GnuTLS support" bool "GnuTLS support"
default n default n
help help
Enables GnuTLS support in mutt (libgnutls). Enables GnuTLS support in mutt (libgnutls).
config MUTT_OPENSSL config MUTT_OPENSSL
depends on PACKAGE_mutt
bool "OpenSSL support" bool "OpenSSL support"
default y default y
help help
Enables OpenSSL support in mutt (libopenssl). Enables OpenSSL support in mutt (libopenssl).
endmenu
endef endef
$(eval $(call BuildPackage,mutt)) $(eval $(call BuildPackage,mutt))