From nobody Tue Jul 23 16:52:09 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WT38p1BFlz5SDdT; Tue, 23 Jul 2024 16:52:10 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WT38p0gjLz4fLL; Tue, 23 Jul 2024 16:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721753530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8u0ei6o7OTHP87C5VUEQBwNtQqdaShQnX8JyRaS7Atg=; b=PuqKLPlebYnoIYqj+HLIv/UjMktdvHPt6NY0cQEcXhVXWTs2kOp676KL6U0NMXVUPTrAXr 7Zmm2DNPFT7Pn1TD4XvsYoygczC/rrx6kYTKiVzhRLXtBQVx6N9hFLXSPZ6mk2LGTmLPLV ibDNUQ8jTRUvZet7O76ZfEDcbgSiF1DsP3ytShTj/+dnUTTBKqb/Fo3JtnvYW9AumjNuah VLiBChLf/TPXAF7d4pzk9OmyPIdKNW53lB7zJFYg2Hdom6X7zrEhRC9ZAgfVnqfdNGdegC G565x7Xs4WscvXfFElXtXmMkG5Gdx6pjx7X/pzH9JD4NjC0VMImrWX7+OHFyoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721753530; a=rsa-sha256; cv=none; b=gAPsGNLl5BE15yJf8AfSWEG4D/thu1WOS27lkgdiv9WtRsVc+fWBtn6hgwbUVY3SEvbsHm nijlzdUs/0Vy1b+0J1QL/E6PBizUlpUvxLmVNI6lwUcC2cfXmXxeUxwB5TNJdHK0Z/7yuX zFJl8Xt2kCM3J5VjIhWvDeHxNnq9ZG8vrVqWxvTc7T042GPNQy1qyF97+JJlU76nFrL9/4 ERFJSExf9pCy/ccsrhmziqpFMfjrHyE339mhxEOfZw/6/dIcYH5UyF621vM7wJqYOupgTj qi54FNrjV+fMsxT0B2gyatMM4UaGdcsgp/dD2YwXmmLTrLEE0oSweZKnz71+0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721753530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8u0ei6o7OTHP87C5VUEQBwNtQqdaShQnX8JyRaS7Atg=; b=GmWXSxl7xFONuY31Xvn9qIAT09Qh2hAEX8pgrwZ2zy2lZRx7fYb7Fctwq2HTAFPD9OhqGB 038lO/V9J51BRB5KCi0Ne27eLvnfiuYgd5A9p1Z3k0dTnxasBW2nK4vI354XhdqprS7Mxb D1DukDuGLxEZBFydVi+geFim7xQdAS18qWG28xlY/EYkOcP2eaHQz85FSM5l4uyCzHyvp/ s+qqNEPl6W629C0amv0BVexr3qEOOtsQ7MQMae+kKQtQn+aDuqLF+I705fmmHD2cmmbMND Mh9CZpVluM5syquBcNWD31a5oeDq5Divx96bTS/vBZrkbsePKOFfWPqrTg8gzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WT38p09wwzc3G; Tue, 23 Jul 2024 16:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46NGq9n1076031; Tue, 23 Jul 2024 16:52:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46NGq9F6076028; Tue, 23 Jul 2024 16:52:09 GMT (envelope-from git) Date: Tue, 23 Jul 2024 16:52:09 GMT Message-Id: <202407231652.46NGq9F6076028@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 1a18e0ae75e7 - main - dns/py-libknot: new port: Python API using knot.sock to interact with the Knot DNS daemon List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a18e0ae75e73291bb9e6f9ed1ca832ae3e09daa Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a18e0ae75e73291bb9e6f9ed1ca832ae3e09daa commit 1a18e0ae75e73291bb9e6f9ed1ca832ae3e09daa Author: Leo Vandewoestijne AuthorDate: 2024-07-23 16:49:21 +0000 Commit: Vladimir Druzenko CommitDate: 2024-07-23 16:49:21 +0000 dns/py-libknot: new port: Python API using knot.sock to interact with the Knot DNS daemon Using this module it's possible to create scripts for efficient tasks that would require complex shell scripts with multiple calls of knotc. For communication with the daemon it uses the same mechanism as the knotc utility, i.e. communication via a Unix socket. PR: 278280 --- dns/Makefile | 1 + dns/py-libknot/Makefile | 22 ++++++++++++++++++++++ dns/py-libknot/distinfo | 3 +++ dns/py-libknot/pkg-descr | 2 ++ 4 files changed, 28 insertions(+) diff --git a/dns/Makefile b/dns/Makefile index 8b62166ab555..bc71c5e2a57f 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -187,6 +187,7 @@ SUBDIR += py-idna SUBDIR += py-idna_ssl SUBDIR += py-ldns + SUBDIR += py-libknot SUBDIR += py-localzone SUBDIR += py-ns1-python SUBDIR += py-publicsuffix diff --git a/dns/py-libknot/Makefile b/dns/py-libknot/Makefile new file mode 100644 index 000000000000..d137a6ffefb8 --- /dev/null +++ b/dns/py-libknot/Makefile @@ -0,0 +1,22 @@ +PORTNAME= libknot +DISTVERSION= ${KNOT_VERSION} +CATEGORIES= dns python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd@dns.company +COMMENT= Python API using knot.sock to interact with the Knot DNS daemon +WWW= https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/libknot + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +LIB_DEPENDS= libknot.so:dns/knot3 + +USES= python:3.5+ +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include "${.CURDIR}/../knot3/knotdns.mk" +.include diff --git a/dns/py-libknot/distinfo b/dns/py-libknot/distinfo new file mode 100644 index 000000000000..05f0e8c3e6ab --- /dev/null +++ b/dns/py-libknot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721721718 +SHA256 (libknot-3.3.8.tar.gz) = 446d8d385402eabc5ebad6b09f702b672f6e34b9fe80f984aabbf5134618271e +SIZE (libknot-3.3.8.tar.gz) = 11110 diff --git a/dns/py-libknot/pkg-descr b/dns/py-libknot/pkg-descr new file mode 100644 index 000000000000..41724f2bae75 --- /dev/null +++ b/dns/py-libknot/pkg-descr @@ -0,0 +1,2 @@ +Python interface to operate the Knot DNS daemon. +Communicating with it using the knot.sock unixsocket.