diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-09-04 09:26:10 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-09-04 09:26:10 +0000 |
commit | 93e7abf2c3880fa19d6b8cfe5ee376adbe38517f (patch) | |
tree | 338c1620060173b01721c2736661da9d21ac1983 /comms/ser2net | |
parent | Reset inactive maintainer who has not responded to email. (diff) |
Add port comms/ser2net:
This is ser2net, a program for allowing network connections to serial
ports. See the man page for information about using the program.
Note that ser2net supports RFC 2217 (remote control of serial port
parameters), but you must have a complient client. The only one I
know if is kermit (http://www.columbia.edu/kermit).
WWW: http://www.sourceforge.net/projects/ser2net/
Submitted by: Devon H. O'Dell <devon.odell@coyotepoint.com>
Notes
Notes:
svn path=/head/; revision=172163
Diffstat (limited to 'comms/ser2net')
-rw-r--r-- | comms/ser2net/Makefile | 28 | ||||
-rw-r--r-- | comms/ser2net/distinfo | 3 | ||||
-rw-r--r-- | comms/ser2net/files/patch-ser2net.conf | 37 | ||||
-rw-r--r-- | comms/ser2net/files/patch-utils.c | 10 | ||||
-rw-r--r-- | comms/ser2net/files/ser2net.in | 25 | ||||
-rw-r--r-- | comms/ser2net/pkg-descr | 8 |
6 files changed, 111 insertions, 0 deletions
diff --git a/comms/ser2net/Makefile b/comms/ser2net/Makefile new file mode 100644 index 000000000000..d4b9ae964824 --- /dev/null +++ b/comms/ser2net/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: serialoverip +# Date created: 3 September 2006 +# Whom: Devon H. O'Dell <devon.odell@coyotepoint.com> +# +# $FreeBSD$ +# + +PORTNAME= ser2net +PORTVERSION= 2.3 +CATEGORIES= comms net +MASTER_SITES= SF + +MAINTAINER= devon.odell@coyotepoint.com +COMMENT= Allows to access serial ports over IP + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --without-uucp-locking +MAN8= ${PORTNAME}.8 +PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample +USE_RC_SUBR= ${PORTNAME} + +post-patch: + @${REINPLACE_CMD} -e's!/etc!${PREFIX}/etc!g' ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/${PORTNAME}.8 + +post-install: + @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample + +.include <bsd.port.mk> diff --git a/comms/ser2net/distinfo b/comms/ser2net/distinfo new file mode 100644 index 000000000000..11f460edeed0 --- /dev/null +++ b/comms/ser2net/distinfo @@ -0,0 +1,3 @@ +MD5 (ser2net-2.3.tar.gz) = 5f83a3e8aec18331cb61069dccdfba47 +SHA256 (ser2net-2.3.tar.gz) = 2b5dfdd457f31bd2eec9afc8ed2873bd40b2d6f3cb9ff7275dd9384218b01734 +SIZE (ser2net-2.3.tar.gz) = 303997 diff --git a/comms/ser2net/files/patch-ser2net.conf b/comms/ser2net/files/patch-ser2net.conf new file mode 100644 index 000000000000..6ea46cf36219 --- /dev/null +++ b/comms/ser2net/files/patch-ser2net.conf @@ -0,0 +1,37 @@ +--- ser2net.conf.old Sun Sep 3 16:41:58 2006 ++++ ser2net.conf Sun Sep 3 16:42:58 2006 +@@ -69,19 +69,19 @@ + + BANNER:banner3:this is ser2net TCP port \p device \d serial parms \s\r\n + +-2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS +-#2002:raw:600:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS +-2003:raw:5:/dev/ttyS2:9600 +-2004:raw:5:/dev/ttyS3:115200 +-2005:raw:5:/dev/ttyS4:9600 +-2006:raw:5:/dev/ttyS5:9600 +-2007:raw:5:/dev/ttyS6:9600 +-3001:telnet:0:/dev/ttyS0:19200 remctl banner1 +-3011:telnet:3:/dev/ttyS0:19200 banner2 +-#3002:telnet:0:/dev/ttyS1:9600 +-3003:telnet:0:/dev/ttyS2:9600 banner3 +-3004:telnet:0:/dev/ttyS3:115200 +-3005:telnet:0:/dev/ttyS4:9600 +-3006:telnet:0:/dev/ttyS5:9600 +-3007:telnet:0:/dev/ttyS6:9600 ++2001:raw:600:/dev/cuad0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS ++#2002:raw:600:/dev/cuad1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS ++2003:raw:5:/dev/cuad2:9600 ++2004:raw:5:/dev/cuad3:115200 ++2005:raw:5:/dev/cuad4:9600 ++2006:raw:5:/dev/cuad5:9600 ++2007:raw:5:/dev/cuad6:9600 ++3001:telnet:0:/dev/cuad0:19200 remctl banner1 ++3011:telnet:3:/dev/cuad0:19200 banner2 ++#3002:telnet:0:/dev/cuad1:9600 ++3003:telnet:0:/dev/cuad2:9600 banner3 ++3004:telnet:0:/dev/cuad3:115200 ++3005:telnet:0:/dev/cuad4:9600 ++3006:telnet:0:/dev/cuad5:9600 ++3007:telnet:0:/dev/cuad6:9600 + 5001:rawlp:10:/dev/lp0 diff --git a/comms/ser2net/files/patch-utils.c b/comms/ser2net/files/patch-utils.c new file mode 100644 index 000000000000..523215deec97 --- /dev/null +++ b/comms/ser2net/files/patch-utils.c @@ -0,0 +1,10 @@ +--- utils.c.old Sun Sep 3 16:39:48 2006 ++++ utils.c Sun Sep 3 16:39:56 2006 +@@ -21,6 +21,7 @@ + + #include <string.h> + #include <netdb.h> ++#include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <arpa/inet.h> diff --git a/comms/ser2net/files/ser2net.in b/comms/ser2net/files/ser2net.in new file mode 100644 index 000000000000..b722015fc4a9 --- /dev/null +++ b/comms/ser2net/files/ser2net.in @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ser2net +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +. %%RC_SUBR%% + +name="ser2net" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/ser2net" + +load_rc_config $name +: ${ser2net_enable="NO"} +: ${ser2net_flags=""} +: ${ser2net_pidfile="/var/run/ser2net.pid"} + +start_cmd="/usr/sbin/daemon -p ${ser2net_pidfile} $command $rc_flags $command_args" +stop_postcmd="rm -f /var/lock/subsys/ser2net" + +run_rc_command "$1" diff --git a/comms/ser2net/pkg-descr b/comms/ser2net/pkg-descr new file mode 100644 index 000000000000..d0c6475ddf47 --- /dev/null +++ b/comms/ser2net/pkg-descr @@ -0,0 +1,8 @@ +This is ser2net, a program for allowing network connections to serial +ports. See the man page for information about using the program. + +Note that ser2net supports RFC 2217 (remote control of serial port +parameters), but you must have a complient client. The only one I +know if is kermit (http://www.columbia.edu/kermit). + +WWW: http://www.sourceforge.net/projects/ser2net/ |