From nobody Mon Sep 12 16:44:05 2022 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 4MRC9K4HgXz4bjXT; Mon, 12 Sep 2022 16:44: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MRC9K3jNBz3Gqf; Mon, 12 Sep 2022 16:44:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663001045; 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=Oa/erP5N58LDrk6lBCY+iPI7kyVPqUmD7YPTXnyBLSk=; b=s4yc6fCS0r+O33yIvEIDsDFcLfX+TctFHKP1CL9qoea9QkzIexCRuqGzOg13GbU7PqMF+v zdYqEvX2cb7Lii0RX304YPIwYBOIbNxlfQc88YduayU6sJYgGNKImzgxp/upqztL/Mzylx 6D7m4Df4jpGyF+fra8P/qdXh58zBRQ5h0XgqELQBgrZ06qEbZlPxqUjN6DYWriNw8F8SAA J6VK2gmGffwvM7pzh11NkXlhNgVE1snfr6x6PjQo32OjyLLA5eGr0x26TAQpppYVY3OvsV egjmeQ1CLnASk8BZTx0D9V095HczyJ9Y8iftVU78WTOqI8SF33HMHkmeBU4YQw== 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 4MRC9K2kN9z135g; Mon, 12 Sep 2022 16:44:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28CGi5Sg089410; Mon, 12 Sep 2022 16:44:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28CGi5FG089409; Mon, 12 Sep 2022 16:44:05 GMT (envelope-from git) Date: Mon, 12 Sep 2022 16:44:05 GMT Message-Id: <202209121644.28CGi5FG089409@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 7f1b354e3c83 - main - comms/py-elelabs-zigbee-ezsp-utility: new port 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7f1b354e3c834448592d58a3f1f4433f8305b6ef Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663001045; 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=Oa/erP5N58LDrk6lBCY+iPI7kyVPqUmD7YPTXnyBLSk=; b=rOk0T0qwqfHQ7Aqiw4AYVg8Yeg27eldyrqFeYtduIzHRE70/oVOIONwXGFAmcNtMDnHsIn iR98CbvFF//a/fhI5uiMDPyFNdJVgCKHiRCxJAzmObJeJb10E1+zeW3as56RsMsFCHsJeS ulRCd+9eOTqbBb37ChUVMVhVN6IpSMFmsPJ0RW026AAWPzewCk0xj4IQ6thYkZRuIWBWwb FFL+XyB3dAe1eSYJ/oMKKrgo7J5/SaZLwdV1SkWA0YvVWMBER0JhjDTUzHFfamsUzhVqKn PpxEtxV9z5oeNZgoLKUZYh0vbgDPZgBG0emeia4WYS65COWzNkvIEPBBM8h+7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663001045; a=rsa-sha256; cv=none; b=iB+D8dapenIgKN8H+OuxXBYrWA6G5cMt1NqaLlVvkofoHSnWYx/7DN7LXeUD7+Ie7MaaxK 2gtDZMSfxBhvxgEOkIsLbE/KiV+1sFWKmAwvaqCy634bzWCFRL/+MzfuHp1POAqq5qLBBW 4OEXFLbFiP0G5BDWj/YNBMH1AGghVDiY0nHuL0HNgrDXW7hSK89PerYQQDTjIOqmL4xZrc DLwOvUN4XFtLLnE1idB0xWvpTuQ55yOYVLavGFii5/iXnRb+6Poi5sOt5r+k+pYoPRZTrY 9JWq5oTlxCKO7IMo59G5Ibxzt7S68w15t2B9P9Tgzk+Yo3RYehDSNDno1FGB2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=7f1b354e3c834448592d58a3f1f4433f8305b6ef commit 7f1b354e3c834448592d58a3f1f4433f8305b6ef Author: Rozhuk Ivan AuthorDate: 2022-09-12 00:16:27 +0000 Commit: Neel Chauhan CommitDate: 2022-09-12 16:44:02 +0000 comms/py-elelabs-zigbee-ezsp-utility: new port PR: 266380 --- comms/Makefile | 1 + comms/py-elelabs-zigbee-ezsp-utility/Makefile | 47 ++++++++++++++++++++++++ comms/py-elelabs-zigbee-ezsp-utility/distinfo | 3 ++ comms/py-elelabs-zigbee-ezsp-utility/pkg-descr | 21 +++++++++++ comms/py-elelabs-zigbee-ezsp-utility/pkg-message | 34 +++++++++++++++++ 5 files changed, 106 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index 3c67a58fc4b6..89ee6a0f75e2 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -131,6 +131,7 @@ SUBDIR += pr SUBDIR += predict SUBDIR += py-adafruit-ampy + SUBDIR += py-elelabs-zigbee-ezsp-utility SUBDIR += py-esptool SUBDIR += py-fritzconnection SUBDIR += py-hid diff --git a/comms/py-elelabs-zigbee-ezsp-utility/Makefile b/comms/py-elelabs-zigbee-ezsp-utility/Makefile new file mode 100644 index 000000000000..b8aa6152655d --- /dev/null +++ b/comms/py-elelabs-zigbee-ezsp-utility/Makefile @@ -0,0 +1,47 @@ +PORTNAME= elelabs-zigbee-ezsp-utility +DISTVERSION= 20220218 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rozhuk.im@gmail.com +COMMENT= Elelabs Firmware Update Utility +WWW= https://github.com/Elelabs/elelabs-zigbee-ezsp-utility + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.4:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xmodem>=0.4.5:comms/py-xmodem@${PY_FLAVOR} + +USES= python:3.6+ shebangfix +USE_GITHUB= yes +GH_ACCOUNT= Elelabs +GH_TAGNAME= 7fc415497f7e2b3410e3350b359ac5c71043399e +USE_PYTHON= flavors + +SHEBANG_FILES= Elelabs_EzspFwUtility.py + +NO_ARCH= yes +NO_BUILD= yes + +post-patch: + @${REINPLACE_CMD} -e "s|data/EFR32|${DATADIR}/EFR32|g" \ + ${WRKSRC}/Elelabs_EzspFwUtility.py + +# This is to prevent Mk/Uses/python.mk do-configure target from firing. +do-configure: + @${ECHO} 'No configure' + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/Elelabs_EzspFwUtility.py ${STAGEDIR}${PREFIX}/bin/ + ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/Elelabs_EzspFwUtility.py + (cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) + +post-install: +# Regenerate .PLIST.pymodtemp to get all installed files from +# ${STAGEDIR}. + @${FIND} ${STAGEDIR} -type f -o -type l | \ + ${SORT} | ${SED} -e 's|${STAGEDIR}||' \ + >> ${WRKDIR}/.PLIST.mktmp + +.include diff --git a/comms/py-elelabs-zigbee-ezsp-utility/distinfo b/comms/py-elelabs-zigbee-ezsp-utility/distinfo new file mode 100644 index 000000000000..1e4b2a1476e0 --- /dev/null +++ b/comms/py-elelabs-zigbee-ezsp-utility/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662938072 +SHA256 (Elelabs-elelabs-zigbee-ezsp-utility-20220218-7fc415497f7e2b3410e3350b359ac5c71043399e_GH0.tar.gz) = 412f7c5b0b7786c8a6d6f760a3063d4c0e0551d79bd023a731e7200c69324158 +SIZE (Elelabs-elelabs-zigbee-ezsp-utility-20220218-7fc415497f7e2b3410e3350b359ac5c71043399e_GH0.tar.gz) = 1244999 diff --git a/comms/py-elelabs-zigbee-ezsp-utility/pkg-descr b/comms/py-elelabs-zigbee-ezsp-utility/pkg-descr new file mode 100644 index 000000000000..ce81d67a8358 --- /dev/null +++ b/comms/py-elelabs-zigbee-ezsp-utility/pkg-descr @@ -0,0 +1,21 @@ +The Elelabs Firmware Update Utility is a basic Python 3 script to flash +the the firmware inside a range of Elelabs Zigbee and Thread products to +a newer version. + +Currently sold supported products based on Silicon Labs microcontrollers: + Elelabs Zigbee Raspberry Pi Shield ELR023 (EFR32MG13P) + Elelabs Zigbee USB Adapter ELU013 (EFR32MG13P) + +Previously sold supported products based on Silicon Labs microcontrollers: + Elelabs Zigbee Raspberry Pi Shield ELR022 (EFR32MG1B) + Elelabs Zigbee USB Adapter ELU012 (EFR32MG1B) + Elelabs Zigbee Raspberry Pi Shield EZBPIS (EM357) + Elelabs Zigbee USB Adapter EZBUSBA (EM357) + +Disclaimer: This utility should also work with other generic EZSP +(EmberZNet Serial Protocol) or Spinel (Openthread Serial Protocol) based +adapters and modules from other vendors, however firmwares for products +not from Elelabs are not provided here and there is no guarantees that +it will work with non-Elelabs products. Be wanted that you may void your +warranty and even brick your adapter if the firmware update is not +supported by your mnaufacturer. diff --git a/comms/py-elelabs-zigbee-ezsp-utility/pkg-message b/comms/py-elelabs-zigbee-ezsp-utility/pkg-message new file mode 100644 index 000000000000..f096790047b7 --- /dev/null +++ b/comms/py-elelabs-zigbee-ezsp-utility/pkg-message @@ -0,0 +1,34 @@ +[ +{ type: install + message: <