git: 38e6e935efa6 - main - dns/unbound: add dynlib port option

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 16 Jan 2023 12:48:17 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38e6e935efa67110ba6d2d1e322555f0afbb8383

commit 38e6e935efa67110ba6d2d1e322555f0afbb8383
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-01-15 19:29:38 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-01-16 12:44:02 +0000

    dns/unbound: add dynlib port option
    
    PR:             268942
    Reported by:    me@rcm.sh
    Approved by:    jaap@NLnetLabs.nl (maintainer)
---
 dns/unbound/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile
index 6d101575fd4f..3e0ad7dcdcc3 100644
--- a/dns/unbound/Makefile
+++ b/dns/unbound/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	unbound
 DISTVERSION=	1.17.1
+PORTREVISION=	1
 CATEGORIES=	dns
 MASTER_SITES=	https://www.nlnetlabs.nl/downloads/unbound/
 
@@ -32,15 +33,16 @@ PORTDOCS=	CNAME-basedRedirectionDesignNotes.pdf CREDITS Changelog \
 		ietf67-design-02.pdf requirements.txt
 
 OPTIONS_DEFINE=		DEP-RSA1024 DNSCRYPT DNSTAP DOCS DOH ECDSA EVAPI \
-			FILTER_AAAA GOST HIREDIS LIBEVENT MUNIN_PLUGIN PYTHON \
-			SUBNET TFOCL TFOSE THREADS
-OPTIONS_DEFAULT=	DNSCRYPT DOH ECDSA GOST LIBEVENT THREADS
+			DYNLIB FILTER_AAAA GOST HIREDIS LIBEVENT MUNIN_PLUGIN \
+			PYTHON SUBNET TFOCL TFOSE THREADS
+OPTIONS_DEFAULT=	DNSCRYPT DOH DYNLIB ECDSA GOST LIBEVENT THREADS
 OPTIONS_SUB=		yes
 
 DEP-RSA1024_DESC=	Deprecate the use of RSA 1024 keys
 DNSCRYPT_DESC=		Enable dnscrypt support
 DNSTAP_DESC=		Enable dnstap logging support
 DOH_DESC=		Enable DNS-over-HTTPS support
+DYNLIB_DESC=		Enable dynamic (shared) library support
 ECDSA_DESC=		Enable ECDSA (elliptic curve) support (OpenSSL >= 1.0)
 EVAPI_DESC=		(Experimental) pluggable event based libunbound API support
 FILTER_AAAA_DESC=	Build with AAAA filter functionality (contrib)
@@ -63,6 +65,7 @@ DNSTAP_LIB_DEPENDS=		libfstrm.so:devel/fstrm \
 DNSTAP_CONFIGURE_ENABLE=	dnstap
 DOH_LIB_DEPENDS=		libnghttp2.so:www/libnghttp2
 DOH_CONFIGURE_ON=		--with-libnghttp2
+DYNLIB_CONFIGURE_ON=		--with-dynlibmodule
 ECDSA_CONFIGURE_ENABLE=		ecdsa
 ECDSA_VARS=			DEPENDS_ARGS+=WITH_ECDSA=yes
 EVAPI_CONFIGURE_ENABLE=		event-api