From owner-svn-ports-head@freebsd.org Tue Jan 15 17:50:11 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 A4E7A14918F1 for ; Tue, 15 Jan 2019 17:50:11 +0000 (UTC) (envelope-from sunpoet@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 39A3769F23 for ; Tue, 15 Jan 2019 17:50:11 +0000 (UTC) (envelope-from sunpoet@freebsd.org) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: sunpoet) by smtp.freebsd.org (Postfix) with ESMTPSA id BD2C76949 for ; Tue, 15 Jan 2019 17:50:10 +0000 (UTC) (envelope-from sunpoet@freebsd.org) Received: by mail-ed1-f46.google.com with SMTP id y20so3234057edw.9 for ; Tue, 15 Jan 2019 09:50:10 -0800 (PST) X-Gm-Message-State: AJcUukd7GJ+IgqQ244hGOJMc9kxyVRZiWZHXvGmGW012uO8F9WaNjUoQ 9GIjcSlpSJOHqTXYkd1ED6DN2M8f6ekYTutoDvGnYQ== X-Google-Smtp-Source: ALg8bN6V7vetShgzVOy7yMHCu/db3FcIkvCqQSNSJpDZLGrNc80zP35PJq7c4SxK8cSCaV9e3bj2zt9UcklKBLVLRSI= X-Received: by 2002:a50:87a7:: with SMTP id a36mr4358004eda.96.1547574609604; Tue, 15 Jan 2019 09:50:09 -0800 (PST) MIME-Version: 1.0 References: <201901080851.x088pwEY035883@repo.freebsd.org> In-Reply-To: <201901080851.x088pwEY035883@repo.freebsd.org> From: Po-Chuan Hsieh Date: Wed, 16 Jan 2019 01:49:33 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r489656 - in head/dns: . py-bonjour py-bonjour/files To: John Hixson Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-Rspamd-Queue-Id: 39A3769F23 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Jan 2019 17:50:12 -0000 On Tue, Jan 8, 2019 at 4:52 PM John Hixson wrote: > 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 > Please rename it to py-pybonjour as it is the python 3 port of https://pypi.org/project/pybonjour/. In most cases, we do respect PyPI naming to avoid confusion. > +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 > >