From: Daniel F. Dickinson Date: Sun, 25 Jan 2026 16:05:43 +0000 (-0500) Subject: mailsend: fix ssl variant to use opensssl X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=444b62cbccf13492096fc0216d661f2ccf47f069;p=openwrt-packages.git mailsend: fix ssl variant to use opensssl As described in #28261 Not compiled with OpenSSL, the SSL variant of the mailsend package is not actually being compiled with OpenSSL. This is due to an upstream configure check borrowed from an ancient version of BIND, which no longer works. As a workaround we add `-DHAVE_OPENSSL=1` to the `TARGET_CFLAGS` when building the SSL variant. This results in a complaint about COPTS not being honoured correctly, but results in `mailsend` compiled with OpenSSL (i.e. works). Signed-off-by: Daniel F. Dickinson --- diff --git a/mail/mailsend/Makefile b/mail/mailsend/Makefile index a893c7a64..aace9b400 100644 --- a/mail/mailsend/Makefile +++ b/mail/mailsend/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mailsend PKG_VERSION:=1.19 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION) @@ -66,6 +66,10 @@ TARGET_CFLAGS += \ -DSTDC_HEADERS \ -DTIME_WITH_SYS_TIME +ifeq ($(BUILD_VARIANT),ssl) +TARGET_CFLAGS += "-DHAVE_OPENSSL=1" +endif + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) DEFS="$(TARGET_CFLAGS)" endef