From nobody Sat Aug 17 20:45:04 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 4WmW813Jggz5TgDB; Sat, 17 Aug 2024 20:45:05 +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 4WmW8104XLz4MR9; Sat, 17 Aug 2024 20:45:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927505; 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=ZCfwLZzMgh2ykppCh/wvPwdHti+reV8oP5TduzJio+4=; b=loJRjPZsUu9yAD9pN1GuTGFJTCSDer8LXSFVzrOhPB69cPDHgtn8DTy2CvOxnGgCWNaGcC fOIsbRXwHYhJqu9kxMExan9+wVIKvMnfQLwF49HhjajWxOK7QJyjjGaiP0JY9cppcfMqtz mkc/LvGkuXwaUM5W2FwKyDtCqEeC7wCw7z5IeaFI7gbiqCurlBsrz5GcAyXXTTsv739Hkv Qhc2dAR3glLd4Q/AliXrDELKGsSDd1ypcNBEr2L0R5AaV1XGR+K/gSr/Q4bSL0VzgUphmH r1NJpFe+bJU3QZxreQCYGlOcBvxlLAj5CZ6+3DZDgyTVZ3wiLmEx9F6lz16Nxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723927505; a=rsa-sha256; cv=none; b=Lyn1IAWbrLYtKC+FZtuhv1C/d/uLxwDTBNJrwVTae3DPlThF3IB996ZL0FXRkeiVfCP5Z0 pYhnEUuI7YUWRdCfAYDvO0y0SBDuNi+Gj5yYbxkiMdFBJVJNFY3qgYU4iZlaEmznEj0rb9 lCW/yCSo80KObcxCSg63TOkFWpAvPD5leqiYa2IwKIjCueHz1NbN8U0fviyUwvjL6U0rxK Gr6IWNXBZzToWQyEmUwqKbtCJxpXfXKts3qXLeFQBeHZmZXi2wK5lzkTq538ub7pOFHVZc V/kJMgwmg9xJp4D889HIYpLWVB/vWZk1gjD2R7XfyLMyCk3e+lrV+XEH5bFFeA== 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=1723927505; 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=ZCfwLZzMgh2ykppCh/wvPwdHti+reV8oP5TduzJio+4=; b=HCcMVm6phuxZUJg9jPE0M8i/NspOWOgJVoLCI0kpuMCv8bBrWVTMl71PiJGliPMiERHQFf AUYOaO7hBFPUSYvTfuG9J94KGp7WXnHZA/wDeS8+mvdnvwEVyEC9bldQyHXAXSP7PEnT+S ioiBzDExV7w1degLs+RNB9897nBewnA8158cR64RUeKTDo8606BXx2JDwJFJOO5zTOPWXQ b4zZ/QgHBZia+azhxD+TGXda/aiu0FLlK0d+Z8JwUnb2RwHjGsr7vDQVweVbPxe4pS41BK 4Z4kE3AvJpSAd2F9/i/eUqeq0WhTIyJzw7YutsHOxDBd8jam510cM9n709Deeg== 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 4WmW806ZMfz14wf; Sat, 17 Aug 2024 20:45:04 +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 47HKj45c043595; Sat, 17 Aug 2024 20:45:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47HKj4Ed043592; Sat, 17 Aug 2024 20:45:04 GMT (envelope-from git) Date: Sat, 17 Aug 2024 20:45:04 GMT Message-Id: <202408172045.47HKj4Ed043592@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 3d1012dcdaa0 - main - converters/py-tlv8: encoder of arbitrary data 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: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d1012dcdaa06d237178d18b48917c678335541e Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d1012dcdaa06d237178d18b48917c678335541e commit 3d1012dcdaa06d237178d18b48917c678335541e Author: Shapovalov Alexey AuthorDate: 2024-07-02 18:36:38 +0000 Commit: Gleb Popov CommitDate: 2024-08-17 20:44:41 +0000 converters/py-tlv8: encoder of arbitrary data Sponsored by: Serenity Cybersecurity, LLC Co-authored-by: Gleb Popov --- comms/Makefile | 1 + comms/py-nkdfu/Makefile | 31 +++++++++++++++++++++++++++++++ comms/py-nkdfu/distinfo | 3 +++ comms/py-nkdfu/pkg-descr | 3 +++ converters/Makefile | 1 + converters/py-tlv8/Makefile | 22 ++++++++++++++++++++++ converters/py-tlv8/distinfo | 3 +++ converters/py-tlv8/pkg-descr | 4 ++++ 8 files changed, 68 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index 506f6ae1b662..4e99ca4066c8 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -137,6 +137,7 @@ SUBDIR += py-libimobiledevice SUBDIR += py-libscrc SUBDIR += py-libusbsio + SUBDIR += py-nkdfu SUBDIR += py-pylink-square SUBDIR += py-pymodbus SUBDIR += py-pyocd diff --git a/comms/py-nkdfu/Makefile b/comms/py-nkdfu/Makefile new file mode 100644 index 000000000000..c9668b2f1026 --- /dev/null +++ b/comms/py-nkdfu/Makefile @@ -0,0 +1,31 @@ +PORTNAME= nkdfu +PORTVERSION= 0.2 +CATEGORIES= comms python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= aishapoval@mts.ru +COMMENT= Python DFU tool for updating Nitrokeys' firmware (Nitrokey Pro only) +WWW= https://github.com/Nitrokey/nkdfu + +LICENSE= GPLv2 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fire>=0:devel/py-fire@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}intelhex>=2.3.0:devel/py-intelhex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}libusb1>=1.9.3:devel/py-libusb1@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fire>=0:devel/py-fire@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}intelhex>=2.3.0:devel/py-intelhex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}libusb1>=1.9.3:devel/py-libusb1@${PY_FLAVOR} + +PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel +PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR} + +USES= python shebangfix +USE_PYTHON= autoplist pep517 + +SHEBANG_FILES= nkdfu/dfu_flash.py +NO_ARCH= yes + +.include diff --git a/comms/py-nkdfu/distinfo b/comms/py-nkdfu/distinfo new file mode 100644 index 000000000000..9d7d21669844 --- /dev/null +++ b/comms/py-nkdfu/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706027633 +SHA256 (nkdfu-0.2.tar.gz) = f25f75ddd382c47285b6943cde9f51577b1496ed284f93d58b5e054ae609f5f8 +SIZE (nkdfu-0.2.tar.gz) = 16700 diff --git a/comms/py-nkdfu/pkg-descr b/comms/py-nkdfu/pkg-descr new file mode 100644 index 000000000000..1cc8a061fe12 --- /dev/null +++ b/comms/py-nkdfu/pkg-descr @@ -0,0 +1,3 @@ +nkdfu is a Python DFU tool for updating Nitrokeys' firmware. Currently +supports Nitrokey Pro only. Based on python-dfu project, which brings +implementation of USB DFU 1.1 spec diff --git a/converters/Makefile b/converters/Makefile index 18455e6a3744..589fff718538 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -155,6 +155,7 @@ SUBDIR += py-rencode SUBDIR += py-svglib SUBDIR += py-text-unidecode + SUBDIR += py-tlv8 SUBDIR += py-unidecode SUBDIR += py-webencodings SUBDIR += py-zfec diff --git a/converters/py-tlv8/Makefile b/converters/py-tlv8/Makefile new file mode 100644 index 000000000000..7a9145ed3980 --- /dev/null +++ b/converters/py-tlv8/Makefile @@ -0,0 +1,22 @@ +PORTNAME= tlv8 +PORTVERSION= 0.10.0 +CATEGORIES= converters python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= awoonyaa@gmail.com +COMMENT= Python module to handle type-length-value encoded data 8-bit type +WWW= https://pypi.org/project/tlv8/ + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/converters/py-tlv8/distinfo b/converters/py-tlv8/distinfo new file mode 100644 index 000000000000..a34d281b47bf --- /dev/null +++ b/converters/py-tlv8/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706036438 +SHA256 (tlv8-0.10.0.tar.gz) = 7930a590267b809952272ac2a27ee81b99ec5191fa2eba08050e0daee4262684 +SIZE (tlv8-0.10.0.tar.gz) = 16054 diff --git a/converters/py-tlv8/pkg-descr b/converters/py-tlv8/pkg-descr new file mode 100644 index 000000000000..c4758204e715 --- /dev/null +++ b/converters/py-tlv8/pkg-descr @@ -0,0 +1,4 @@ +Type-Length-Value (TLV) are used to encode arbitrary data. In this case the type +and length are represented by 1 byte each. Hence the name TLV8. + +This Python library implements encoding and decoding of TLV8 data.