diff options
Diffstat (limited to 'comms/libmodbus')
-rw-r--r-- | comms/libmodbus/Makefile | 20 | ||||
-rw-r--r-- | comms/libmodbus/distinfo | 6 | ||||
-rw-r--r-- | comms/libmodbus/files/patch-src_modbus-tcp.c | 11 | ||||
-rw-r--r-- | comms/libmodbus/pkg-plist | 4 |
4 files changed, 30 insertions, 11 deletions
diff --git a/comms/libmodbus/Makefile b/comms/libmodbus/Makefile index 01038c936540..00ac1fb92c56 100644 --- a/comms/libmodbus/Makefile +++ b/comms/libmodbus/Makefile @@ -1,8 +1,7 @@ PORTNAME= libmodbus -PORTVERSION= 3.1.7 -PORTREVISION= 2 +DISTVERSIONPREFIX= v +DISTVERSION= 3.1.11 CATEGORIES= comms -MASTER_SITES= https://libmodbus.org/releases/ MAINTAINER= bofh@FreeBSD.org COMMENT= Modbus library @@ -11,11 +10,12 @@ WWW= https://libmodbus.org/ LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER -USES= cpe gmake libtool pathfix +USES= autoreconf cpe gmake libtool +USE_GITHUB= yes +GH_ACCOUNT= stephane USE_LDCONFIG= yes GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share INSTALL_TARGET= install-strip @@ -23,7 +23,13 @@ OPTIONS_DEFINE= DOCS MANPAGES OPTIONS_DEFAULT= MANPAGES OPTIONS_SUB= yes -MANPAGES_BUILD_DEPENDS= a2x:textproc/asciidoc \ - xmlto:textproc/xmlto +MANPAGES_BUILD_DEPENDS= go-md2man:textproc/go-md2man + +post-install-MANPAGES-on: + 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_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 ca9dab8ce3d2..c2b0667637d2 100644 --- a/comms/libmodbus/distinfo +++ b/comms/libmodbus/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1654519527 -SHA256 (libmodbus-3.1.7.tar.gz) = 7dfe958431d0570b271e1a5b329b76a658e89c614cf119eb5aadb725c87f8fbd -SIZE (libmodbus-3.1.7.tar.gz) = 490162 +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 |