diff --git a/dns/Makefile b/dns/Makefile index 47160adb8d77..ef9fe6c046c9 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -181,6 +181,7 @@ SUBDIR += py-dns SUBDIR += py-dns-lexicon SUBDIR += py-dnspython + SUBDIR += py-dnspython2 SUBDIR += py-easyzone SUBDIR += py-idna SUBDIR += py-idna_ssl diff --git a/dns/py-dnspython2/Makefile b/dns/py-dnspython2/Makefile new file mode 100644 index 000000000000..65962eda79ea --- /dev/null +++ b/dns/py-dnspython2/Makefile @@ -0,0 +1,37 @@ +# Created by: Mario Sergio Fujikawa Ferreira +# $FreeBSD$ + +PORTNAME= dnspython +PORTVERSION= 2.0.0 +CATEGORIES= dns python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 2 + +MAINTAINER= bofh@FreeBSD.org +COMMENT= DNS toolkit for Python - 2.X branch + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.6+ zip +USE_PYTHON= autoplist cython distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= EXAMPLES PYCRYPTODOME +PYCRYPTODOME_DESC= Enable pycryptodome (part of dnssec needs it) +PYCRYPTODOME_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR} + +PORTEXAMPLES= ddns.py e164.py mx.py name.py reverse.py reverse_name.py \ + xfr.py zonediff.py + +post-install-EXAMPLES-on: +# examples + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR} + +do-test: + cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} utest.py + +.include diff --git a/dns/py-dnspython2/distinfo b/dns/py-dnspython2/distinfo new file mode 100644 index 000000000000..47273e4eb0cf --- /dev/null +++ b/dns/py-dnspython2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1604310396 +SHA256 (dnspython-2.0.0.zip) = 044af09374469c3a39eeea1a146e8cac27daec951f1f1f157b1962fc7cb9d1b7 +SIZE (dnspython-2.0.0.zip) = 324706 diff --git a/dns/py-dnspython2/pkg-descr b/dns/py-dnspython2/pkg-descr new file mode 100644 index 000000000000..bdba209aa135 --- /dev/null +++ b/dns/py-dnspython2/pkg-descr @@ -0,0 +1,10 @@ +dnspython is a DNS toolkit for Python. It supports almost all record +types. It can be used for queries, zone transfers, and dynamic +updates. It supports TSIG authenticated messages and EDNS0. + +dnspython provides both high and low level access to DNS. The high +level classes perform queries for data of a given name, type, and +class, and return an answer set. The low level classes allow direct +manipulation of DNS zones, messages, names, and records. + +WWW: http://www.dnspython.org/