git: 2b7ea6c15af3 - main - dns/q-dns: New port: Tiny command line DNS client

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 14 Nov 2023 08:13:29 UTC
The branch main has been updated by yuri:

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

commit 2b7ea6c15af376ff9c2c397df3381ec67ee6d902
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-14 08:13:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-14 08:13:01 +0000

    dns/q-dns: New port: Tiny command line DNS client
---
 dns/Makefile        |  1 +
 dns/q-dns/Makefile  | 19 +++++++++++++++++++
 dns/q-dns/distinfo  |  5 +++++
 dns/q-dns/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

diff --git a/dns/Makefile b/dns/Makefile
index 7189bb94b5fe..b01494b1b175 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -200,6 +200,7 @@
     SUBDIR += py-pywdns
     SUBDIR += py-tld
     SUBDIR += py-tldextract
+    SUBDIR += q-dns
     SUBDIR += qmdnsengine
     SUBDIR += radns
     SUBDIR += rbldnsd
diff --git a/dns/q-dns/Makefile b/dns/q-dns/Makefile
new file mode 100644
index 000000000000..43877cbeb6a4
--- /dev/null
+++ b/dns/q-dns/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	q-dns
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.15.1
+CATEGORIES=	dns
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Tiny command line DNS client
+WWW=		https://github.com/zmap/zdns
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.21,modules
+
+GO_MODULE=	github.com/natesales/q
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/dns/q-dns/distinfo b/dns/q-dns/distinfo
new file mode 100644
index 000000000000..98c1d95c48e7
--- /dev/null
+++ b/dns/q-dns/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1699949294
+SHA256 (go/dns_q-dns/q-dns-v0.15.1/v0.15.1.mod) = dff22249a52b18b6ffc2aa52bc52a7db3dd3e8a587d9b4fe000fe4b0aa29756a
+SIZE (go/dns_q-dns/q-dns-v0.15.1/v0.15.1.mod) = 1694
+SHA256 (go/dns_q-dns/q-dns-v0.15.1/v0.15.1.zip) = f4bdaa7bf98454ae3f285cd24c5d27e4445a7af17e0102a3e13ad2697436aa89
+SIZE (go/dns_q-dns/q-dns-v0.15.1/v0.15.1.zip) = 399057
diff --git a/dns/q-dns/pkg-descr b/dns/q-dns/pkg-descr
new file mode 100644
index 000000000000..e93b4b2cf1cd
--- /dev/null
+++ b/dns/q-dns/pkg-descr
@@ -0,0 +1,2 @@
+q-dns is a tiny and feature-rich command line DNS client with support for
+UDP, TCP, DoT, DoH, DoQ and ODoH.