summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorhubertf <hubertf>2002-05-09 16:35:25 +0000
committerhubertf <hubertf>2002-05-09 16:35:25 +0000
commit887579eb1e5c02ad9bf75ebb60d5a840fbcea50a (patch)
tree517448efc066bd0e475567f202c047a1a68e7cc6 /comms
parenteae847049f01843838ee96540b559be02891d171 (diff)
downloadpkgsrc-887579eb1e5c02ad9bf75ebb60d5a840fbcea50a.tar.gz
Added conserver-7.1.3: allows multiple users to watch serial consoles
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. Submitted by Eric Schnoebelen <eric@cirr.com> in PR 15238, DEINSTALL script submitted by dawszy@arhea.net in private mail.
Diffstat (limited to 'comms')
-rw-r--r--comms/conserver/DEINSTALL30
-rw-r--r--comms/conserver/DESCR16
-rw-r--r--comms/conserver/Makefile37
-rw-r--r--comms/conserver/PLIST10
-rw-r--r--comms/conserver/distinfo6
-rw-r--r--comms/conserver/files/conserver.sh29
-rw-r--r--comms/conserver/patches/patch-aa12
-rw-r--r--comms/conserver/patches/patch-ab12
8 files changed, 152 insertions, 0 deletions
diff --git a/comms/conserver/DEINSTALL b/comms/conserver/DEINSTALL
new file mode 100644
index 00000000000..539557c3e3a
--- /dev/null
+++ b/comms/conserver/DEINSTALL
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+CAT="@CAT@"
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+
+POST-DEINSTALL)
+ ${CAT} << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want
+to remove the following directories:
+
+ /var/console
+===========================================================================
+EOF
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/comms/conserver/DESCR b/comms/conserver/DESCR
new file mode 100644
index 00000000000..ebd02d116a3
--- /dev/null
+++ b/comms/conserver/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/conserver/Makefile b/comms/conserver/Makefile
new file mode 100644
index 00000000000..05da69d389b
--- /dev/null
+++ b/comms/conserver/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+# FreeBSD Id: ports/comms/conserver-com/Makefile,v 1.1 2001/12/09 14:40:12 kur iyama Exp
+
+DISTNAME= conserver-7.1.3
+CATEGORIES= comms
+MASTER_SITES= ftp://ftp.conserver.com/conserver/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.conserver.com/
+COMMENT= Application that allows multiple users to watch serial consoles
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS= --with-master=${DEFAULTHOST} \
+ --with-port=${DEFAULTPORT} \
+ --with-libwrap
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+
+DEFAULTPORT?= 782
+DEFAULTHOST?= localhost
+RCD_SCRIPTS= conserver
+
+pre-install:
+ for script in ${RCD_SCRIPTS}; do \
+ ${SED} ${FILES_SUBST_SED} ${FILESDIR}/$${script}.sh \
+ >${WRKDIR}/$${script}; \
+ done
+
+post-install:
+ for script in ${RCD_SCRIPTS} ; do \
+ ${INSTALL_SCRIPT} ${WRKDIR}/$${script} \
+ ${PREFIX}/etc/rc.d/$${script}; \
+ done
+ ${MKDIR} /var/console
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/comms/conserver/PLIST b/comms/conserver/PLIST
new file mode 100644
index 00000000000..56d724deca1
--- /dev/null
+++ b/comms/conserver/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+bin/console
+etc/conserver.cf.example
+etc/conserver.passwd.example
+etc/rc.d/conserver
+man/man1/console.1
+man/man5/conserver.cf.5
+man/man5/conserver.passwd.5
+man/man8/conserver.8
+sbin/conserver
diff --git a/comms/conserver/distinfo b/comms/conserver/distinfo
new file mode 100644
index 00000000000..3b3cbb6c786
--- /dev/null
+++ b/comms/conserver/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+
+SHA1 (conserver-7.1.3.tar.gz) = 798bacc990220a9b74cdd322eaf7f4e05060e3fe
+Size (conserver-7.1.3.tar.gz) = 129744 bytes
+SHA1 (patch-aa) = 01ab5e3430137e72b786164026785f91295232d4
+SHA1 (patch-ab) = 6eb570c2dde7df4b1f413c242b7e2d06f6e23dc8
diff --git a/comms/conserver/files/conserver.sh b/comms/conserver/files/conserver.sh
new file mode 100644
index 00000000000..80fe5ee8b92
--- /dev/null
+++ b/comms/conserver/files/conserver.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $NetBSD: conserver.sh,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+#
+# PROVIDE: conserver
+# REQUIRE: DAEMON
+
+if [ -e /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"
+extra_commands=""
+command_args="-d" # _must_ start as daemon from rc.d;
+ # add more flags through ${${name}_flags}
+
+if [ -e /etc/rc.subr ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${smbd_flags} ${command_args}
+fi
diff --git a/comms/conserver/patches/patch-aa b/comms/conserver/patches/patch-aa
new file mode 100644
index 00000000000..fe65d591610
--- /dev/null
+++ b/comms/conserver/patches/patch-aa
@@ -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
diff --git a/comms/conserver/patches/patch-ab b/comms/conserver/patches/patch-ab
new file mode 100644
index 00000000000..37e54262ba0
--- /dev/null
+++ b/comms/conserver/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/05/09 16:35:25 hubertf Exp $
+
+--- conserver.cf/Makefile.in.orig Wed May 8 14:03:04 2002
++++ conserver.cf/Makefile.in
+@@ -24,5 +24,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
++ $(INSTALL) conserver.cf $(DESTDIR)$(sysconfdir)/conserver.cf.example
++ $(INSTALL) conserver.passwd $(DESTDIR)$(sysconfdir)/conserver.passwd.example
+
+ .PHONY: clean distclean install