git: 3757db321248 - main - dns/py-dnslib: Add py-dnslib 0.9.20

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 31 Aug 2022 11:42:28 UTC
The branch main has been updated by sunpoet:

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

commit 3757db32124822b6cd5c9599c573b73f36a61539
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-31 11:21:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-31 11:40:48 +0000

    dns/py-dnslib: Add py-dnslib 0.9.20
    
    dnslib is a library to encode/decode DNS wire-format packets.
    
    The library provides:
     - Support for encoding/decoding DNS packets between wire format, python
       objects, and Zone/DiG textual representation (dnslib.dns)
     - A server framework allowing the simple creation of custom DNS resolvers
       (dnslib.server) and a number of example servers created using this framework
     - A number of utilities for testing (dnslib.client, dnslib.proxy,
       dnslib.intercept)
    
    WWW: https://github.com/paulc/dnslib
---
 dns/Makefile            |  1 +
 dns/py-dnslib/Makefile  | 18 ++++++++++++++++++
 dns/py-dnslib/distinfo  |  3 +++
 dns/py-dnslib/pkg-descr | 11 +++++++++++
 4 files changed, 33 insertions(+)

diff --git a/dns/Makefile b/dns/Makefile
index 4e8f26098804..12275ac3f517 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -184,6 +184,7 @@
     SUBDIR += py-cloudflare
     SUBDIR += py-dns-crawler
     SUBDIR += py-dns-lexicon
+    SUBDIR += py-dnslib
     SUBDIR += py-dnspython
     SUBDIR += py-dnspython1
     SUBDIR += py-easyzone
diff --git a/dns/py-dnslib/Makefile b/dns/py-dnslib/Makefile
new file mode 100644
index 000000000000..d8a52fd9cb9e
--- /dev/null
+++ b/dns/py-dnslib/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	dnslib
+PORTVERSION=	0.9.20
+CATEGORIES=	dns python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Simple library to encode/decode DNS wire-format packets
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/dns/py-dnslib/distinfo b/dns/py-dnslib/distinfo
new file mode 100644
index 000000000000..28f761ff6eb0
--- /dev/null
+++ b/dns/py-dnslib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661599121
+SHA256 (dnslib-0.9.20.tar.gz) = 0290ab5d08fabd1ef85ef143d1c33fdcd549cb2e50779ec1a423998b0d0b2945
+SIZE (dnslib-0.9.20.tar.gz) = 76174
diff --git a/dns/py-dnslib/pkg-descr b/dns/py-dnslib/pkg-descr
new file mode 100644
index 000000000000..c1041d62de55
--- /dev/null
+++ b/dns/py-dnslib/pkg-descr
@@ -0,0 +1,11 @@
+dnslib is a library to encode/decode DNS wire-format packets.
+
+The library provides:
+ - Support for encoding/decoding DNS packets between wire format, python
+   objects, and Zone/DiG textual representation (dnslib.dns)
+ - A server framework allowing the simple creation of custom DNS resolvers
+   (dnslib.server) and a number of example servers created using this framework
+ - A number of utilities for testing (dnslib.client, dnslib.proxy,
+   dnslib.intercept)
+
+WWW: https://github.com/paulc/dnslib