pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/conserver8 Import of conserver8 from pkgsrc-wip,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/18b4de9fe9c8
branches: trunk
changeset: 495173:18b4de9fe9c8
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Jun 03 20:08:04 2005 +0000
description:
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
diffstat:
comms/conserver8/DESCR | 16 +++++++
comms/conserver8/MESSAGE | 22 ++++++++++
comms/conserver8/Makefile | 75 ++++++++++++++++++++++++++++++++++++
comms/conserver8/PLIST | 15 +++++++
comms/conserver8/distinfo | 6 ++
comms/conserver8/files/conserver8.sh | 29 +++++++++++++
comms/conserver8/patches/patch-aa | 34 ++++++++++++++++
7 files changed, 197 insertions(+), 0 deletions(-)
diffs (225 lines):
diff -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/DESCR Fri Jun 03 20:08:04 2005 +0000
@@ -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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/MESSAGE Fri Jun 03 20:08:04 2005 +0000
@@ -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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/Makefile Fri Jun 03 20:08:04 2005 +0000
@@ -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@localhost
+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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/PLIST Fri Jun 03 20:08:04 2005 +0000
@@ -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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/distinfo Fri Jun 03 20:08:04 2005 +0000
@@ -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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/files/conserver8.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/files/conserver8.sh Fri Jun 03 20:08:04 2005 +0000
@@ -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 -r d9b03e344d0e -r 18b4de9fe9c8 comms/conserver8/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/conserver8/patches/patch-aa Fri Jun 03 20:08:04 2005 +0000
@@ -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)) {
Home |
Main Index |
Thread Index |
Old Index