pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Add comms/remserial 1.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b3320ef775a
branches: trunk
changeset: 411532:3b3320ef775a
user: manu <manu%pkgsrc.org@localhost>
date: Sat Feb 15 02:26:58 2020 +0000
description:
Add comms/remserial 1.4
The remserial program acts as a communications bridge between a
TCP/IP network port and a Linux device such as a serial port. Any
character-oriented Linux /dev device will work.
The program can also use pseudo-ttys as the device. A pseudo-tty
is like a serial port in that it has a /dev entry that can be opened
by a program that expects a serial port device, except that instead
of belonging to a physical serial device, the data can be intercepted
by another program. The remserial program uses this to connect a
network port to the "master" (programming) side of the pseudo-tty
allowing the device driver (slave) side to be used by some program
expecting a serial port. See example 3 below for details.
The program can operate as a server accepting network connections
from other machines, or as a client, connecting to remote machine
that is running the remserial program or some other program that
accepts a raw network connection. The network connection passes
data as-is, there is no control protocol over the network socket.
Multiple copies of the program can run on the same computer at the
same time assuming each is using a different network port and
device.
diffstat:
comms/Makefile | 3 +-
comms/remserial/DESCR | 24 +++++++++++++
comms/remserial/Makefile | 18 ++++++++++
comms/remserial/PLIST | 3 +
comms/remserial/distinfo | 7 ++++
comms/remserial/patches/patch-stty.c | 62 ++++++++++++++++++++++++++++++++++++
doc/CHANGES-2020 | 3 +-
7 files changed, 118 insertions(+), 2 deletions(-)
diffs (165 lines):
diff -r b2174d898f05 -r 3b3320ef775a comms/Makefile
--- a/comms/Makefile Sat Feb 15 02:19:49 2020 +0000
+++ b/comms/Makefile Sat Feb 15 02:26:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.115 2020/01/04 13:24:21 nia Exp $
+# $NetBSD: Makefile,v 1.116 2020/02/15 02:26:58 manu Exp $
#
COMMENT= Communication utilities
@@ -74,6 +74,7 @@
SUBDIR+= py-termstyle
SUBDIR+= qodem
SUBDIR+= qpage
+SUBDIR+= remserial
SUBDIR+= ruby-termios
SUBDIR+= scmxx
SUBDIR+= snooper
diff -r b2174d898f05 -r 3b3320ef775a comms/remserial/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/remserial/DESCR Sat Feb 15 02:26:58 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: DESCR,v 1.1 2020/02/15 02:26:58 manu Exp $
+
+The remserial program acts as a communications bridge between a
+TCP/IP network port and a Linux device such as a serial port. Any
+character-oriented Linux /dev device will work.
+
+The program can also use pseudo-ttys as the device. A pseudo-tty
+is like a serial port in that it has a /dev entry that can be opened
+by a program that expects a serial port device, except that instead
+of belonging to a physical serial device, the data can be intercepted
+by another program. The remserial program uses this to connect a
+network port to the "master" (programming) side of the pseudo-tty
+allowing the device driver (slave) side to be used by some program
+expecting a serial port. See example 3 below for details.
+
+The program can operate as a server accepting network connections
+from other machines, or as a client, connecting to remote machine
+that is running the remserial program or some other program that
+accepts a raw network connection. The network connection passes
+data as-is, there is no control protocol over the network socket.
+
+Multiple copies of the program can run on the same computer at the
+same time assuming each is using a different network port and
+device.
diff -r b2174d898f05 -r 3b3320ef775a comms/remserial/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/remserial/Makefile Sat Feb 15 02:26:58 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/02/15 02:26:58 manu Exp $
+
+DISTNAME= remserial-1.4
+CATEGORIES= comms
+MASTER_SITES= http://lpccomp.bc.ca/remserial/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://lpccomp.bc.ca/remserial/
+COMMENT= Serial port over LAN through TCP/IP
+LICENSE= gnu-gpl-v2
+INSTALLATION_DIRS= bin share/doc/remserial
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/remserial ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README.txt \
+ ${DESTDIR}${PREFIX}/share/doc/remserial
+
+.include "../../mk/bsd.pkg.mk"
diff -r b2174d898f05 -r 3b3320ef775a comms/remserial/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/remserial/PLIST Sat Feb 15 02:26:58 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/02/15 02:26:58 manu Exp $
+bin/remserial
+share/doc/remserial/README.txt
diff -r b2174d898f05 -r 3b3320ef775a comms/remserial/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/remserial/distinfo Sat Feb 15 02:26:58 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/02/15 02:26:58 manu Exp $
+
+SHA1 (remserial-1.4.tar.gz) = 2a5208cbe0099cc67f45dffaa680a1a291ae8092
+RMD160 (remserial-1.4.tar.gz) = b8d9e27e428255a4fe520cdaf8227fd89d16f2a6
+SHA512 (remserial-1.4.tar.gz) = 62f38a6c3940bf577a8cf84a487ab0c46167fc8ddaf6eb793c47c2baac7d2e035d7cb0f5ee33ebaba0e28f9816f3365257a8196a8f497689886ed8a5f8f58c0f
+Size (remserial-1.4.tar.gz) = 7497 bytes
+SHA1 (patch-stty.c) = bd532f0b68bfbe70828f76dcb6428b9aee789211
diff -r b2174d898f05 -r 3b3320ef775a comms/remserial/patches/patch-stty.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/remserial/patches/patch-stty.c Sat Feb 15 02:26:58 2020 +0000
@@ -0,0 +1,62 @@
+$NetBSD: patch-stty.c,v 1.1 2020/02/15 02:26:58 manu Exp $
+
+Fixes for NetBSD build
+
+--- stty.c.orig 2020-02-14 11:21:48.402882118 +0100
++++ stty.c 2020-02-14 11:24:48.883716864 +0100
+@@ -21,8 +21,12 @@
+ #include <termios.h>
+ #include <unistd.h>
+ #include <string.h>
+
++#ifdef __NetBSD__
++#include <sys/ioctl_compat.h>
++#endif
++
+ #define CFLG 0
+ #define IFLG 1
+ #define OFLG 2
+ #define LFLG 3
+@@ -107,26 +111,42 @@
+ { "onlcr", OFLG, ONLCR, ONLCR },
+ { "ocrnl", OFLG, OCRNL, OCRNL },
+ { "onocr", OFLG, ONOCR, ONOCR },
+ { "onlret", OFLG, ONLRET, ONLRET },
++#ifdef OFILL // Missing on NetBSD
+ { "ofil", OFLG, OFILL, OFILL },
++#endif
++#ifdef OFDEL // Missing on NetBSD
+ { "ofdel", OFLG, OFDEL, OFDEL },
++#endif
++#ifdef NLDLY // Missing on NetBSD
+ { "nl0", OFLG, NLDLY, NL0 },
+ { "nl1", OFLG, NLDLY, NL1 },
++#endif
++#ifdef CRDLY // Missing on NetBSD
+ { "cr0", OFLG, CRDLY, CR0 },
+ { "cr1", OFLG, CRDLY, CR1 },
+ { "cr2", OFLG, CRDLY, CR2 },
+ { "cr3", OFLG, CRDLY, CR3 },
++#endif
++#ifdef TABDLY // Missing on NetBSD
+ { "tab0", OFLG, TABDLY, TAB0 },
+ { "tab1", OFLG, TABDLY, TAB1 },
+ { "tab2", OFLG, TABDLY, TAB2 },
+ { "tab3", OFLG, TABDLY, TAB3 },
++#endif
++#ifdef BSDLY // Missing on NetBSD
+ { "bs0", OFLG, BSDLY, BS0 },
+ { "bs1", OFLG, BSDLY, BS1 },
++#endif
++#ifdef VTDLY // Missing on NetBSD
+ { "vt0", OFLG, VTDLY, VT0 },
+ { "vt1", OFLG, VTDLY, VT1 },
++#endif
++#ifdef FFDLY // Missing on NetBSD
+ { "ff0", OFLG, FFDLY, FF0 },
+ { "ff1", OFLG, FFDLY, FF1 },
++#endif
+ { "isig", LFLG, ISIG, ISIG },
+ { "icanon", LFLG, ICANON, ICANON },
+ #ifdef XCASE // Missing on OSX, FreeBSD
+ { "xcase", LFLG, XCASE, XCASE },
diff -r b2174d898f05 -r 3b3320ef775a doc/CHANGES-2020
--- a/doc/CHANGES-2020 Sat Feb 15 02:19:49 2020 +0000
+++ b/doc/CHANGES-2020 Sat Feb 15 02:26:58 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2020,v 1.1085 2020/02/14 19:16:09 leot Exp $
+$NetBSD: CHANGES-2020,v 1.1086 2020/02/15 02:26:58 manu Exp $
Changes to the packages collection and infrastructure in 2020:
@@ -1545,3 +1545,4 @@
Updated databases/postgresql12 to 12.2 [adam 2020-02-14]
Updated sysutils/entr to 4.4 [leot 2020-02-14]
Updated www/webkit-gtk to 2.26.4 [leot 2020-02-14]
+ Added comms/remserial 1.4 [manu 2020-02-14]
Home |
Main Index |
Thread Index |
Old Index