mail/sendmail: unbreak build for libresslS

PR: 267673
This commit is contained in:
Dirk Meyer 2022-11-13 15:05:59 +01:00
parent 3ed68ea655
commit 0078df83b2
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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