git: 2ac7d48a4318 - main - net/mbtget: [NEW PORT] Simple Modbus/TCP client CLI tool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Oct 2026 07:59:00 UTC
The branch main has been updated by alven:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2ac7d48a43187f018d77d7d036ed97b50491973d
commit 2ac7d48a43187f018d77d7d036ed97b50491973d
Author: Luis Castellanos <ing.castellanosdz@gmail.com>
AuthorDate: 2026-10-12 18:53:49 +0000
Commit: Älven <alven@FreeBSD.org>
CommitDate: 2026-10-13 07:52:16 +0000
net/mbtget: [NEW PORT] Simple Modbus/TCP client CLI tool
PR: 299338
---
net/Makefile | 1 +
net/mbtget/Makefile | 28 ++++++++++++++++++++++++++++
net/mbtget/distinfo | 3 +++
net/mbtget/pkg-descr | 7 +++++++
4 files changed, 39 insertions(+)
diff --git a/net/Makefile b/net/Makefile
index ec7d7d0b9daa..1106c91211d5 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -468,6 +468,7 @@
SUBDIR += mailcommon
SUBDIR += mailimporter
SUBDIR += malo-firmware-kmod
+ SUBDIR += mbtget
SUBDIR += mcast-bridge
SUBDIR += mcjoin
SUBDIR += mdns-bridge
diff --git a/net/mbtget/Makefile b/net/mbtget/Makefile
new file mode 100644
index 000000000000..6b2b17bf9c6b
--- /dev/null
+++ b/net/mbtget/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= mbtget
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.5.0
+CATEGORIES= net
+
+MAINTAINER= ing.castellanosdz@gmail.com
+COMMENT= Simple Modbus/TCP client CLI tool
+WWW= https://github.com/sourceperl/mbtget/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= perl5 shebangfix
+USE_GITHUB= yes
+GH_ACCOUNT= sourceperl
+USE_PERL5= run
+
+SHEBANG_FILES= scripts/mbtget
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/mbtget
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mbtget ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/net/mbtget/distinfo b/net/mbtget/distinfo
new file mode 100644
index 000000000000..fa6b958d7ad4
--- /dev/null
+++ b/net/mbtget/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1791830998
+SHA256 (sourceperl-mbtget-v1.5.0_GH0.tar.gz) = 4df5be663c4bf21a8abb18fedd0a4269f6b1101c93a341d23901add23ba5321d
+SIZE (sourceperl-mbtget-v1.5.0_GH0.tar.gz) = 6540
diff --git a/net/mbtget/pkg-descr b/net/mbtget/pkg-descr
new file mode 100644
index 000000000000..23b10235cb85
--- /dev/null
+++ b/net/mbtget/pkg-descr
@@ -0,0 +1,7 @@
+mbtget is a simple Modbus/TCP client for the command line, written in
+pure Perl with no external dependencies. It supports Modbus function
+codes for reading and writing coils, discrete inputs, holding registers,
+and input registers (class 0 and class 1 functions).
+
+Useful for testing, diagnostics, and scripting in industrial automation
+and OT/ICS environments.