system/conserver: Updated for version 8.1.16

This commit is contained in:
Menno E. Duursma 2010-05-11 19:46:24 +02:00 committed by Robby Workman
parent 5d5d15646d
commit e5f1fc75e3
5 changed files with 53 additions and 42 deletions

View file

@ -1,14 +1,14 @@
Conserver is an application that allows multiple users to watch a serial
console at the same time (serial meaning 'serial data stream' here, not
necessarily any phisical RS-232 port). It can log the data, allows users
necessarily any physical RS-232 port). 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 logfile
it creates; for instance using ``dnotify'').
it creates, for instance using dnotify).
Multi-user capabilities allow you to 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.
train, etcetera. 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.

View file

@ -3,35 +3,32 @@
# Slackware build script for Conserver
# Written by Menno Duursma <druiloor@zonnet.nl>
# Modified by the SlackBuilds.org project
PRGNAM=conserver
VERSION=8.1.14
VERSION=8.1.16
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=`pwd`
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# Bail out if we have a problem
set -e
# Set compiler flags
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e # Bail out if we have a problem
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
find . -type d -exec chmod 0755 {} \;
chmod -R a-s,u+w,go+r-w .
@ -75,27 +72,25 @@ if [ -d $PKG/usr/man ]; then
fi
# Documentation :
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp CHANGES FAQ INSTALL LICENSE PROTOCOL README TODO conserver.html \
$PKG/usr/doc/$PRGNAM-$VERSION
# We'll consider this a documentation here
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/contrib
cp [A-Z][A-Z]* conserver.html $PKG/usr/doc/$PRGNAM-$VERSION
# We'll consider this to be documentation here
cp -a autologin $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/conserver.cf
cd conserver.cf
cp INSTALL conserver.cf conserver.passwd label.ps test.cf \
cp INSTALL conserver.cf conserver.passwd label.ps test.cf \
$PKG/usr/doc/$PRGNAM-$VERSION/conserver.cf
cp -a samples $PKG/usr/doc/$PRGNAM-$VERSION/conserver.cf
cp -a samples $PKG/usr/doc/$PRGNAM-$VERSION/conserver.cf
cd ../conserver
cp Sun-serial $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/contrib
cp Sun-serial $PKG/usr/doc/$PRGNAM-$VERSION
cd ../contrib
cp README maketestcerts $PKG/usr/doc/$PRGNAM-$VERSION/contrib
# We'll consider this a documentation here too
cp -a chat $PKG/usr/doc/$PRGNAM-$VERSION/contrib
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cp README maketestcerts $PKG/usr/doc/$PRGNAM-$VERSION/contrib
# We'll consider this a documentation here too
cp -a chat $PKG/usr/doc/$PRGNAM-$VERSION/contrib
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
cd -
# Toss redundant example config files included with source
rm -rf $PKG/usr/share

View file

@ -1,8 +1,8 @@
PRGNAM="conserver"
VERSION="8.1.14"
VERSION="8.1.16"
HOMEPAGE="http://www.conserver.com/"
DOWNLOAD="http://www.conserver.com/conserver-8.1.14.tar.gz"
MD5SUM="f7825728e5af8992ed4a99fb560a3df8"
DOWNLOAD="http://www.conserver.com/conserver-8.1.16.tar.gz"
MD5SUM="2364ba56f5201b07646bdfaefedd330b"
MAINTAINER="Menno E. Duursma"
EMAIL="druiloor@zonnet.nl"
APPROVED="robw810,alien"
APPROVED="rworkman"

View file

@ -1,20 +1,27 @@
config() {
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
# Keep same perms on rc.conserver:
if [ -e etc/rc.d/rc.conserver ]; then
cp -a etc/rc.d/rc.conserver etc/rc.d/rc.conserver.new.incoming
cat etc/rc.d/rc.conserver.new > etc/rc.d/rc.conserver.new.incoming
mv etc/rc.d/rc.conserver.new.incoming etc/rc.d/rc.conserver.new
fi
config etc/rc.d/rc.conserver.new
config etc/conserver.cf.new
config etc/conserver.passwd.new
config etc/console.cf.new
config etc/rc.d/rc.conserver.new
# Make sure there is a service mapping for conserver
if ! grep -q "^conserver" etc/services ; then

View file

@ -1,10 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler---------------------------------------------------|
conserver: Conserver (Console server)
conserver:
conserver: Conserver is an application that allows multiple users to watch
conserver: a (serial) console at the same time. It can log the data, allows
conserver: to take write-access of a console (one at a time), and has a
conserver: variety of bells and whistles to accentuate that basic
conserver: functionality. Basically it can consolidate out-off-band
conserver: management / data. Conserver is maintained by Bryan Stansell.
conserver: Project homepage: http://www.conserver.com/
conserver: a (serial) console at the same time. It can log the data; it
conserver: allows one to take write-access of a console (one at a time); it
conserver: has a variety of bells and whistles to accentuate that basic
conserver: functionality. Basically, it can consolidate out-of-band
conserver: management and data. Conserver is maintained by Bryan Stansell.
conserver:
conserver: Homepage: http://www.conserver.com/
conserver: