summaryrefslogtreecommitdiff
path: root/dns/py-adns
diff options
context:
space:
mode:
Diffstat (limited to 'dns/py-adns')
-rw-r--r--dns/py-adns/Makefile25
-rw-r--r--dns/py-adns/distinfo3
-rw-r--r--dns/py-adns/files/patch-adnsmodule.c10
-rw-r--r--dns/py-adns/pkg-descr8
4 files changed, 46 insertions, 0 deletions
diff --git a/dns/py-adns/Makefile b/dns/py-adns/Makefile
new file mode 100644
index 000000000000..176a0d71333c
--- /dev/null
+++ b/dns/py-adns/Makefile
@@ -0,0 +1,25 @@
+# Created by: Hye-Shik Chang <perky@fallin.lv>
+# $FreeBSD$
+
+PORTNAME= adns
+DISTVERSION= 1.4
+DISTVERSIONSUFFIX= -py1
+CATEGORIES= dns python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= lebarondemerde@privacychain.ch
+COMMENT= Python module to resolve IPs to host names
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/GPL
+
+LIB_DEPENDS= libadns.so:dns/adns
+
+USES= localbase python:3.4+
+USE_PYTHON= autoplist distutils
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|1.4-py1|1.4|g' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/dns/py-adns/distinfo b/dns/py-adns/distinfo
new file mode 100644
index 000000000000..2a62ee895d53
--- /dev/null
+++ b/dns/py-adns/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1537084332
+SHA256 (adns-1.4-py1.tar.gz) = 675567453caf5843fabd1c2312aad13a93b61c3699dda2ceba67f1a2687ccddc
+SIZE (adns-1.4-py1.tar.gz) = 18868
diff --git a/dns/py-adns/files/patch-adnsmodule.c b/dns/py-adns/files/patch-adnsmodule.c
new file mode 100644
index 000000000000..58e2e5a2f1f6
--- /dev/null
+++ b/dns/py-adns/files/patch-adnsmodule.c
@@ -0,0 +1,10 @@
+--- adnsmodule.c.orig 2018-08-11 22:10:36 UTC
++++ adnsmodule.c
+@@ -6,6 +6,7 @@ any later version.
+ */
+
+ #include <Python.h>
++#include <sys/endian.h>
+ #include <adns.h>
+ #include <string.h>
+ #include <assert.h>
diff --git a/dns/py-adns/pkg-descr b/dns/py-adns/pkg-descr
new file mode 100644
index 000000000000..d521d6e0cc1d
--- /dev/null
+++ b/dns/py-adns/pkg-descr
@@ -0,0 +1,8 @@
+Python module to resolve IPs to host names.
+
+python3-adns is a Python 3 module that interfaces to the adns: an advanced easy
+to use, asynchronous-capable DNS client library and utilities. Adns is a
+resolver library for C (and C++) programs, and a collection of useful DNS
+resolver utilities.
+
+WWW: https://github.com/trolldbois/python3-adns/