diff options
author | wiz <wiz@pkgsrc.org> | 2005-06-03 20:08:04 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-06-03 20:08:04 +0000 |
commit | 207ef4af30bd560c64d88d6c9c35467af58a782b (patch) | |
tree | da00e4de1524293a8d9210758ea8b85609ca5949 | |
parent | 98224f1a0f07d602f9f32adee602eb8c705f3545 (diff) | |
download | pkgsrc-207ef4af30bd560c64d88d6c9c35467af58a782b.tar.gz |
Import of conserver8 from pkgsrc-wip, provided by Andreas Wrede:
Version 8 of Conserver as a separate package as the config file
format of version 8 is incompatible with prior versions.
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
-rw-r--r-- | comms/conserver8/DESCR | 16 | ||||
-rw-r--r-- | comms/conserver8/MESSAGE | 22 | ||||
-rw-r--r-- | comms/conserver8/Makefile | 75 | ||||
-rw-r--r-- | comms/conserver8/PLIST | 15 | ||||
-rw-r--r-- | comms/conserver8/distinfo | 6 | ||||
-rw-r--r-- | comms/conserver8/files/conserver8.sh | 29 | ||||
-rw-r--r-- | comms/conserver8/patches/patch-aa | 34 |
7 files changed, 197 insertions, 0 deletions
diff --git a/comms/conserver8/DESCR b/comms/conserver8/DESCR new file mode 100644 index 00000000000..ebd02d116a3 --- /dev/null +++ b/comms/conserver8/DESCR @@ -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. diff --git a/comms/conserver8/MESSAGE b/comms/conserver8/MESSAGE new file mode 100644 index 00000000000..c6a163d84f5 --- /dev/null +++ b/comms/conserver8/MESSAGE @@ -0,0 +1,22 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/06/03 20:08:04 wiz 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}/bin/conserverconvert. + +Briefly: +mv ${PKG_SYSCONFDIR}/conserver.cf ${PKG_SYSCONFDIR}/conserver.cf-7 +mv ${PKG_SYSCONFDIR}/conserver.passwd ${PKG_SYSCONFDIR}/conserver.passwd-7 +${PREFIX}/bin/conserverconvert ${PKG_SYSCONFDIR}/conserver.cf-7 >\ + ${PKG_SYSCONFDIR}/conserver.cf +awk -F: '{print $1 ":" $2}' < ${PKG_SYSCONFDIR}/conserver.passwd-7 > \ + ${PKG_SYSCONFDIR}/conserver.passwd + +=========================================================================== diff --git a/comms/conserver8/Makefile b/comms/conserver8/Makefile new file mode 100644 index 00000000000..ecd63214006 --- /dev/null +++ b/comms/conserver8/Makefile @@ -0,0 +1,75 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $ +# + +DISTNAME= conserver-8.1.11 +PKGNAME= conserver8-8.1.11 +CATEGORIES= comms +MASTER_SITES= ftp://ftp.conserver.com/conserver/ + +MAINTAINER= awrede@users.sourceforge.net +HOMEPAGE= http://www.conserver.com/ +COMMENT= Application that allows multiple users to watch serial consoles + +CONFLICTS= conserver-[0-9]* + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +GNU_CONFIGURE= YES +USE_PKGINSTALL= YES + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-master=${CONSERVER_DEFAULTHOST} +CONFIGURE_ARGS+= --with-port=${CONSERVER_DEFAULTPORT} +CONFIGURE_ARGS+= --with-regex +CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers} +CONFIGURE_ARGS+= --with-logfile=${VARBASE}/log/conserver + +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} +. include "../../security/openssl/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-openssl +.endif +BUILD_DEFS+= CONSERVER_DEFAULTPORT CONSERVER_DEFAULTHOST + +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, + +pre-install: + ${INSTALL_DATA_DIR} ${EGDIR} + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/conserver/convert ${PREFIX}/bin/conserverconvert + ${INSTALL_DATA_DIR} ${DOCDIR} + for File in INSTALL README PROTOCOL; do \ + ${INSTALL_DATA} ${WRKSRC}/$${File} ${DOCDIR}/$${File}; \ + done + +.include "../../security/tcp_wrappers/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/comms/conserver8/PLIST b/comms/conserver8/PLIST new file mode 100644 index 00000000000..b4aeba8aef8 --- /dev/null +++ b/comms/conserver8/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $ +bin/conserverconvert +bin/console +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 +@dirrm share/examples/conserver diff --git a/comms/conserver8/distinfo b/comms/conserver8/distinfo new file mode 100644 index 00000000000..6f687a56273 --- /dev/null +++ b/comms/conserver8/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $ + +SHA1 (conserver-8.1.11.tar.gz) = d30d4c86b769d56707f6abfad47992cc59f128da +RMD160 (conserver-8.1.11.tar.gz) = 380386c3f488787bf132809071b308bc9a00c89f +Size (conserver-8.1.11.tar.gz) = 299281 bytes +SHA1 (patch-aa) = 1747fbc95109db50b1acd003235fca9556f9d084 diff --git a/comms/conserver8/files/conserver8.sh b/comms/conserver8/files/conserver8.sh new file mode 100644 index 00000000000..3cb4fc62bb1 --- /dev/null +++ b/comms/conserver8/files/conserver8.sh @@ -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 diff --git a/comms/conserver8/patches/patch-aa b/comms/conserver8/patches/patch-aa new file mode 100644 index 00000000000..db2c13c69a8 --- /dev/null +++ b/comms/conserver8/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/06/03 20:08:04 wiz Exp $ + +--- conserver/main.c.orig 2004-07-14 01:28:42.000000000 -0400 ++++ conserver/main.c 2005-05-22 14:16:15.000000000 -0400 +@@ -460,7 +460,9 @@ + int td; + #endif + ++#if 0 + Msg("daemonizing"); ++#endif + SimpleSignal(SIGQUIT, SIG_IGN); + SimpleSignal(SIGINT, SIG_IGN); + #if defined(SIGTTOU) +@@ -1259,7 +1261,9 @@ + Bye(EX_OK); + } + ++#if 0 + Msg("%s", THIS_VERSION); ++#endif + + #if HAVE_GETLOGIN + origuser = getlogin(); +@@ -1286,7 +1290,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)) { |