git: 56761f277042 - main - net/openldap26-server: Fix build with LibreSSL

From: Xin LI <delphij_at_FreeBSD.org>
Date: Sat, 09 Jul 2022 18:28:27 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/ports/commit/?id=56761f277042c6fc67002041d5ecbb6250d58aae

commit 56761f277042c6fc67002041d5ecbb6250d58aae
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2022-07-09 18:28:20 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2022-07-09 18:28:20 +0000

    net/openldap26-server: Fix build with LibreSSL
    
    PR:             ports/263998
---
 net/openldap26-server/Makefile                     |  4 ++--
 net/openldap26-server/files/patch-ITS7978-libressl | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/net/openldap26-server/Makefile b/net/openldap26-server/Makefile
index 6f3a36331852..27bd1a32dd31 100644
--- a/net/openldap26-server/Makefile
+++ b/net/openldap26-server/Makefile
@@ -36,6 +36,7 @@ LICENSE_PERMS=		dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 # :keepla because port uses lt_dlopen
 USES=			cpe gmake libtool:keepla localbase ssl tar:tgz
+BUILD_DEPENDS+=		autoconf>0:devel/autoconf
 
 .if defined(CLIENT_ONLY)
 CONFLICTS_INSTALL=	${PORTNAME}2[0-57-9]-client ${PORTNAME}-client
@@ -56,7 +57,6 @@ OPTIONS_DEFAULT+=	DEBUG
 .if defined(CLIENT_ONLY)
 OPTIONS_DEFINE+=	DOCS FETCH
 
-FETCH_BUILD_DEPENDS=	autoconf>0:devel/autoconf
 FETCH_CONFIGURE_WITH=	fetch
 .else
 OPTIONS_GROUP=		BKNDS OVLYS
@@ -385,7 +385,7 @@ post-patch:
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 .endif
 
-pre-configure-FETCH-on:
+pre-configure:
 	@(cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf)
 
 .if !defined(CLIENT_ONLY)
diff --git a/net/openldap26-server/files/patch-ITS7978-libressl b/net/openldap26-server/files/patch-ITS7978-libressl
new file mode 100644
index 000000000000..d71be90027fe
--- /dev/null
+++ b/net/openldap26-server/files/patch-ITS7978-libressl
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2022-05-04 14:55:23 UTC
++++ configure.ac
+@@ -1220,7 +1220,7 @@ if test $ol_with_tls = openssl || test $ol_with_tls = 
+ [#endif]])],
+ 					, [AC_MSG_FAILURE([OpenSSL 1.1.1 or newer required])])
+ 
+-		AC_CHECK_LIB(ssl, SSL_export_keying_material_early,
++		AC_CHECK_LIB(ssl, SSL_write_early_data,
+ 			[have_openssl=yes], [have_openssl=no],
+ 			[-lcrypto])
+