From: Sergey Ponomarev Date: Mon, 1 Jan 2024 15:31:05 +0000 (+0200) Subject: emailrelay: move config options to Config.in X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0d5659690d2d9e05634844f5f3786eec9984df00;p=openwrt-packages.git emailrelay: move config options to Config.in Signed-off-by: Sergey Ponomarev --- diff --git a/mail/emailrelay/Config.in b/mail/emailrelay/Config.in new file mode 100644 index 000000000..3fd28402d --- /dev/null +++ b/mail/emailrelay/Config.in @@ -0,0 +1,25 @@ +if PACKAGE_emailrelay + +comment "SSL support (SSMTP is supported)" + +choice + prompt "Select TSL library" + default EMAILRELAY_SSL + + config EMAILRELAY_SSL + bool "OpenSSL" + select PACKAGE_libopenssl + help + Builds the package with OpenSSL. + + config EMAILRELAY_NOSSL + bool "No TLS support" +endchoice + +config EMAILRELAY_SUPPORT_VERBOSE_DBG + bool "Enable support for extended logging" + default n + help + Enables support for extended logging (must also be explicitly enabled by using command line switch --debug when starting emailrelay) + +endif diff --git a/mail/emailrelay/Makefile b/mail/emailrelay/Makefile index cafe8cf09..10091ebea 100644 --- a/mail/emailrelay/Makefile +++ b/mail/emailrelay/Makefile @@ -19,7 +19,11 @@ PKG_MAINTAINER:=Federico Di Marco PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE_FILES:=COPYING -PKG_CONFIG_DEPENDS:=CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG CONFIG_EMAILRELAY_SSL +PKG_CONFIG_DEPENDS:= \ + CONFIG_EMAILRELAY_SUPPORT_VERBOSE_DBG \ + CONFIG_EMAILRELAY_SSL \ + CONFIG_EMAILRELAY_NOSSL + PKG_BUILD_FLAGS:=gc-sections lto include $(INCLUDE_DIR)/package.mk @@ -35,20 +39,7 @@ endef define Package/emailrelay/config -config EMAILRELAY_SUPPORT_VERBOSE_DBG - bool "Enable support for extended logging" - depends on PACKAGE_emailrelay - default n - help - Enables support for extended logging (must also be explicitely enabled by using command line switch --debug when starting emailrelay) - -config EMAILRELAY_SSL - bool "Enable support for OpenSSL" - depends on PACKAGE_emailrelay - default y - select PACKAGE_libopenssl - help - Builds the package with OpenSSL support (SSMTP is supported). + source "$(SOURCE)/Config.in" endef @@ -72,7 +63,6 @@ endef CONFIGURE_ARGS += \ --without-doxygen \ --without-man2html \ - --without-mbedtls \ --without-pam \ --disable-bsd \ --disable-gui \