Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-ports.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2022-11-13 17:05:59 +0300
committerDirk Meyer <dinoex@FreeBSD.org>2022-11-13 17:05:59 +0300
commit0078df83b2630324ba886913be316c53f817f74c (patch)
tree1b81e12e0338e227db8bce0f96ff3752a446470e
parent3ed68ea6552516586b01f577cb4951103caf509b (diff)
mail/sendmail: unbreak build for libresslS
PR: 267673
-rw-r--r--mail/sendmail/Makefile4
-rw-r--r--mail/sendmail/files/patch-tls.c11
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
+