From 590c9056cada8032507ac0d3c08a9b3e2a0e2a5b Mon Sep 17 00:00:00 2001 From: frueauf Date: Sat, 23 Jun 2001 21:52:07 +0000 Subject: Initial import of pconsole-1.0. This is pconsole, the parallel console tool. pconsole was meant as an interactive administrative shell tool for clusters. pconsole allows you to connect to each node of your cluster simultaneously, and you can type your administrative commands in a specialized window that 'multiplies' the input to each of the connections you have opened. pconsole is best run from within X Windows, although it is possible to employ it without X (in console mode) as well. You need to install pconsole on only 1 machine in the cluster, this would usually be your central administrative node. pconsole makes use of ssh if possible. --- net/pconsole/Makefile | 26 +++++++++++++++ net/pconsole/distinfo | 5 +++ net/pconsole/patches/patch-aa | 77 +++++++++++++++++++++++++++++++++++++++++++ net/pconsole/pkg/DESCR | 10 ++++++ net/pconsole/pkg/MESSAGE | 15 +++++++++ net/pconsole/pkg/PLIST | 6 ++++ 6 files changed, 139 insertions(+) create mode 100644 net/pconsole/Makefile create mode 100644 net/pconsole/distinfo create mode 100644 net/pconsole/patches/patch-aa create mode 100644 net/pconsole/pkg/DESCR create mode 100644 net/pconsole/pkg/MESSAGE create mode 100644 net/pconsole/pkg/PLIST (limited to 'net/pconsole') diff --git a/net/pconsole/Makefile b/net/pconsole/Makefile new file mode 100644 index 00000000000..4fbab4429bb --- /dev/null +++ b/net/pconsole/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/23 21:52:07 frueauf Exp $ +# + +DISTNAME= pconsole-1.0 +CATEGORIES= net +MASTER_SITES= http://www.heiho.net/pconsole/ + +MAINTAINER= frueauf@netbsd.org +HOMEPAGE= http://www.heiho.net/pconsole/ +COMMENT= parallel console tool to access several host via one input tty + +GNU_CONFIGURE= yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pconsole + cd ${WRKSRC} && ${INSTALL_DATA} \ + README.pconsole ${PREFIX}/share/doc/pconsole + +post-patch: + ${MV} ${WRKSRC}/pconsole.sh.in ${WRKSRC}/pconsole.sh.in.pre + ${SED} -e 's|@PREFIX@|${PREFIX}|g' \ + -e 's|@X11PREFIX@|${X11PREFIX}|g' \ + < ${WRKSRC}/pconsole.sh.in.pre \ + > ${WRKSRC}/pconsole.sh.in + +.include "../../mk/bsd.pkg.mk" diff --git a/net/pconsole/distinfo b/net/pconsole/distinfo new file mode 100644 index 00000000000..d91191351c4 --- /dev/null +++ b/net/pconsole/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/23 21:52:07 frueauf Exp $ + +SHA1 (pconsole-1.0.tar.gz) = 5c841e90548263671b6903a31cde6101154a20a3 +Size (pconsole-1.0.tar.gz) = 215426 bytes +SHA1 (patch-aa) = 7319fd99b6af01d09f4bf2421c6950d7f050c931 diff --git a/net/pconsole/patches/patch-aa b/net/pconsole/patches/patch-aa new file mode 100644 index 00000000000..f5a9c5882d9 --- /dev/null +++ b/net/pconsole/patches/patch-aa @@ -0,0 +1,77 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/23 21:52:08 frueauf Exp $ + +--- pconsole.sh.in.orig Mon Apr 9 10:59:48 2001 ++++ pconsole.sh.in Sat Jun 23 23:29:24 2001 +@@ -1,4 +1,4 @@ +-#! /bin/sh ++#! /bin/ksh + # + # pconsole WJ101 + # Copyright (C) 2001 Walter de Jong +@@ -31,12 +31,21 @@ + set -x + fi + +-PATH=/bin:/usr/bin:/usr/bin/X11:/usr/openwin/bin:/usr/local/bin:/usr/bsd:/usr/share/bin:/opt/bin:/etc:/usr/etc ++PATH=/bin:/usr/bin:@PREFIX@/bin:@X11PREFIX@/bin:/usr/bin/X11:/usr/openwin/bin:/usr/local/bin:/usr/bsd:/usr/share/bin:/opt/bin:/etc:/usr/etc + + prefix=@prefix@ + exec_prefix=@exec_prefix@ + bindir=@bindir@ + ++OS=`uname -s` ++ ++if [ "${OS}" = "NetBSD" ]; ++then ++ TTYEXT='tty' ++else ++ TTYEXT='' ++fi ++ + # + # options: you can overrule these by setting them in your environment + # +@@ -46,7 +55,7 @@ + fi + if [ -z "${P_TERM_OPTIONS}" ] + then +- P_TERM_OPTIONS="-geometry 40x12 -fn 5x7" ++ P_TERM_OPTIONS="-geometry 80x24 -fn 5x7" + fi + if [ -z "${P_CONNECT_CMD}" ] + then +@@ -73,7 +82,12 @@ + fi + + PS_PERSONALITY=posix # may be needed for GNU ps :P +- ps -ef 2>/dev/null | awk '{ print $3 " " $6 }' | egrep "^$1" | awk '{ print $2 }' ++ if [ "${OS}" = "NetBSD" ]; ++ then ++ ps j 2>/dev/null | awk '{ print $3 " " $8 }' | egrep "^$1" | awk '{ print $2 }' ++ else ++ ps -ef 2>/dev/null | awk '{ print $3 " " $6 }' | egrep "^$1" | awk '{ print $2 }' ++ fi + } + + +@@ -127,7 +141,7 @@ + + # sometimes xterm is too slow forking off, and get_tty will give the same + # tty as we started from. This would be incorrect, and if so, we try again +- if [ "/dev/${TTY}" = "${THIS_TTY}" ]; ++ if [ "/dev/${TTYEXT}${TTY}" = "${THIS_TTY}" ]; + then + TTY='' + sleep 1 +@@ -138,9 +152,9 @@ + HOSTLIST=`echo ${HOSTLIST} | cut -d\ -f2-999` + if [ ! -z "${HOST}" ] + then +- TTYS="${TTYS} ${HOST}#/dev/${TTY}" ++ TTYS="${TTYS} ${HOST}#/dev/${TTYEXT}${TTY}" + else +- TTYS="${TTYS} /dev/${TTY}" ++ TTYS="${TTYS} /dev/${TTYEXT}${TTY}" + fi + done + diff --git a/net/pconsole/pkg/DESCR b/net/pconsole/pkg/DESCR new file mode 100644 index 00000000000..a914537b2fd --- /dev/null +++ b/net/pconsole/pkg/DESCR @@ -0,0 +1,10 @@ +This is pconsole, the parallel console tool. pconsole was meant as an +interactive administrative shell tool for clusters. + +pconsole allows you to connect to each node of your cluster simultaneously, +and you can type your administrative commands in a specialized window that +'multiplies' the input to each of the connections you have opened. +pconsole is best run from within X Windows, although it is possible to +employ it without X (in console mode) as well. +You need to install pconsole on only 1 machine in the cluster, this would +usually be your central administrative node. diff --git a/net/pconsole/pkg/MESSAGE b/net/pconsole/pkg/MESSAGE new file mode 100644 index 00000000000..0d9f19a5482 --- /dev/null +++ b/net/pconsole/pkg/MESSAGE @@ -0,0 +1,15 @@ +$NetBSD: MESSAGE,v 1.1.1.1 2001/06/23 21:52:07 frueauf Exp $ + +Note that the pconsole binary needs to be run as root. For security reasons +it was not installed suid root, thus you need to run pconsole.sh as root. + +If you decide to make pconsole setuid root, mind to restrict access +via a special group (such as 'admin' or 'operator'). + +pconsole is a very powerful tool that should not fall into the wrong +hands. So, as root, execute: + + chown root:operator pconsole ; chmod 4110 pconsole + +pconsole drops its root privileges when they're not needed, so the +program maintains maximum security. diff --git a/net/pconsole/pkg/PLIST b/net/pconsole/pkg/PLIST new file mode 100644 index 00000000000..8b99cb4da28 --- /dev/null +++ b/net/pconsole/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/23 21:52:07 frueauf Exp $ +bin/pconsole +bin/pconsole.sh +bin/ssh.sh +share/doc/pconsole/README.pconsole +@dirrm share/doc/pconsole -- cgit v1.2.3