summaryrefslogtreecommitdiff
path: root/comms/libmodbus
diff options
context:
space:
mode:
Diffstat (limited to 'comms/libmodbus')
-rw-r--r--comms/libmodbus/Makefile6
-rw-r--r--comms/libmodbus/distinfo6
-rw-r--r--comms/libmodbus/files/patch-src_modbus-tcp.c11
-rw-r--r--comms/libmodbus/pkg-plist4
4 files changed, 20 insertions, 7 deletions
diff --git a/comms/libmodbus/Makefile b/comms/libmodbus/Makefile
index 180c4dddd679..a1675a718bf9 100644
--- a/comms/libmodbus/Makefile
+++ b/comms/libmodbus/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libmodbus
DISTVERSIONPREFIX= v
-DISTVERSION= 3.1.8
+DISTVERSION= 3.1.11
CATEGORIES= comms
MAINTAINER= bofh@FreeBSD.org
@@ -26,10 +26,10 @@ OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= go-md2man:textproc/go-md2man
post-install-MANPAGES-on:
- go-md2man -in docs/index.md | gzip > ${STAGEDIR}${PREFIX}/share/man/man7/libmodbus.7.gz
+ go-md2man -in docs/index.md | ${GZIP_CMD} > ${STAGEDIR}${PREFIX}/share/man/man7/libmodbus.7.gz
for files in `${FIND} ${WRKSRC}/docs -type f -name 'modbus*.md'`; do \
basefiles=`basename $${files} .md`; \
- go-md2man -in $${files} | gzip > ${STAGEDIR}${PREFIX}/share/man/man3/$${basefiles}.3.gz; \
+ go-md2man -in $${files} | ${GZIP_CMD} > ${STAGEDIR}${PREFIX}/share/man/man3/$${basefiles}.3.gz; \
done
.include <bsd.port.mk>
diff --git a/comms/libmodbus/distinfo b/comms/libmodbus/distinfo
index 3a419fbabbb9..c2b0667637d2 100644
--- a/comms/libmodbus/distinfo
+++ b/comms/libmodbus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1751271066
-SHA256 (stephane-libmodbus-v3.1.8_GH0.tar.gz) = 4cabc5dc01b2faab853474c5d9db6386d04f37a476f843e239bff25480310adb
-SIZE (stephane-libmodbus-v3.1.8_GH0.tar.gz) = 201697
+TIMESTAMP = 1751555493
+SHA256 (stephane-libmodbus-v3.1.11_GH0.tar.gz) = 8a750452ef86a53de6cec6fbca67bd5be08d0a1e87278a422fbce3003fd42d99
+SIZE (stephane-libmodbus-v3.1.11_GH0.tar.gz) = 207911
diff --git a/comms/libmodbus/files/patch-src_modbus-tcp.c b/comms/libmodbus/files/patch-src_modbus-tcp.c
new file mode 100644
index 000000000000..1d317dedc173
--- /dev/null
+++ b/comms/libmodbus/files/patch-src_modbus-tcp.c
@@ -0,0 +1,11 @@
+--- src/modbus-tcp.c.orig 2025-07-03 21:07:28 UTC
++++ src/modbus-tcp.c
+@@ -257,7 +257,7 @@ static int _modbus_tcp_set_ipv4_options(int s)
+ #endif
+ #endif
+
+-#ifndef OS_WIN32
++#if !defined(OS_WIN32) && !defined(__FreeBSD__)
+ /**
+ * Cygwin defines IPTOS_LOWDELAY but can't handle that flag so it's
+ * necessary to workaround that problem.
diff --git a/comms/libmodbus/pkg-plist b/comms/libmodbus/pkg-plist
index 565ac8cd371c..31d6a3334b83 100644
--- a/comms/libmodbus/pkg-plist
+++ b/comms/libmodbus/pkg-plist
@@ -8,6 +8,8 @@ lib/libmodbus.so.5.1.0
libdata/pkgconfig/libmodbus.pc
%%MANPAGES%%share/man/man3/modbus_close.3.gz
%%MANPAGES%%share/man/man3/modbus_connect.3.gz
+%%MANPAGES%%share/man/man3/modbus_disable_quirks.3.gz
+%%MANPAGES%%share/man/man3/modbus_enable_quirks.3.gz
%%MANPAGES%%share/man/man3/modbus_flush.3.gz
%%MANPAGES%%share/man/man3/modbus_free.3.gz
%%MANPAGES%%share/man/man3/modbus_get_byte_from_bits.3.gz
@@ -46,6 +48,7 @@ libdata/pkgconfig/libmodbus.pc
%%MANPAGES%%share/man/man3/modbus_rtu_set_rts_delay.3.gz
%%MANPAGES%%share/man/man3/modbus_rtu_set_serial_mode.3.gz
%%MANPAGES%%share/man/man3/modbus_send_raw_request.3.gz
+%%MANPAGES%%share/man/man3/modbus_send_raw_request_tid.3.gz
%%MANPAGES%%share/man/man3/modbus_set_bits_from_byte.3.gz
%%MANPAGES%%share/man/man3/modbus_set_bits_from_bytes.3.gz
%%MANPAGES%%share/man/man3/modbus_set_byte_timeout.3.gz
@@ -72,6 +75,5 @@ libdata/pkgconfig/libmodbus.pc
%%MANPAGES%%share/man/man3/modbus_write_registers.3.gz
%%MANPAGES%%share/man/man7/libmodbus.7.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/MIGRATION
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README.md