--- /dev/null
+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
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
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
CONFIGURE_ARGS += \
--without-doxygen \
--without-man2html \
- --without-mbedtls \
--without-pam \
--disable-bsd \
--disable-gui \