emailrelay: move config options to Config.in
authorSergey Ponomarev <redacted>
Mon, 1 Jan 2024 15:31:05 +0000 (17:31 +0200)
committerJosef Schlehofer <redacted>
Wed, 21 May 2025 09:08:36 +0000 (11:08 +0200)
Signed-off-by: Sergey Ponomarev <redacted>
mail/emailrelay/Config.in [new file with mode: 0644]
mail/emailrelay/Makefile

diff --git a/mail/emailrelay/Config.in b/mail/emailrelay/Config.in
new file mode 100644 (file)
index 0000000..3fd2840
--- /dev/null
@@ -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
index cafe8cf09161f344890dfabf82ad2be1611f3900..10091ebea4529e3142ba654b68f5b87ca0473076 100644 (file)
@@ -19,7 +19,11 @@ PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
 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 \
git clone https://git.99rst.org/PROJECT