summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorfcambus <fcambus@pkgsrc.org>2021-08-03 17:23:46 +0000
committerfcambus <fcambus@pkgsrc.org>2021-08-03 17:23:46 +0000
commit08fb797af442cf1beb503dff2e2b249704be1f37 (patch)
tree583268810880f0fb775706c52697fef9c8f5867f /net
parent9852c25678f3fe9e5a5af31263746eda13c50dd1 (diff)
downloadpkgsrc-08fb797af442cf1beb503dff2e2b249704be1f37.tar.gz
net/dnc: import dnc-0.2.0.
dnc (Domain Name Checker), is a CLI tool to check domain names configuration.
Diffstat (limited to 'net')
-rw-r--r--net/dnc/DESCR1
-rw-r--r--net/dnc/Makefile33
-rw-r--r--net/dnc/PLIST3
-rw-r--r--net/dnc/distinfo7
-rw-r--r--net/dnc/patches/patch-dnc15
5 files changed, 59 insertions, 0 deletions
diff --git a/net/dnc/DESCR b/net/dnc/DESCR
new file mode 100644
index 00000000000..514060882eb
--- /dev/null
+++ b/net/dnc/DESCR
@@ -0,0 +1 @@
+dnc (Domain Name Checker), is a CLI tool to check domain names configuration.
diff --git a/net/dnc/Makefile b/net/dnc/Makefile
new file mode 100644
index 00000000000..d47491c8621
--- /dev/null
+++ b/net/dnc/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2021/08/03 17:23:46 fcambus Exp $
+
+GITHUB_PROJECT= dnc
+DISTNAME= dnc-0.2.0
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=fcambus/}
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+
+MAINTAINER= fcambus@NetBSD.org
+HOMEPAGE= https://github.com/fcambus/dnc/
+COMMENT= CLI tool to check domain names configuration
+LICENSE= 2-clause-bsd
+
+USE_LANGUAGES= # none
+
+DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
+DEPENDS+= ${PYPKGPREFIX}-OpenSSL-[0-9]*:../../security/py-OpenSSL
+DEPENDS+= ${PYPKGPREFIX}-prettytable-[0-9]*:../../textproc/py-prettytable
+
+NO_BUILD= yes
+
+REPLACE_PYTHON= dnc
+
+AUTO_MKDIRS= yes
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+
+do-install:
+ ${RUN}${INSTALL_SCRIPT} ${WRKSRC}/dnc ${DESTDIR}${PREFIX}/bin
+ ${RUN}${INSTALL_MAN} ${WRKSRC}/dnc.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/dnc/PLIST b/net/dnc/PLIST
new file mode 100644
index 00000000000..b845155cad9
--- /dev/null
+++ b/net/dnc/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/08/03 17:23:46 fcambus Exp $
+bin/dnc
+man/man1/dnc.1
diff --git a/net/dnc/distinfo b/net/dnc/distinfo
new file mode 100644
index 00000000000..902d7c97b58
--- /dev/null
+++ b/net/dnc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/08/03 17:23:46 fcambus Exp $
+
+SHA1 (dnc-0.2.0.tar.gz) = c267d5ce0aa4186e556f08b8f8f840b06c84eaa6
+RMD160 (dnc-0.2.0.tar.gz) = e4ccb383d4f9bce73fd5281b2e578b3099049f70
+SHA512 (dnc-0.2.0.tar.gz) = c1df898bf3e33bdb0ad04f3da0e25b7bd8d7cea3148857c199064f50047cc11457ca1ee8f3f0a88d06325f3c428b98c4d7128c330f567e70626272cdb58556f2
+Size (dnc-0.2.0.tar.gz) = 2938 bytes
+SHA1 (patch-dnc) = 8496e17e3e2606d96ddf9f454922f697746f5f98
diff --git a/net/dnc/patches/patch-dnc b/net/dnc/patches/patch-dnc
new file mode 100644
index 00000000000..0f49342fadb
--- /dev/null
+++ b/net/dnc/patches/patch-dnc
@@ -0,0 +1,15 @@
+$NetBSD: patch-dnc,v 1.1 2021/08/03 17:23:47 fcambus Exp $
+
+Fix for Dnspython 1.16.
+
+--- dnc.orig 2021-08-03 16:56:24.295024780 +0000
++++ dnc
+@@ -44,7 +44,7 @@ def usage():
+
+ def query(domain: str, rrtype: str) -> str:
+ try:
+- answers = dns.resolver.resolve(domain, rrtype)
++ answers = dns.resolver.query(domain, rrtype)
+ except dns.exception.DNSException:
+ return ""
+