From 44ea7419168c7e477920abf7d8ed799e901d13d5 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Thu, 14 Jan 2021 20:52:19 -0600 Subject: [PATCH] dns/py-dns: resurrect dead port --- cdn/ports/dns/py-dns/Makefile | 32 ++++++++++++++++++++ cdn/ports/dns/py-dns/distinfo | 2 ++ cdn/ports/dns/py-dns/files/patch-DNS-Lib.py | 15 +++++++++ cdn/ports/dns/py-dns/files/patch-DNS-Type.py | 11 +++++++ cdn/ports/dns/py-dns/pkg-descr | 5 +++ 5 files changed, 65 insertions(+) create mode 100644 cdn/ports/dns/py-dns/Makefile create mode 100644 cdn/ports/dns/py-dns/distinfo create mode 100644 cdn/ports/dns/py-dns/files/patch-DNS-Lib.py create mode 100644 cdn/ports/dns/py-dns/files/patch-DNS-Type.py create mode 100644 cdn/ports/dns/py-dns/pkg-descr diff --git a/cdn/ports/dns/py-dns/Makefile b/cdn/ports/dns/py-dns/Makefile new file mode 100644 index 0000000..489c3e7 --- /dev/null +++ b/cdn/ports/dns/py-dns/Makefile @@ -0,0 +1,32 @@ +# Created by: Mark Linimon +# $FreeBSD$ + +PORTNAME= dns +PORTVERSION= 2.3.6 +PORTREVISION= 2 +CATEGORIES= dns python +MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/py${PORTNAME}-${PORTVERSION} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pydns-${PORTVERSION} + +MAINTAINER= rm@FreeBSD.org +COMMENT= DNS (Domain Name Service) library for Python + +LICENSE= CNRI +LICENSE_NAME= CNRI LICENSE AGREEMENT +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +USES= python:2.7 +USE_PYTHON= distutils autoplist + +PORTDOCS= README.txt README-guido.txt +DOCSDIR= ${PREFIX}/share/doc/py-dns + +OPTIONS_DEFINE= DOCS + +post-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/cdn/ports/dns/py-dns/distinfo b/cdn/ports/dns/py-dns/distinfo new file mode 100644 index 0000000..99f4661 --- /dev/null +++ b/cdn/ports/dns/py-dns/distinfo @@ -0,0 +1,2 @@ +SHA256 (pydns-2.3.6.tar.gz) = d3cf6fc4ec088e934cf2dd4d71080efdb5c09ae79cbb2512427eb0fc393f2417 +SIZE (pydns-2.3.6.tar.gz) = 28220 diff --git a/cdn/ports/dns/py-dns/files/patch-DNS-Lib.py b/cdn/ports/dns/py-dns/files/patch-DNS-Lib.py new file mode 100644 index 0000000..c2e84e3 --- /dev/null +++ b/cdn/ports/dns/py-dns/files/patch-DNS-Lib.py @@ -0,0 +1,15 @@ +--- DNS/Lib.py.orig 2011-03-16 23:06:39.000000000 +0300 ++++ DNS/Lib.py 2011-03-29 12:42:45.000000000 +0400 +@@ -706,10 +706,10 @@ + # added identifying header to top of each file + # + # Revision 1.7 2001/07/19 07:50:44 anthony +-# Added SRV (RFC 2782) support. Code from Michael Ströder. ++# Added SRV (RFC 2782) support. Code from Michael Ströder. + # + # Revision 1.6 2001/07/19 07:39:18 anthony +-# 'type' -> 'rrtype' in getRRheader(). Fix from Michael Ströder. ++# 'type' -> 'rrtype' in getRRheader(). Fix from Michael Ströder. + # + # Revision 1.5 2001/07/19 07:34:19 anthony + # oops. glitch in storeRR (fixed now). diff --git a/cdn/ports/dns/py-dns/files/patch-DNS-Type.py b/cdn/ports/dns/py-dns/files/patch-DNS-Type.py new file mode 100644 index 0000000..78fdfc4 --- /dev/null +++ b/cdn/ports/dns/py-dns/files/patch-DNS-Type.py @@ -0,0 +1,11 @@ +--- DNS/Type.py.orig 2011-03-16 23:06:39.000000000 +0300 ++++ DNS/Type.py 2011-03-29 12:44:27.000000000 +0400 +@@ -74,7 +74,7 @@ + # added identifying header to top of each file + # + # Revision 1.3 2001/07/19 07:38:28 anthony +-# added type code for SRV. From Michael Ströder. ++# added type code for SRV. From Michael Ströder. + # + # Revision 1.2 2001/07/19 06:57:07 anthony + # cvs keywords added diff --git a/cdn/ports/dns/py-dns/pkg-descr b/cdn/ports/dns/py-dns/pkg-descr new file mode 100644 index 0000000..7f8467f --- /dev/null +++ b/cdn/ports/dns/py-dns/pkg-descr @@ -0,0 +1,5 @@ +This directory contains a Python module that implements a DNS (Domain +Name Server) client, plus additional modules that define some symbolic +constants used by DNS (dnstype, dnsclass, dnsopcode). + +WWW: http://pydns.sourceforge.net/ -- 2.42.0