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

16
comms/conserver8/DESCR Normal file
View File

@@ -0,0 +1,16 @@
Conserver is an application that allows multiple users to watch a
serial console at the same time. It can log the data, allows users
to take write-access of a console (one at a time), and has a variety
of bells and whistles to accentuate that basic functionality.
The idea is that conserver will log all your serial traffic so you
can go back and review why something crashed, look at changes (if
done on the console), or tie the console logs into a monitoring
system (just watch the logfiles it creates).
With multi-user capabilities you can work on equipment with others,
mentor, train, etc.
It also does all that client-server stuff so that, assuming you
have a network connection, you can interact with any of the equipment
from home or wherever.

22
comms/conserver8/MESSAGE Normal file
View File

@@ -0,0 +1,22 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2006/05/11 21:42:43 seb Exp $
NB: The console command from versions of conserver prior to 8 does not
interoperate with conserver version 8.
The config file formats have changed from version 7.x.x of
conserver.
For instruction on how to convert your configurtion files from conserver
version 7.x.x see ${PREFIX}/share/doc/conserver/INSTALL.
The "convert" program was installed as ${PREFIX}/lib/conserver/convert.
Briefly:
mv ${PKG_SYSCONFDIR}/conserver.cf ${PKG_SYSCONFDIR}/conserver.cf-7
mv ${PKG_SYSCONFDIR}/conserver.passwd ${PKG_SYSCONFDIR}/conserver.passwd-7
${PREFIX}/lib/conserver/convert ${PKG_SYSCONFDIR}/conserver.cf-7 >\
${PKG_SYSCONFDIR}/conserver.cf
awk -F: '{print $1 ":" $2}' < ${PKG_SYSCONFDIR}/conserver.passwd-7 > \
${PKG_SYSCONFDIR}/conserver.passwd
===========================================================================

56
comms/conserver8/Makefile Normal file
View File

@@ -0,0 +1,56 @@
# $NetBSD: Makefile,v 1.12 2013/02/06 23:21:50 jperkin Exp $
#
PKGVER= 8.1.18
DISTNAME= conserver-${PKGVER}
PKGNAME= conserver8-${PKGVER}
#PKGREVISION= 1
PKGREVISION= 1
CATEGORIES= comms
MASTER_SITES= http://www.conserver.com/
MAINTAINER= awrede@users.sourceforge.net
HOMEPAGE= http://www.conserver.com/
COMMENT= Application that allows multiple users to watch serial consoles
CONFLICTS= conserver-[0-9]*
INSTALLATION_DIRS= ${EGDIR} ${DOCDIR}
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-master=${CONSERVER_DEFAULTHOST:Q}
CONFIGURE_ARGS+= --with-port=${CONSERVER_DEFAULTPORT:Q}
CONFIGURE_ARGS+= --with-regex
CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ARGS+= --with-logfile=${VARBASE:Q}/log/conserver
.include "options.mk"
BUILD_DEFS+= CONSERVER_DEFAULTPORT CONSERVER_DEFAULTHOST VARBASE
RCD_SCRIPTS= conserver8
TEST_TARGET= test
DOCDIR= ${PREFIX}/share/doc/conserver
EGDIR= ${PREFIX}/share/examples/conserver
CONF_FILES= ${EGDIR}/conserver.cf ${PKG_SYSCONFDIR}/conserver.cf
CONF_FILES+= ${EGDIR}/conserver.passwd ${PKG_SYSCONFDIR}/conserver.passwd
OWN_DIRS= ${VARBASE}/consoles
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= conserver.cf/conserver.cf
SUBST_SED.conf= -e "s,/var/consoles,${VARBASE}/consoles,"
post-install:
set -e; for File in INSTALL README PROTOCOL; do \
${INSTALL_DATA} ${WRKSRC}/$${File} ${DESTDIR}${DOCDIR}/$${File}; \
done
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

15
comms/conserver8/PLIST Normal file
View File

