postfix: prevent displaying config options when not enabled

Postfix's options should not be visible in the config when Postfix
is not enabled.

Secondly, place the config option menu behind the Postfix option rather
than underneath.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
This commit is contained in:
Matthew Hagan 2021-11-06 23:58:24 +00:00 committed by 1582130940
parent 544150f15d
commit e03806857b

View File

@ -45,6 +45,7 @@ define Package/postfix
postdrop=26:postdrop=26 postdrop=26:postdrop=26
URL:=http://www.postfix.org/ URL:=http://www.postfix.org/
DEPENDS:=+POSTFIX_CDB:tinycdb +POSTFIX_TLS:libopenssl +POSTFIX_SASL:libsasl2 +POSTFIX_LDAP:libopenldap +POSTFIX_DB:libdb47 +POSTFIX_SQLITE:libsqlite3 +POSTFIX_MYSQL:libmysqlclient +POSTFIX_PGSQL:libpq +POSTFIX_EAI:icu +POSTFIX_PCRE:libpcre DEPENDS:=+POSTFIX_CDB:tinycdb +POSTFIX_TLS:libopenssl +POSTFIX_SASL:libsasl2 +POSTFIX_LDAP:libopenldap +POSTFIX_DB:libdb47 +POSTFIX_SQLITE:libsqlite3 +POSTFIX_MYSQL:libmysqlclient +POSTFIX_PGSQL:libpq +POSTFIX_EAI:icu +POSTFIX_PCRE:libpcre
MENU:=1
endef endef
define Package/postfix/description define Package/postfix/description
@ -52,53 +53,62 @@ define Package/postfix/description
endef endef
define Package/postfix/config define Package/postfix/config
menu "Select postfix build options"
config POSTFIX_TLS config POSTFIX_TLS
depends on PACKAGE_postfix
bool "TLS support" bool "TLS support"
default y default y
help help
Implements TLS support in postfix (using OpenSSL). Implements TLS support in postfix (using OpenSSL).
config POSTFIX_SASL config POSTFIX_SASL
depends on PACKAGE_postfix
bool "SASL support" bool "SASL support"
default y default y
help help
Implements SASL support in postfix (using Cyrus SASL). Implements SASL support in postfix (using Cyrus SASL).
config POSTFIX_LDAP config POSTFIX_LDAP
depends on PACKAGE_postfix
bool "LDAP support" bool "LDAP support"
default y default y
help help
Implements LDAP support in postfix (using OpenLDAP). Implements LDAP support in postfix (using OpenLDAP).
config POSTFIX_DB config POSTFIX_DB
depends on PACKAGE_postfix
bool "BerkeleyDB support" bool "BerkeleyDB support"
default n default n
help help
Implements support for btree and hash files using Berkeley DB. Implements support for btree and hash files using Berkeley DB.
config POSTFIX_CDB config POSTFIX_CDB
depends on PACKAGE_postfix
bool "CDB support" bool "CDB support"
default y default y
help help
Implements support for cdb files using tinycdb Implements support for cdb files using tinycdb
config POSTFIX_SQLITE config POSTFIX_SQLITE
depends on PACKAGE_postfix
bool "SQLITE support" bool "SQLITE support"
default y default y
help help
Implements support for SQLite3 DB Implements support for SQLite3 DB
config POSTFIX_MYSQL config POSTFIX_MYSQL
depends on PACKAGE_postfix
bool "MYSQL support" bool "MYSQL support"
default n default n
help help
Implements support for MySQL Implements support for MySQL
config POSTFIX_PGSQL config POSTFIX_PGSQL
depends on PACKAGE_postfix
bool "PostgreSQL support" bool "PostgreSQL support"
default n default n
help help
Implement support for PostgreSQL Implement support for PostgreSQL
config POSTFIX_PCRE config POSTFIX_PCRE
depends on PACKAGE_postfix
bool "PCRE support" bool "PCRE support"
default y default y
help help
Implement support for Perl Compatible Regular Expressions Implement support for Perl Compatible Regular Expressions
config POSTFIX_EAI config POSTFIX_EAI
depends on PACKAGE_postfix
bool "SMTPUTF8 support" bool "SMTPUTF8 support"
default n default n
help help
@ -108,7 +118,6 @@ define Package/postfix/config
(Internationalized delivery status notifications). (Internationalized delivery status notifications).
Since version 3.0, Postfix fully supports UTF-8 email Since version 3.0, Postfix fully supports UTF-8 email
addresses and UTF-8 message header values. addresses and UTF-8 message header values.
endmenu
endef endef
CCARGS=-DNO_NIS -fcommon CCARGS=-DNO_NIS -fcommon