From owner-svn-ports-head@freebsd.org Tue Jan 8 08:51:59 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB8EB149559B; Tue, 8 Jan 2019 08:51:59 +0000 (UTC) (envelope-from jhixson@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CB2376800; Tue, 8 Jan 2019 08:51:59 +0000 (UTC) (envelope-from jhixson@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2F2332548E; Tue, 8 Jan 2019 08:51:59 +0000 (UTC) (envelope-from jhixson@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x088px7e035888; Tue, 8 Jan 2019 08:51:59 GMT (envelope-from jhixson@FreeBSD.org) Received: (from jhixson@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x088pwEY035883; Tue, 8 Jan 2019 08:51:58 GMT (envelope-from jhixson@FreeBSD.org) Message-Id: <201901080851.x088pwEY035883@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhixson set sender to jhixson@FreeBSD.org using -f From: John Hixson Date: Tue, 8 Jan 2019 08:51:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489656 - in head/dns: . py-bonjour py-bonjour/files X-SVN-Group: ports-head X-SVN-Commit-Author: jhixson X-SVN-Commit-Paths: in head/dns: . py-bonjour py-bonjour/files X-SVN-Commit-Revision: 489656 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3CB2376800 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 08:52:00 -0000 Author: jhixson Date: Tue Jan 8 08:51:57 2019 New Revision: 489656 URL: https://svnweb.freebsd.org/changeset/ports/489656 Log: [new port] dns/py-bonjour: Python interface for mDNSResponder PR: 225851 Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D18782 Added: head/dns/py-bonjour/ head/dns/py-bonjour/Makefile (contents, props changed) head/dns/py-bonjour/distinfo (contents, props changed) head/dns/py-bonjour/files/ head/dns/py-bonjour/files/patch-pybonjour.py (contents, props changed) head/dns/py-bonjour/pkg-descr (contents, props changed) Modified: head/dns/Makefile Modified: head/dns/Makefile ============================================================================== --- head/dns/Makefile Tue Jan 8 08:31:12 2019 (r489655) +++ head/dns/Makefile Tue Jan 8 08:51:57 2019 (r489656) @@ -183,6 +183,7 @@ SUBDIR += public_suffix_list SUBDIR += py-adns SUBDIR += py-aiodns + SUBDIR += py-bonjour SUBDIR += py-cloudflare SUBDIR += py-dns SUBDIR += py-dns-lexicon Added: head/dns/py-bonjour/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/py-bonjour/Makefile Tue Jan 8 08:51:57 2019 (r489656) @@ -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 Added: head/dns/py-bonjour/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/py-bonjour/distinfo Tue Jan 8 08:51:57 2019 (r489656) @@ -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 Added: head/dns/py-bonjour/files/patch-pybonjour.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/py-bonjour/files/patch-pybonjour.py Tue Jan 8 08:51:57 2019 (r489656) @@ -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) + Added: head/dns/py-bonjour/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/py-bonjour/pkg-descr Tue Jan 8 08:51:57 2019 (r489656) @@ -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