mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
Adding sredird version 1.1.7
An RFC 2217 compliant serial port redirector. PR: 15603 Submitted by: Maxim Sobolev <sobomax@altavista.net>
This commit is contained in:
parent
8093fcc11c
commit
4249db21f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24127
@ -16,6 +16,7 @@
|
||||
SUBDIR += rzsz
|
||||
SUBDIR += seyon
|
||||
SUBDIR += snooper
|
||||
SUBDIR += sredird
|
||||
SUBDIR += tkhylafax
|
||||
SUBDIR += viewfax
|
||||
SUBDIR += xcept
|
||||
|
26
comms/sredird/Makefile
Normal file
26
comms/sredird/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# New ports collection makefile for: sredird
|
||||
# Version required: 1.1.7
|
||||
# Date created: 19 Dec 1999
|
||||
# Whom: Maxim Sobolev <sobomax@altavista.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
DISTNAME= sredird-1.1.7
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://metalab.unc.edu/pub/Linux/system/serial/
|
||||
|
||||
MAINTAINER= sobomax@altavista.net
|
||||
|
||||
do-build:
|
||||
${CC} ${CFLAGS} -g -Wall -o ${WRKSRC}/sredird ${WRKSRC}/sredird.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/sredird ${PREFIX}/libexec
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/sredird
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/sredird
|
||||
${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/sredird
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
comms/sredird/distinfo
Normal file
1
comms/sredird/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (sredird-1.1.7.tar.gz) = 4daa974b620ae1cf1dad80e295dcdef5
|
54
comms/sredird/files/patch-aa
Normal file
54
comms/sredird/files/patch-aa
Normal file
@ -0,0 +1,54 @@
|
||||
--- sredird.c.orig Mon Sep 20 15:26:54 1999
|
||||
+++ sredird.c Tue Dec 21 11:02:48 1999
|
||||
@@ -43,7 +43,12 @@
|
||||
#include <fcntl.h>
|
||||
#include <syslog.h>
|
||||
#include <termios.h>
|
||||
-#include <termio.h>
|
||||
+#ifndef __FreeBSD__ /* FreeBSD */
|
||||
+#include <termio.h> /* Doesn't exist on FreeBSD */
|
||||
+#else
|
||||
+#include <netdb.h> /* Necessary for getprotobyname(3) function */
|
||||
+#include <netinet/in_systm.h> /* Reqired for netinet/ip.h */
|
||||
+#endif /* FreeBSD */
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ip.h>
|
||||
@@ -129,6 +134,14 @@
|
||||
/* Default modem state polling in milliseconds (100 msec should be enough) */
|
||||
#define ModemStatePolling 100
|
||||
|
||||
+/* FreeBSD specific definitions */
|
||||
+#ifdef __FreeBSD__ /* FreeBSD */
|
||||
+struct tms mytms;
|
||||
+#define times(NULL) times(&mytms) /* Coz times(NULL) coredumps on FreeBSD */
|
||||
+#define SOL_TCP getprotobyname("TCP")->p_proto /* SOL_TCP and SOL_IP undefined */
|
||||
+#define SOL_IP getprotobyname("IP")->p_proto /* on FreeBSD */
|
||||
+#endif /* FreeBSD */
|
||||
+
|
||||
/* Standard boolean definition */
|
||||
typedef enum { False, True } Boolean;
|
||||
|
||||
@@ -571,8 +584,10 @@
|
||||
return(115200UL);
|
||||
case B230400:
|
||||
return(230400UL);
|
||||
+#ifndef __FreeBSD__ /* Sadly, but FreeBSD doesn't support rates > 230K */
|
||||
case B460800:
|
||||
return(460800UL);
|
||||
+#endif
|
||||
default:
|
||||
return(0UL);
|
||||
}
|
||||
@@ -954,9 +969,11 @@
|
||||
case 230400UL:
|
||||
Speed = B230400;
|
||||
break;
|
||||
+#ifndef __FreeBSD__
|
||||
case 460800UL:
|
||||
Speed = B460800;
|
||||
break;
|
||||
+#endif
|
||||
default:
|
||||
LogMsg(LOG_WARNING,"Unknwon baud rate requested. Setting to 38400");
|
||||
Speed = B38400;
|
11
comms/sredird/files/patch-ab
Normal file
11
comms/sredird/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- README.orig Tue Dec 21 10:49:33 1999
|
||||
+++ README Tue Dec 21 10:50:59 1999
|
||||
@@ -80,7 +80,7 @@
|
||||
Sredird is designed to run under inetd control. The line in the inetd
|
||||
configuration file (usually /etc/inetd.conf) should look like this:
|
||||
|
||||
-sredir stream tcp nowait root /usr/sbin/tcpd /usr/sbin/sredird 5 /dev/modem /var/lock/LCK..modem
|
||||
+sredir stream tcp nowait root /usr/local/libexec/sredird sredird 5 /dev/cuaa0 /var/spool/lock/LCK..cuaa0
|
||||
|
||||
Of course, "sredir" should be defined in the services file (usually
|
||||
/etc/services, usual values start at port 7000) and "/dev/modem" should
|
1
comms/sredird/pkg-comment
Normal file
1
comms/sredird/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
RFC 2217 compliant serial port redirector
|
11
comms/sredird/pkg-descr
Normal file
11
comms/sredird/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
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. The only known RFC 2217 aware client
|
||||
is DialOut/IP V2, which is a Windows 95/98/NT client. For more
|
||||
information on it look at www.tacticalsoftware.com. Anyone interested in
|
||||
writing a client and who may need help with the RFC 2217 protocol could
|
||||
contact author of sredird. Information on RFC 2217 and the Telnet Protocol
|
||||
is available at www.ietf.org.
|
||||
|
||||
- Maxim Sobolev
|
||||
sobomax@altavista.net
|
4
comms/sredird/pkg-plist
Normal file
4
comms/sredird/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
libexec/sredird
|
||||
share/doc/sredird/README
|
||||
share/doc/sredird/COPYING
|
||||
@dirrm share/doc/sredird
|
Loading…
Reference in New Issue
Block a user