git: d16d44eb8a23 - main - dns/pear-Net_DNS21: Add pear-Net_DNS21 1.5.5 (copied from pear-Net_DNS2)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 26 Jun 2025 11:31:27 UTC
The branch main has been updated by sunpoet:

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

commit d16d44eb8a236a5f3bbca297b8374853ffbb2b61
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-06-26 09:57:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-06-26 11:29:34 +0000

    dns/pear-Net_DNS21: Add pear-Net_DNS21 1.5.5 (copied from pear-Net_DNS2)
    
    - Add PORTSCOUT
---
 dns/Makefile                 |  1 +
 dns/pear-Net_DNS21/Makefile  | 23 +++++++++++++++++++++++
 dns/pear-Net_DNS21/distinfo  |  3 +++
 dns/pear-Net_DNS21/pkg-descr |  6 ++++++
 4 files changed, 33 insertions(+)

diff --git a/dns/Makefile b/dns/Makefile
index acf599c08636..905cf18e2c35 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -170,6 +170,7 @@
     SUBDIR += pear-File_DNS
     SUBDIR += pear-Horde_Idna
     SUBDIR += pear-Net_DNS2
+    SUBDIR += pear-Net_DNS21
     SUBDIR += powerdns
     SUBDIR += powerdns-recursor
     SUBDIR += prometheus-dnssec-exporter
diff --git a/dns/pear-Net_DNS21/Makefile b/dns/pear-Net_DNS21/Makefile
new file mode 100644
index 000000000000..6fdc9a1f0448
--- /dev/null
+++ b/dns/pear-Net_DNS21/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	Net_DNS2
+PORTVERSION=	1.5.5
+DISTVERSIONPREFIX=	v
+CATEGORIES=	dns net pear
+PKGNAMESUFFIX=	1
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	PHP Resolver library used to communicate with a DNS server
+WWW=		https://pear.php.net/package/Net_DNS2 \
+		https://github.com/mikepultz/netdns2
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		pear
+
+NO_ARCH=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	mikepultz
+GH_PROJECT=	netdns2
+
+.include <bsd.port.mk>
diff --git a/dns/pear-Net_DNS21/distinfo b/dns/pear-Net_DNS21/distinfo
new file mode 100644
index 000000000000..ae0afddd27ab
--- /dev/null
+++ b/dns/pear-Net_DNS21/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1747715328
+SHA256 (PEAR/mikepultz-netdns2-v1.5.5_GH0.tar.gz) = 69c65d7d1a775d0b4d4a6b0b0ac8cfbb242aa5d2f03b331400ad7c2d1fdf0eb6
+SIZE (PEAR/mikepultz-netdns2-v1.5.5_GH0.tar.gz) = 87826
diff --git a/dns/pear-Net_DNS21/pkg-descr b/dns/pear-Net_DNS21/pkg-descr
new file mode 100644
index 000000000000..18bb93606b8c
--- /dev/null
+++ b/dns/pear-Net_DNS21/pkg-descr
@@ -0,0 +1,6 @@
+Provides (roughly) the same functionality as Net_DNS, but using modern PHP
+objects, exceptions for error handling, better sockets support.
+
+This release is (in most cases) 2x - 10x faster than Net_DNS, as well as
+includes more RR's (including DNSSEC RR's), and improved sockets and streams
+support.