pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/sredird Sredird is a serial port redirector t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fa7384a8f4b5
branches: trunk
changeset: 471653:fa7384a8f4b5
user: tv <tv%pkgsrc.org@localhost>
date: Mon Mar 29 19:44:15 2004 +0000
description:
Sredird is a serial port redirector that is compliant with the RFC 2217
"Telnet Com Port Control Option" protocol. This protocol lets you share
a serial port through the network. RFC 2217 was orginally implemented
in Cisco Terminal Servers in IOS version 11.x.
diffstat:
sysutils/sredird/DESCR | 4 ++
sysutils/sredird/Makefile | 21 +++++++++++++
sysutils/sredird/PLIST | 3 +
sysutils/sredird/distinfo | 5 +++
sysutils/sredird/patches/patch-aa | 61 +++++++++++++++++++++++++++++++++++++++
5 files changed, 94 insertions(+), 0 deletions(-)
diffs (114 lines):
diff -r 31ae3d3a3e14 -r fa7384a8f4b5 sysutils/sredird/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sredird/DESCR Mon Mar 29 19:44:15 2004 +0000
@@ -0,0 +1,4 @@
+Sredird is a serial port redirector that is compliant with the RFC 2217
+"Telnet Com Port Control Option" protocol. This protocol lets you share
+a serial port through the network. RFC 2217 was orginally implemented
+in Cisco Terminal Servers in IOS version 11.x.
diff -r 31ae3d3a3e14 -r fa7384a8f4b5 sysutils/sredird/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sredird/Makefile Mon Mar 29 19:44:15 2004 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+#
+
+DISTNAME= sredird-2.0.0
+CATEGORIES= sysutils
+MASTER_SITES= http://www.pcmicro.com/sredird/
+
+MAINTAINER= tv%duh.org@localhost
+HOMEPAGE= http://www.pcmicro.com/sredird/
+COMMENT= RFC2217 compliant serial port redirector
+
+USE_BUILDLINK3= yes
+
+MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
+ALL_TARGET= sredird
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sredird ${PREFIX}/libexec/sredird
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sredird.README
+
+.include "../../mk/bsd.pkg.mk"
diff -r 31ae3d3a3e14 -r fa7384a8f4b5 sysutils/sredird/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sredird/PLIST Mon Mar 29 19:44:15 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+libexec/sredird
+share/doc/sredird.README
diff -r 31ae3d3a3e14 -r fa7384a8f4b5 sysutils/sredird/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sredird/distinfo Mon Mar 29 19:44:15 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+
+SHA1 (sredird-2.0.0.tar.gz) = 2eae6fb41b46ebf9f704dd997ef0a096e5084721
+Size (sredird-2.0.0.tar.gz) = 24053 bytes
+SHA1 (patch-aa) = 7300bf886b07e290f11cd7fae8792ddacf1a5634
diff -r 31ae3d3a3e14 -r fa7384a8f4b5 sysutils/sredird/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sredird/patches/patch-aa Mon Mar 29 19:44:15 2004 +0000
@@ -0,0 +1,61 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/29 19:44:15 tv Exp $
+
+--- sredird.c.orig Mon Jan 14 05:40:44 2002
++++ sredird.c
+@@ -82,9 +82,9 @@
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <termios.h>
+-#include <termio.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+ #include <netinet/tcp.h>
+
+@@ -658,8 +658,10 @@ unsigned long int GetPortSpeed(int PortF
+ return(115200UL);
+ case B230400:
+ return(230400UL);
++#ifdef B460800
+ case B460800:
+ return(460800UL);
++#endif
+ default:
+ return(0UL);
+ }
+@@ -1038,9 +1040,11 @@ void SetPortSpeed(int PortFd, unsigned l
+ case 230400UL:
+ Speed = B230400;
+ break;
++#ifdef B460800
+ case 460800UL:
+ Speed = B460800;
+ break;
++#endif
+ default:
+ LogMsg(LOG_WARNING,"Unknwon baud rate requested, setting to 9600.");
+ Speed = B9600;
+@@ -1770,7 +1774,8 @@ int main(int argc, char * argv[])
+ int SockParm;
+
+ /* Out buffer ticks count */
+- clock_t OutBTicks = times(NULL);
++ struct tms Tms;
++ clock_t OutBTicks = times(&Tms);
+
+ /* Out buffer clock ticks limit */
+ clock_t MaxBTicks;
+@@ -1907,10 +1912,10 @@ int main(int argc, char * argv[])
+ */
+ SockParm = IPTOS_LOWDELAY;
+ setsockopt(STDIN_FILENO,SOL_SOCKET,SO_KEEPALIVE,&SockParmEnable,sizeof(SockParmEnable));
+- setsockopt(STDIN_FILENO,SOL_IP,IP_TOS,&SockParm,sizeof(SockParm));
++ setsockopt(STDIN_FILENO,IPPROTO_IP,IP_TOS,&SockParm,sizeof(SockParm));
+ setsockopt(STDIN_FILENO,SOL_SOCKET,SO_OOBINLINE,&SockParmEnable,sizeof(SockParmEnable));
+ setsockopt(STDOUT_FILENO,SOL_SOCKET,SO_KEEPALIVE,&SockParmEnable,sizeof(SockParmEnable));
+- setsockopt(STDOUT_FILENO,SOL_IP,IP_TOS,&SockParm,sizeof(SockParm));
++ setsockopt(STDOUT_FILENO,IPPROTO_IP,IP_TOS,&SockParm,sizeof(SockParm));
+
+ /* Make reads/writes unblocking */
+ ioctl(STDOUT_FILENO,FIONBIO,&SockParmEnable);
Home |
Main Index |
Thread Index |
Old Index