diff options
author | John Hixson <jhixson@FreeBSD.org> | 2019-01-08 16:51:57 +0800 |
---|---|---|
committer | John Hixson <jhixson@FreeBSD.org> | 2019-01-08 16:51:57 +0800 |
commit | 50ebdf5cae6b2a67a297e1be305905c7f74e196f (patch) | |
tree | 63e6c6867b04350d471825f5f06df2bb9fa00e33 /dns/py-bonjour | |
parent | 57d51b8fcb9f17502ea2401773c45ce4ad437ed1 (diff) | |
download | freebsd-ports-gnome-50ebdf5cae6b2a67a297e1be305905c7f74e196f.tar.gz freebsd-ports-gnome-50ebdf5cae6b2a67a297e1be305905c7f74e196f.tar.zst freebsd-ports-gnome-50ebdf5cae6b2a67a297e1be305905c7f74e196f.zip |
[new port] dns/py-bonjour: Python interface for mDNSResponder
PR: 225851
Approved by: araujo (mentor)
Differential Revision: https://reviews.freebsd.org/D18782
Diffstat (limited to 'dns/py-bonjour')
-rw-r--r-- | dns/py-bonjour/Makefile | 24 | ||||
-rw-r--r-- | dns/py-bonjour/distinfo | 3 | ||||
-rw-r--r-- | dns/py-bonjour/files/patch-pybonjour.py | 11 | ||||
-rw-r--r-- | dns/py-bonjour/pkg-descr | 7 |
4 files changed, 45 insertions, 0 deletions
diff --git a/dns/py-bonjour/Makefile b/dns/py-bonjour/Makefile new file mode 100644 index 000000000000..6c7aa3767cfc --- /dev/null +++ b/dns/py-bonjour/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= pybonjour +PORTVERSION= 1.1.1 +CATEGORIES= dns python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= jhixson@freebsd.org +COMMENT= Pure-Python interface to Apple Bonjour + +LICENSE= MIT + +LIB_DEPENDS= libdns_sd.so.1:net/mDNSResponder + +USES= python:3.6+ +USE_PYTHON= autoplist distutils +USE_GITHUB= yes +GH_ACCOUNT= depl0y +GH_PROJECT= pybonjour-python3 +GH_TAGNAME= 2c8283f + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/dns/py-bonjour/distinfo b/dns/py-bonjour/distinfo new file mode 100644 index 000000000000..362d116f4519 --- /dev/null +++ b/dns/py-bonjour/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1518466005 +SHA256 (depl0y-pybonjour-python3-1.1.1-2c8283f_GH0.tar.gz) = ec180cf9c9c2e36fe827c294d0c45903846c15af76e19833be867cbe8df3e333 +SIZE (depl0y-pybonjour-python3-1.1.1-2c8283f_GH0.tar.gz) = 18776 diff --git a/dns/py-bonjour/files/patch-pybonjour.py b/dns/py-bonjour/files/patch-pybonjour.py new file mode 100644 index 000000000000..3fc2ac9ad96f --- /dev/null +++ b/dns/py-bonjour/files/patch-pybonjour.py @@ -0,0 +1,11 @@ +--- pybonjour.py.orig 2013-10-02 17:41:05 UTC ++++ pybonjour.py +@@ -1116,7 +1116,7 @@ def DNSServiceRegister( + type=type(txtRecord))) + + if not txtRecord: +- txtLen, txtRecord = 1, '\0' ++ txtLen, txtRecord = 1, '\0'.encode('utf-8') + else: + txtLen, txtRecord = _string_to_length_and_void_p(txtRecord) + diff --git a/dns/py-bonjour/pkg-descr b/dns/py-bonjour/pkg-descr new file mode 100644 index 000000000000..2a4673e5e002 --- /dev/null +++ b/dns/py-bonjour/pkg-descr @@ -0,0 +1,7 @@ +pybonjour provides a pure-Python interface (via ctypes) to Apple +Bonjour and compatible DNS-SD libraries (such as Avahi). It allows +Python scripts to take advantage of Zero Configuration Networking +(Zeroconf) to register, discover, and resolve services on both local +and wide-area networks. + +WWW: https://github.com/depl0y/pybonjour-python3 |