git: 0078df83b263 - main - mail/sendmail: unbreak build for libresslS

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Sun, 13 Nov 2022 14:06:20 UTC
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0078df83b2630324ba886913be316c53f817f74c

commit 0078df83b2630324ba886913be316c53f817f74c
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-11-13 14:05:59 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-11-13 14:05:59 +0000

    mail/sendmail: unbreak build for libresslS
    
    PR: 267673
---
 mail/sendmail/Makefile          |  4 ----
 mail/sendmail/files/patch-tls.c | 11 +++++++++++
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 8682ebf569a4..9417d3c2b2b2 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -14,10 +14,6 @@ LICENSE_NAME=	Sendmail License
 LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-BROKEN_SSL=	libressl libressl-devel
-BROKEN_SSL_REASON_libressl=	fails to compile: unknown struct dh_st
-BROKEN_SSL_REASON_libressl-devel=	${BROKEN_SSL_REASON_libressl}
-
 CONFLICTS?=	courier-0.* postfix-1.* postfix-2.* smail-3.* zmailer-2.* opensmtpd
 
 USERS=		smmsp
diff --git a/mail/sendmail/files/patch-tls.c b/mail/sendmail/files/patch-tls.c
new file mode 100644
index 000000000000..a69a34e004f8
--- /dev/null
+++ b/mail/sendmail/files/patch-tls.c
@@ -0,0 +1,11 @@
+--- sendmail/tls.c.orig	2021-07-14 05:34:51 UTC
++++ sendmail/tls.c
+@@ -35,7 +35,7 @@ SM_RCSID("@(#)$Id: tls.c,v 8.127 2013-11-27 02:51:11 g
+ **  LibreSSL 2.0 (0x20000000L - part of "These will never change")
+ */
+ 
+-# if (OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L) || OPENSSL_VERSION_NUMBER >= 0x30000000L
++# if (OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L) || OPENSSL_VERSION_NUMBER >= 0x30000000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ #  define MTA_HAVE_DH_set0_pqg 1
+ #  define MTA_HAVE_DSA_GENERATE_EX	1
+