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
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.
+49
View File
@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.25 2012/10/03 11:24:39 asau Exp $
#
DISTNAME= conserver-7.2.7
PKGREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://www.conserver.com/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.conserver.com/
COMMENT= Application that allows multiple users to watch serial consoles
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
CONFLICTS+= conserver8-[0-9]*
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
CONFIGURE_ARGS+= --with-logfile=${VARBASE}/log/conserver
.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 || \
${MACHINE_ARCH} == x86_64
CONFIGURE_ARGS+= --with-64bit
.endif
BUILD_DEFS+= CONSERVER_DEFAULTPORT CONSERVER_DEFAULTHOST
RCD_SCRIPTS= conserver
TEST_TARGET= test
EGDIR= ${PREFIX}/share/examples/conserver
CONF_FILES= ${EGDIR}/conserver.cf.example ${PKG_SYSCONFDIR}/conserver.cf
CONF_FILES+= ${EGDIR}/conserver.passwd.example ${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,
INSTALLATION_DIRS+= ${EGDIR}
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+10
View File
@@ -0,0 +1,10 @@
@comment $NetBSD: PLIST,v 1.7 2009/06/14 17:38:38 joerg Exp $
bin/console
man/man1/console.1
man/man5/conserver.cf.5
man/man5/conserver.passwd.5
man/man8/conserver.8
sbin/conserver
share/examples/conserver/conserver.cf.example
share/examples/conserver/conserver.passwd.example
share/examples/rc.d/conserver
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.7 2010/08/02 07:05:09 wiz Exp $
SHA1 (conserver-7.2.7.tar.gz) = e2dfe0d95ceab0e6c2db38161f540ec537d96132
RMD160 (conserver-7.2.7.tar.gz) = 67fe555779293232933b30eea2efd5fcd86b6ea2
Size (conserver-7.2.7.tar.gz) = 200861 bytes
SHA1 (patch-aa) = 01ab5e3430137e72b786164026785f91295232d4
SHA1 (patch-ab) = 79125fed0be843528dd208664b90323cb23b9e8d
SHA1 (patch-ac) = 45fb5253032347961f123ad9a75b72f7c2f15a2b
+29
View File
@@ -0,0 +1,29 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: conserver.sh,v 1.5 2007/05/19 14:05:03 wiz Exp $
#
# PROVIDE: conserver
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="conserver"
rcvar=$name
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"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n ' ${name}'
${command} ${conserver_flags} ${command_args}
fi
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
--- conserver/Makefile.in.orig Wed May 8 14:04:24 2002
+++ conserver/Makefile.in
@@ -53,7 +53,5 @@
$(INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir)
$(MKDIR) $(DESTDIR)$(mandir)/man8
$(INSTALL) conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
- $(MKDIR) $(DESTDIR)$(sysconfdir)
- [ -f $(DESTDIR)$(sysconfdir)/conserver.rc ] || $(INSTALL) conserver.rc $(DESTDIR)$(sysconfdir)
.PHONY: clean distclean install
+20
View File
@@ -0,0 +1,20 @@
$NetBSD: patch-ab,v 1.3 2004/07/10 22:35:32 salo Exp $
--- conserver.cf/Makefile.in.orig Thu Jul 26 15:05:03 2001
+++ conserver.cf/Makefile.in
@@ -3,6 +3,7 @@
prefix = @prefix@
mandir = @mandir@
sysconfdir = @sysconfdir@
+exampledir = $(prefix)/share/examples/conserver
### Installation programs and flags
INSTALL = @INSTALL@
@@ -24,5 +25,7 @@
$(MKDIR) $(DESTDIR)$(mandir)/man5
$(INSTALL) conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5
$(INSTALL) conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5
+ $(BSD_INSTALL_DATA) conserver.cf $(DESTDIR)$(exampledir)/conserver.cf.example
+ $(BSD_INSTALL_DATA) conserver.passwd $(DESTDIR)$(exampledir)/conserver.passwd.example
.PHONY: clean distclean install
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-ac,v 1.2 2010/08/02 07:05:09 wiz Exp $
Add patch from
https://www.conserver.com/pipermail/users/2004-June/msg00001.html
to make network consoles work on LP64 platforms.
--- conserver/consent.c.orig 2003-04-06 08:32:41.000000000 -0400
+++ conserver/consent.c
@@ -788,7 +788,7 @@ ConsInit(pCE, pfdSet, useHostCache)
} else if (pCE->isNetworkConsole) {
struct sockaddr_in port;
struct hostent *hp;
- size_t one = 1;
+ int one = 1;
int flags;
fd_set fds;
struct timeval tv;