mailsend: fix ssl variant to use opensssl
authorDaniel F. Dickinson <redacted>
Sun, 25 Jan 2026 16:05:43 +0000 (11:05 -0500)
committerGeorge Sapkin <redacted>
Wed, 4 Feb 2026 05:39:56 +0000 (07:39 +0200)
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 <redacted>
mail/mailsend/Makefile

index a893c7a64f896815936ed5c1e90e8037b9edd77c..aace9b4008115bc69a899a30783ecf0d63f40a42 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT