git: 83cc2c331bab - main - dns/p5-Zonemaster-LDNS: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 10 Feb 2024 19:07:01 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83cc2c331babd4eaf50cbc242bfe6724aeaf8dab

commit 83cc2c331babd4eaf50cbc242bfe6724aeaf8dab
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-10 18:40:07 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-10 19:06:42 +0000

    dns/p5-Zonemaster-LDNS: New port
    
    This module provides a Perl interface to the ldns library from NLnet
    Labs and depends on it being available. The module can either compile
    and use those libraries internally or link to already available ldns
    library given that the version is high enough. In both cases it relies
    on a sufficiently recent version of OpenSSL being present.
    
    This module is written as part of the Zonemaster project, and therefore
    primarily exposes the functionality needed for that. Since Zonemaster is
    a diagnostic tool, that means the functions most used are those for
    looking things up and inspecting them.
---
 dns/Makefile                     |   1 +
 dns/p5-Zonemaster-LDNS/Makefile  |  27 +++++++
 dns/p5-Zonemaster-LDNS/distinfo  |   3 +
 dns/p5-Zonemaster-LDNS/pkg-descr |  10 +++
 dns/p5-Zonemaster-LDNS/pkg-plist | 159 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 200 insertions(+)

diff --git a/dns/Makefile b/dns/Makefile
index 18c8aac235dc..230a79d9ef62 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -169,6 +169,7 @@
     SUBDIR += p5-POE-Filter-DNS-TCP
     SUBDIR += p5-Tie-DNS
     SUBDIR += p5-URBL-Prepare
+    SUBDIR += p5-Zonemaster-LDNS
     SUBDIR += packetq
     SUBDIR += pdnsd
     SUBDIR += pear-File_DNS
diff --git a/dns/p5-Zonemaster-LDNS/Makefile b/dns/p5-Zonemaster-LDNS/Makefile
new file mode 100644
index 000000000000..f868381a327c
--- /dev/null
+++ b/dns/p5-Zonemaster-LDNS/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	Zonemaster-LDNS
+DISTVERSION=	3.2.0
+CATEGORIES=	dns perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:ZNMSTR
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Perl wrapper for the ldns DNS library
+WWW=		https://zonemaster.net/en/run-test
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	p5-Devel-CheckLib>0:devel/p5-Devel-CheckLib \
+	p5-Module-Install>0:devel/p5-Module-Install
+LIB_DEPENDS=	libidn2.so:dns/libidn2 \
+	libldns.so:dns/ldns
+
+USES=		gmake localbase perl5 ssl
+USE_PERL5=	configure
+CONFIGURE_SCRIPT+=	Makefile.PL --no-internal-ldns
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Zonemaster/LDNS/LDNS.so
+
+.include <bsd.port.mk>
diff --git a/dns/p5-Zonemaster-LDNS/distinfo b/dns/p5-Zonemaster-LDNS/distinfo
new file mode 100644
index 000000000000..12a9975df351
--- /dev/null
+++ b/dns/p5-Zonemaster-LDNS/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707587828
+SHA256 (Zonemaster-LDNS-3.2.0.tar.gz) = 069b164117295fa82d252940a1ca8b308ad8b1f3e8723be4e826aaa97f706d6c
+SIZE (Zonemaster-LDNS-3.2.0.tar.gz) = 712381
diff --git a/dns/p5-Zonemaster-LDNS/pkg-descr b/dns/p5-Zonemaster-LDNS/pkg-descr
new file mode 100644
index 000000000000..1a60a79924e6
--- /dev/null
+++ b/dns/p5-Zonemaster-LDNS/pkg-descr
@@ -0,0 +1,10 @@
+This module provides a Perl interface to the ldns library from NLnet Labs and
+depends on it being available. The module can either compile and use those
+libraries internally or link to already available ldns library given that the
+version is high enough. In both cases it relies on a sufficiently recent
+version of OpenSSL being present.
+
+This module is written as part of the Zonemaster project, and therefore
+primarily exposes the functionality needed for that. Since Zonemaster is a
+diagnostic tool, that means the functions most used are those for looking
+things up and inspecting them.
diff --git a/dns/p5-Zonemaster-LDNS/pkg-plist b/dns/p5-Zonemaster-LDNS/pkg-plist
new file mode 100644
index 000000000000..b7a9ca66c8ad
--- /dev/null
+++ b/dns/p5-Zonemaster-LDNS/pkg-plist
@@ -0,0 +1,159 @@
+%%SITE_ARCH%%/Zonemaster/LDNS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/Packet.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/A.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/A6.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/AAAA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/AFSDB.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/APL.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/ATMA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/CAA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/CDNSKEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/CDS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/CERT.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/CNAME.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/DHCID.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/DLV.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/DNAME.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/DNSKEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/DS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/EID.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/EUI48.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/EUI64.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/GID.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/GPOS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/HINFO.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/HIP.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/IPSECKEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/ISDN.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/KEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/KX.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/L32.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/L64.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/LOC.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/LP.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MAILA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MAILB.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MB.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MD.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MF.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MG.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MINFO.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MR.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/MX.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NAPTR.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NID.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NIMLOC.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NINFO.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NSAP.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NSEC.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NSEC3.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NSEC3PARAM.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NULL.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/NXT.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/PTR.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/PX.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/RKEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/RP.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/RRSIG.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/RT.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SIG.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SINK.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SOA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SPF.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SRV.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/SSHFP.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TALINK.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TKEY.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TLSA.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TXT.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/TYPE.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/UID.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/UINFO.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/UNSPEC.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/URI.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/WKS.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RR/X25.pm
+%%SITE_ARCH%%/Zonemaster/LDNS/RRList.pm
+%%SITE_ARCH%%/auto/Zonemaster/LDNS/LDNS.so
+%%PERL5_MAN3%%/Zonemaster::LDNS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::Packet.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::A.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::A6.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::AAAA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::AFSDB.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::APL.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::ATMA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::CAA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::CDNSKEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::CDS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::CERT.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::CNAME.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::DHCID.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::DLV.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::DNAME.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::DNSKEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::DS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::EID.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::EUI48.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::EUI64.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::GID.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::GPOS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::HINFO.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::HIP.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::IPSECKEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::ISDN.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::KEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::KX.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::L32.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::L64.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::LOC.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::LP.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MAILA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MAILB.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MB.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MD.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MF.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MG.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MINFO.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MR.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::MX.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NAPTR.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NID.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NIMLOC.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NINFO.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NSAP.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NSEC.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NSEC3.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NSEC3PARAM.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NULL.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::NXT.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::PTR.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::PX.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::RKEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::RP.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::RRSIG.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::RT.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SIG.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SINK.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SOA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SPF.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SRV.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::SSHFP.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TALINK.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TKEY.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TLSA.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TXT.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::TYPE.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::UID.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::UINFO.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::UNSPEC.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::URI.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::WKS.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RR::X25.3.gz
+%%PERL5_MAN3%%/Zonemaster::LDNS::RRList.3.gz