@@ -0,0 +1,15 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:38:39 joerg Exp $
bin/console
lib/conserver/convert
man/man1/console.1
man/man5/conserver.cf.5
man/man5/conserver.passwd.5
man/man8/conserver.8
sbin/conserver
share/doc/conserver/INSTALL
share/doc/conserver/PROTOCOL
share/doc/conserver/README
share/examples/conserver/conserver.cf
share/examples/conserver/conserver.passwd
share/examples/conserver/conserver.rc
share/examples/rc.d/conserver8

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2010/12/05 21:25:55 hauke Exp $
SHA1 (conserver-8.1.18.tar.gz) = 54336e8ce7f48a2d8d51e93f4df492b3e426a192
RMD160 (conserver-8.1.18.tar.gz) = aad60ba5aa8d2860dd4fde505c93b6bf2c118002
Size (conserver-8.1.18.tar.gz) = 323247 bytes
SHA1 (patch-aa) = d0eebea0d126c611f6f60035730a0c2f97280b01
SHA1 (patch-ab) = 7a507e428277cc6ccf14b961c44d4e6fd3abcde3

View File

@@ -0,0 +1,29 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: conserver8.sh,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $
#
# PROVIDE: conserver
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="conserver"
rcvar=${name}8
command="@PREFIX@/sbin/${name}"
required_files="@PKG_SYSCONFDIR@/conserver.cf"
pidfile="/var/run/conserver.pid"
command_args="-d" # _must_ start as daemon from rc.d;
# add more flags through ${${name}_flags}
extra_commands="reload status"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n ' ${name}'
${command} ${conserver_flags} ${command_args}
fi

View File

@@ -0,0 +1,23 @@
# $NetBSD: options.mk,v 1.1 2009/06/14 07:52:51 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.conserver8
PKG_SUPPORTED_OPTIONS= pam ssl uds
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --with-pam
.endif
.if !empty(PKG_OPTIONS:Muds)
CONFIGURE_ARGS+= --with-uds
.endif
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
. include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-openssl
.endif

View File

@@ -0,0 +1,34 @@
$NetBSD: patch-aa,v 1.2 2006/05/11 21:42:43 seb Exp $
--- conserver/main.c.orig 2006-04-03 09:32:08.000000000 -0400
+++ conserver/main.c 2006-05-07 22:24:26.000000000 -0400
@@ -463,7 +463,9 @@
int td;
#endif
+#if 0
Msg("daemonizing");
+#endif
SimpleSignal(SIGQUIT, SIG_IGN);
SimpleSignal(SIGINT, SIG_IGN);
#if defined(SIGTTOU)
@@ -1284,7 +1286,9 @@
Bye(EX_OK);
}
+#if 0
Msg(MyVersion());
+#endif
#if HAVE_GETLOGIN
origuser = getlogin();
@@ -1311,7 +1315,9 @@
BuildStringPrint(startedMsg, "started as `%s' by `%s'", curuser,
(origuser == (char *)0) ? curuser : origuser);
endpwent();
+#if 0
Msg("%s", startedMsg->string);
+#endif
#if HAVE_GETSPNAM && !HAVE_PAM
if (!fSyntaxOnly && (geteuid() != 0)) {

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-ab,v 1.1 2005/08/12 14:39:06 he Exp $
--- conserver.cf/conserver.cf.man.orig 2004-11-06 01:20:30.000000000 +0100
+++ conserver.cf/conserver.cf.man
@@ -271,7 +271,30 @@ is ``and''ed with 0x1f)
.PD
.RE
.RE
+.sp
+For consoles accessed using the telnet protocol, the \f3\ez\fP
+sequence will be translated to the telnet protocol's ``send break''
+protocol sequence.
+.sp
+Conserver provides the following predefined default break strings:
+.RS
+.sp
+.PD 0
+.TP
+\f30\fP
+\ez
+.TP
+\f31\fP
+\er~^b
+.TP
+\f32\fP
+#.
+.TP
+\f33\fP
+\er\ed~\ed^b (with 600ms delay)
.RE
+.RE
+.sp
.TP
\f3config\fP \f2hostname\fP|\f2ipaddr\fP
.br