The pyserial distribution includes a handy tcp/serial port bridge script called tcp_serial_redirect.py. The patch adds an EXAMPLES option to install this (along with other pyserial example scripts). (Another approach would be to add a TCP_SERIAL_REDIRECT option and install just that script in $PREFIX/bin which would be even nicer.)
Created attachment 230033 [details] patch
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e237c912125cf736a2bb67759d23d3e11cb5acc3 commit e237c912125cf736a2bb67759d23d3e11cb5acc3 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2021-12-28 17:37:39 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2021-12-28 17:37:39 +0000 comms/py-pyserial: Add an EXAMPLES option The pyserial distribution includes a handy tcp/serial port bridge script called tcp_serial_redirect.py. Add an EXAMPLES option to install this (along with other pyserial example scripts). PR: 260328 Approved by: sbz (maintainer timeout, 18 days) comms/py-pyserial/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)