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

5
sysutils/rtty/DESCR Normal file
View File

@@ -0,0 +1,5 @@
Rtty is "remote tty" (not radioteletype). You run a server per port
and then connect to that server from any number of "tip"/"cu"-like
clients. I wrote it for our console concentrator, but there's no
reason other than performance why you couldn't use it to drive modems,
printers, prom programmers, and so on.

35
sysutils/rtty/Makefile Normal file
View File

@@ -0,0 +1,35 @@
# $NetBSD: Makefile,v 1.29 2013/05/23 18:42:22 joerg Exp $
DISTNAME= rtty-3.2
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://gatekeeper.hpl.hp.com/archive/pub/misc/vixie/ \
ftp://gatekeeper.hpl.hp.com/pub/misc/vixie/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Multiuser "tip"/"cu" replacement with logging
WRKSRC= ${WRKDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
MAKE_ENV+= LIBS="-lcrypt"
.endif
pre-configure:
${CHMOD} u+w ${WRKDIR}/*
for f in `echo ${WRKDIR}/* | ${XARGS} ${GREP} -l '/usr/local'`; do \
${ECHO} patching $$f ; \
${SED} -e 's:/usr/local:${PREFIX}:g' $$f > $$f.pdone && ${MV} $$f.pdone $$f; \
done
cd ${WRKDIR} && \
${SED} -e '/^agelog=/s:/usr/etc/:${PREFIX}/rtty/bin/:' agelogs.sh >agelogs.sh.pdone && ${MV} agelogs.sh.pdone agelogs.sh
INSTALLATION_DIRS= share/doc/rtty
INSTALL_MAKE_FLAGS+= DESTROOT=${DESTDIR}
post-install:
${INSTALL_DATA} ${WRKDIR}/README ${DESTDIR}${PREFIX}/share/doc/rtty/
.include "../../mk/bsd.pkg.mk"

16
sysutils/rtty/PLIST Normal file
View File

@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 21:28:48 joerg Exp $
rtty/bin/ttysrv
rtty/bin/rtty
rtty/bin/locbrok
rtty/bin/Startup
rtty/bin/console
rtty/bin/startsrv
rtty/bin/agelogs
rtty/bin/agelog
share/doc/rtty/README
@comment rtty/bin created above
@pkgdir rtty/dev
@pkgdir rtty/sock
@pkgdir rtty/log
@pkgdir rtty/pid
@pkgdir rtty/opt

9
sysutils/rtty/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.4 2006/12/17 20:09:26 minskim Exp $
SHA1 (rtty-3.2.tar.gz) = 62587ee4eec0b551b2b38341f20fddebde1ee8a1
RMD160 (rtty-3.2.tar.gz) = 03863b5fbaf27a6f254c620e91c3dcd364df926a
Size (rtty-3.2.tar.gz) = 23445 bytes
SHA1 (patch-aa) = 347e1522c9f4a13f821799c17a8950421ec9170a
SHA1 (patch-ab) = 32644f9383ef43b45421fc100382509e2e6b2e34
SHA1 (patch-ac) = 8b1b1be9eb471f68d62b4454f9bd74dddb471d75
SHA1 (patch-ad) = dee546ca499fa4fb534f137d58fcbbb800b244d3

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-aa,v 1.4 2006/12/17 20:09:26 minskim Exp $
--- Makefile.orig 1996-08-23 23:46:42.000000000 +0000
+++ Makefile
@@ -23,7 +23,7 @@ DESTROOT =
DESTPATH = $(DESTROOT)/usr/local/rtty
DESTBIN = $(DESTPATH)/bin
-CC = cc
+CC = gcc
CDEBUG = -O -g
#
# use -U to undefine, -D to define
@@ -35,16 +35,25 @@ CDEBUG = -O -g
# NO_SOCKADDR_LEN if your "struct sockaddr_in" lacks a sin_len field
# NO_HSTRERROR if your C library has no hstrerror() function
#
-CDEFS = -DDEBUG -UWANT_TCPIP -UNEED_BITYPES_H -UNEED_STRDUP -UNEED_INET_ATON \
+CDEFS = -DDEBUG -UWANT_TCPIP -UNEED_BITYPES_H -UNEED_STRDUP \
-UNO_SOCKADDR_LEN -UNO_HSTRERROR
#
-CFLAGS = $(CDEBUG) $(CDEFS) -I/usr/local/include
-LIBS =
+CFLAGS+= $(CDEBUG) $(CDEFS)
+#LIBS =
#(if WANT_TCPIP defined and this isn't in your libc)
# -lresolv
#(if the resolver needs it, which BIND>=4.9's will on BSD>=4.4 systems)
# -l44bsd
+OPSYS!= uname -s
+
+.if ${OPSYS} == "NetBSD"
+CDEFS+= -UNEED_INET_ATON
+.elif ${OPSYS} == "SunOS"
+LIBS+= -lsocket -lnsl
+CDEFS+= -DNEED_INET_ATON
+.endif
+
BINARY = ttysrv rtty locbrok
SCRIPT = Startup console startsrv agelogs agelog
ALL = $(BINARY) $(SCRIPT)

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ab,v 1.1 1999/04/09 08:33:51 agc Exp $
Make this compile on Solaris.
--- ttysrv.c 1999/04/09 08:23:23 1.1
+++ ttysrv.c 1999/04/09 08:24:08
@@ -40,6 +40,9 @@
#include <string.h>
#include <netdb.h>
#include <pwd.h>
+#if (defined(__sun__) && defined(__svr4__))
+#include <fcntl.h>
+#endif
#include "rtty.h"
#ifdef NEED_BITYPES_H

View File

@@ -0,0 +1,53 @@
$NetBSD: patch-ac,v 1.3 2000/08/02 17:33:45 thorpej Exp $
Make this compile on Solaris.
Fix a bug where rtty would loop forever if its parent process
(such as a shell) were to die and close rtty's standard input.
--- rtty.c.orig Fri Aug 23 15:25:28 1996
+++ rtty.c Wed Aug 2 10:25:30 2000
@@ -35,6 +35,10 @@
#include <pwd.h>
#include <termios.h>
+#if (defined(__sun__) && defined(__svr4__))
+#include <fcntl.h>
+#endif
+
#include "rtty.h"
#ifdef NEED_BITYPES_H
# include "bitypes.h"
@@ -266,13 +270,16 @@
static void
tty_input(fd) {
static enum {base, need_cr, tilde} state = base;
+ ssize_t cnt;
+ int readone = 0;
u_char buf[1];
#if 0
fcntl(Tty, F_SETFL, fcntl(Tty, F_GETFL, 0)|O_NONBLOCK);
#endif
- while (1 == read(fd, buf, 1)) {
+ while (1 == (cnt = read(fd, buf, 1))) {
u_char ch = buf[0];
+ readone = 1;
switch (state) {
case base:
@@ -346,6 +353,14 @@
write(Log, buf, 1);
}
}
+
+ if (readone == 0 && cnt == 0) {
+ /*
+ * True EOF -- get out now rather than loop forever.
+ */
+ quit(0);
+ }
+
#if 0
fcntl(Tty, F_SETFL, fcntl(Tty, F_GETFL, 0)&~O_NONBLOCK);
#endif

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.1 2000/06/13 22:20:43 thorpej Exp $
--- startsrv.sh.orig Tue Jun 13 15:15:33 2000
+++ startsrv.sh Tue Jun 13 15:16:44 2000
@@ -19,7 +19,7 @@
default_options='-b 9600 -w 8 -p none'
default_sock_prot='ug=rw,o='
-default_sock_owner='root.system'
+default_sock_owner='root:operator'
default_log_prot='u=rw,g=r,o='
for host