Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+8
View File
@@ -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.
+33
View File
@@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.25 2012/10/23 19:51:26 asau Exp $
#
DISTNAME= tits-1.2.2
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.mctavish.co.uk/tits/
MAINTAINER= scw@NetBSD.org
HOMEPAGE= http://www.mctavish.co.uk/tits/
COMMENT= Server which provides telnet(1) access to one or more tty ports
LICENSE= original-bsd
USE_BSD_MAKEFILE= yes
RCD_SCRIPTS= tits
INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${PKGMANDIR}/cat8 sbin \
share/examples/rc.d
INSTALL_MAKE_FLAGS+= BINDIR=${PREFIX}/sbin
post-patch:
${MV} ${WRKSRC}/tits.8 ${WRKSRC}/tits.8.in
${SED} -e 's|/usr/local/etc|${PKG_SYSCONFDIR}|g' \
-e 's|/usr/local|${PREFIX}|g' \
${WRKSRC}/tits.8.in > ${WRKSRC}/tits.8
post-install:
${INSTALL_DATA} ${WRKSRC}/tits.conf ${DESTDIR}${PREFIX}/share/examples/
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+6
View File
@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.4 2011/01/10 12:22:53 obache Exp $
man/cat8/tits.0
man/man8/tits.8
sbin/tits
share/examples/rc.d/tits
share/examples/tits.conf
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.10 2011/01/10 12:47:03 obache Exp $
SHA1 (tits-1.2.2.tar.gz) = 18c80cc4d814af1b60d8b75e9777bcb7f8b8a8b8
RMD160 (tits-1.2.2.tar.gz) = 1628dcf16cd5cf9f559a353024c69aef6a396856
Size (tits-1.2.2.tar.gz) = 25384 bytes
SHA1 (patch-aa) = 6b8915971eb67c2413c84d23e65bbd66a0a9d968
SHA1 (patch-af) = f5c143a1231ed6615ee2bfb7ba24390e3d76ffe8
SHA1 (patch-ag) = 7e5705207aa9c4fe8ecc765c393b7c67197033f7
+25
View File
@@ -0,0 +1,25 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: tits.sh,v 1.1 2006/05/18 15:45:09 gavan Exp $
#
# PROVIDE: tits
# REQUIRE: DAEMON
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="tits"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@PKG_SYSCONFDIR@/tits.conf"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${tits_flags}
fi
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.5 2011/01/10 12:17:43 obache Exp $
* for the case of ${PKG_SYSCONFDIR} != ${LOCALBASE}/etc
--- Makefile.orig 2006-03-19 11:32:58.000000000 +0000
+++ Makefile 2006-09-19 14:10:20.000000000 +0100
@@ -37,7 +37,7 @@
SRCS= main.c buffer.c client.c context.c listener.c masterpty.c telnet.c
SRCS+= tty.c dispatcher.c setup.c config.c server.c logger.c stdio2pty.c
-CPPFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${LOCALBASE}/etc/tits.conf\"
+CPPFLAGS+= -DLIBWRAP -DTITS_DEFAULT_CONFIG_FILE=\"${PKG_SYSCONFDIR}/tits.conf\"
CPPFLAGS+= -DTITS_DEFAULT_LINKDIR=\"/var/run\"
LDADD+= -lwrap
PREFIX?= /usr/local
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-af,v 1.1 2011/01/10 12:47:03 obache Exp $
* ignore WALLSIG if not exists.
--- stdio2pty.c.orig 2004-09-12 19:20:28.000000000 +0000
+++ stdio2pty.c
@@ -18,6 +18,10 @@
#define MAX_BUFF_LEN 32768
+#ifndef WALLSIG
+#define WALLSIG 0
+#endif
+
static int all_done, exit_status, child_pid;
static struct buffer_ctx *stdout_buff;
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-ag,v 1.1 2011/01/10 12:47:03 obache Exp $
* only for TIOCGFLAGS avalilable.
--- tty.c.orig 2006-03-19 11:32:48.000000000 +0000
+++ tty.c
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <sys/filio.h>
#include <sys/ioctl.h>
+#include <sys/stat.h>
#include <assert.h>
#include <ctype.h>
@@ -318,7 +319,9 @@ tty_open_device(struct client_ctx *cc)
{
struct tty_ctx *tc = cc->cc_data;
struct termios tent;
+#ifdef TIOCGFLAGS
int flags;
+#endif
int fd, fd2;
if (tc->tc_open)
@@ -369,7 +372,11 @@ tty_open_device(struct client_ctx *cc)
* If this is *not* a pseudo tty, ensure DTR is asserted.
* Note: This relies on TIOCGFLAGS returning ENOTTY for pty(4)'s.
*/
+#ifdef TIOCGFLAGS
if (ioctl(fd, TIOCGFLAGS, &flags) == 0 && errno == ENOTTY &&
+#else
+ if (
+#endif
ioctl(fd, TIOCSDTR, 0) < 0) {
syslog(LOG_ALERT, "tty_open_device(): assert DTR failed (%d)",
errno);