aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-04-18 23:32:59 +0800
committersobomax <sobomax@FreeBSD.org>2001-04-18 23:32:59 +0800
commite3c5191c82a4940702822364d1e61bf121b78240 (patch)
treede3322e82d9ffe5c3816f961cb725dad2d3a2654
parent03797dc63eea96d4053d699df79b14408f424135 (diff)
downloadfreebsd-ports-graphics-e3c5191c82a4940702822364d1e61bf121b78240.tar.gz
freebsd-ports-graphics-e3c5191c82a4940702822364d1e61bf121b78240.tar.zst
freebsd-ports-graphics-e3c5191c82a4940702822364d1e61bf121b78240.zip
Add tits 1.0.2, a server which provides telnet(1) access to one or
more tty ports. Obtained from: NetBSD
-rw-r--r--comms/Makefile1
-rw-r--r--comms/tits/Makefile29
-rw-r--r--comms/tits/distinfo1
-rw-r--r--comms/tits/files/patch-Makefile20
-rw-r--r--comms/tits/files/patch-dispatcher.h14
-rw-r--r--comms/tits/files/patch-tty.c23
-rw-r--r--comms/tits/pkg-comment1
-rw-r--r--comms/tits/pkg-descr8
-rw-r--r--comms/tits/pkg-plist2
9 files changed, 99 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index d01fe27e79e..b81e58d9a26 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -24,6 +24,7 @@
SUBDIR += sms_client
SUBDIR += snooper
SUBDIR += sredird
+ SUBDIR += tits
SUBDIR += tkhylafax
SUBDIR += viewfax
SUBDIR += vpb2
diff --git a/comms/tits/Makefile b/comms/tits/Makefile
new file mode 100644
index 00000000000..8a4b5d020b1
--- /dev/null
+++ b/comms/tits/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: tits
+# Date created: 9 February 2001
+# Whom: Steve Woodford <scw@netbsd.hut.fi>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tits
+PORTVERSION= 1.0.2
+CATEGORIES= comms
+MASTER_SITES= http://www.wee-eck.demon.co.uk/tits/
+
+MAINTAINER= ports@FreeBSD.org
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man/man
+MAKE_ENV= BINDIR=${BINDIR} MANDIR=${MANDIR}
+
+MAN8= tits.8
+MANCOMPRESSED= yes
+
+post-patch:
+ ${MV} ${WRKSRC}/tits.8 ${WRKSRC}/tits.8.in
+ ${SED} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/tits.8.in > ${WRKSRC}/tits.8
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/tits.conf ${PREFIX}/etc/tits.conf.default
+
+.include <bsd.port.mk>
diff --git a/comms/tits/distinfo b/comms/tits/distinfo
new file mode 100644
index 00000000000..41486630822
--- /dev/null
+++ b/comms/tits/distinfo
@@ -0,0 +1 @@
+MD5 (tits-1.0.2.tar.gz) = 7166ba3d897242d74034c2f4a37e2916
diff --git a/comms/tits/files/patch-Makefile b/comms/tits/files/patch-Makefile
new file mode 100644
index 00000000000..9a6d57db914
--- /dev/null
+++ b/comms/tits/files/patch-Makefile
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- Makefile.orig Tue Feb 20 22:27:21 2001
++++ Makefile Wed Apr 18 18:29:23 2001
+@@ -32,12 +32,12 @@
+ WARNS= 2
+
+ PROG= tits
+-MAN= tits.8
++MAN8= tits.8
+
+ SRCS= main.c buffer.c client.c context.c listener.c telnet.c tty.c
+ SRCS+= dispatcher.c setup.c config.c server.c logger.c
+
+-CPPFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\"
++CFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\"
+ LDADD+= -lwrap
+ PREFIX?= /usr/local
+ BINDIR?= ${PREFIX}/sbin
diff --git a/comms/tits/files/patch-dispatcher.h b/comms/tits/files/patch-dispatcher.h
new file mode 100644
index 00000000000..cbf7fc094f0
--- /dev/null
+++ b/comms/tits/files/patch-dispatcher.h
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- dispatcher.h 2001/04/18 14:50:37 1.1
++++ dispatcher.h 2001/04/18 14:51:57
+@@ -43,4 +43,8 @@
+ extern void dispatcher_del_client(struct client_ctx *);
+ extern int dispatcher_mainloop(void);
+
++#ifdef __FreeBSD__
++typedef unsigned int nfds_t;
++#endif
++
+ #endif /* __dispatcher_h */
diff --git a/comms/tits/files/patch-tty.c b/comms/tits/files/patch-tty.c
new file mode 100644
index 00000000000..3d7ba33635b
--- /dev/null
+++ b/comms/tits/files/patch-tty.c
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- tty.c 2001/04/18 14:43:52 1.1
++++ tty.c 2001/04/18 14:45:57
+@@ -32,6 +32,7 @@
+ #include <sys/types.h>
+ #include <sys/filio.h>
+ #include <sys/ioctl.h>
++#include <sys/stat.h>
+ #include <sys/types.h>
+
+ #include <ctype.h>
+@@ -216,8 +217,7 @@
+ * If this is *not* a pseudo tty, ensure DTR is asserted.
+ * Note: This relies on TIOCGFLAGS returning ENOTTY for pty(4)'s.
+ */
+- if (ioctl(cc->cc_fd, TIOCGFLAGS, &flags) == 0 && errno == ENOTTY &&
+- ioctl(cc->cc_fd, TIOCSDTR, 0) < 0) {
++ if (ioctl(cc->cc_fd, TIOCSDTR, 0) < 0 && errno != ENOTTY) {
+ (void) close(cc->cc_fd);
+ (void) free(tc->tc_to.to_device);
+ (void) free(tc);
diff --git a/comms/tits/pkg-comment b/comms/tits/pkg-comment
new file mode 100644
index 00000000000..375674579d1
--- /dev/null
+++ b/comms/tits/pkg-comment
@@ -0,0 +1 @@
+A server which provides telnet(1) access to one or more tty ports
diff --git a/comms/tits/pkg-descr b/comms/tits/pkg-descr
new file mode 100644
index 00000000000..919f6cb9b91
--- /dev/null
+++ b/comms/tits/pkg-descr
@@ -0,0 +1,8 @@
+The tits command is a server process which provides telnet(1) access
+to one or more tty ports as specified in config-file (or
+/etc/tits.conf if no configuration file is specified on the command
+line).
+
+Any number of telnet(1) clients may connect to a single tits port.
+Each client will see exactly the same output as well as being able to
+send keystrokes simultaneously.
diff --git a/comms/tits/pkg-plist b/comms/tits/pkg-plist
new file mode 100644
index 00000000000..b9b1ac3fc88
--- /dev/null
+++ b/comms/tits/pkg-plist
@@ -0,0 +1,2 @@
+etc/tits.conf.default
+sbin/tits