aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Beaudouin <kiwi@FreeBSD.org>2025-01-11 17:25:55 +0000
committerXavier Beaudouin <kiwi@FreeBSD.org>2025-02-07 16:59:26 +0000
commite0323e9ffb668aab968bf19fae8af109a42d4e7b (patch)
tree81c0c1977f6b038eab93eb419adc74bed354a636
parentd62ea8c0ed16eade163e7af7293829dad0a4dcd2 (diff)
comms/py-sdm_modbus: Library for Eastron SDM kWh meters
Library that collects data from Eastron SDM single and three phase kWh meters over Modbus RTU or Modbus TCP Approved by: 0mp (mentor) Differential Revision: https://reviews.freebsd.org/D48431
-rw-r--r--comms/Makefile1
-rw-r--r--comms/py-sdm_modbus/Makefile22
-rw-r--r--comms/py-sdm_modbus/distinfo3
-rw-r--r--comms/py-sdm_modbus/pkg-descr2
4 files changed, 28 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index e9bedf53b51b..7daad88b1bd4 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -149,6 +149,7 @@
SUBDIR += py-pyocd-pemicro
SUBDIR += py-pyserial
SUBDIR += py-pyserial-asyncio
+ SUBDIR += py-sdm_modbus
SUBDIR += py-spsdk
SUBDIR += py-streamdeck
SUBDIR += py-xmodem
diff --git a/comms/py-sdm_modbus/Makefile b/comms/py-sdm_modbus/Makefile
new file mode 100644
index 000000000000..bbd2e161ec61
--- /dev/null
+++ b/comms/py-sdm_modbus/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= sdm_modbus
+DISTVERSION= 0.6.1
+CATEGORIES= comms python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kiwi@FreeBSD.org
+COMMENT= Library for Eastron SDM single or three phase kWh meters
+WWW= https://github.com/nmakel/sdm_modbus
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymodbus>=2.0:comms/py-pymodbus@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+PORTDOCS= *
+
+.include <bsd.port.mk>
diff --git a/comms/py-sdm_modbus/distinfo b/comms/py-sdm_modbus/distinfo
new file mode 100644
index 000000000000..962af27e3065
--- /dev/null
+++ b/comms/py-sdm_modbus/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666525980
+SHA256 (sdm_modbus-0.6.1.tar.gz) = 3c3a36100ab54df8998ec788cc69904914137ba443094e827b219ba7ab0ea4dd
+SIZE (sdm_modbus-0.6.1.tar.gz) = 13928
diff --git a/comms/py-sdm_modbus/pkg-descr b/comms/py-sdm_modbus/pkg-descr
new file mode 100644
index 000000000000..58243c121d0c
--- /dev/null
+++ b/comms/py-sdm_modbus/pkg-descr
@@ -0,0 +1,2 @@
+Library that collects data from Eastron SDM single and three phase kWh
+meters over Modbus RTU or Modbus TCP.