mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
system/conserver: Removed (unmaintained)
Reference: http://lists.slackbuilds.org/pipermail/slackbuilds-users/2010-October/006570.html Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
9c17792398
commit
d53299b331
10 changed files with 0 additions and 321 deletions
|
@ -1,14 +0,0 @@
|
|||
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 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).
|
||||
|
||||
Multi-user capabilities allow you to work on equipment with others, mentor,
|
||||
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.
|
|
@ -1,53 +0,0 @@
|
|||
#
|
||||
# Sample conserver.cf file, to give you ideas of what you can do with
|
||||
# the various configuration items.
|
||||
#
|
||||
|
||||
### set up global access
|
||||
default full {
|
||||
rw *;
|
||||
}
|
||||
|
||||
### set the defaults for all the consoles
|
||||
# these get applied before anything else
|
||||
default * {
|
||||
# The '&' character is substituted with the console name
|
||||
logfile /var/consoles/&;
|
||||
# timestamps every hour with activity and break logging
|
||||
timestamp 1hab;
|
||||
# include the 'full' default
|
||||
include full;
|
||||
# master server is localhost
|
||||
master localhost;
|
||||
}
|
||||
|
||||
### and now some one-off consoles
|
||||
# we still inherit the '*' default set
|
||||
# a simple ssh invocation
|
||||
console ssh {
|
||||
type exec;
|
||||
exec ssh localhost;
|
||||
# provide a 'message-of-the-day'
|
||||
motd "just a simple ssh to localhost";
|
||||
}
|
||||
|
||||
#
|
||||
# Note: the user running conserver is expected to have 'dialout' group membership
|
||||
#
|
||||
|
||||
# Local COM2: port
|
||||
console ttyS1 {
|
||||
master localhost;
|
||||
type device;
|
||||
device /dev/ttyS1;
|
||||
baud 9600;
|
||||
parity none;
|
||||
}
|
||||
|
||||
### list of clients we allow
|
||||
access * {
|
||||
trusted 127.0.0.1;
|
||||
# RFC 1918
|
||||
#allowed 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# Everyone uses their regular login and password.
|
||||
# note: the account running conserver needs /etc/shadow privs for this
|
||||
#
|
||||
*any*:*passwd*
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
config * {
|
||||
master localhost;
|
||||
|
||||
# Below are default on some Debian(-derived) systems:
|
||||
#port 3109;
|
||||
#sslenabled no;
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Start/stop/restart the conserver console server daemon.
|
||||
|
||||
# Start conserver:
|
||||
conserver_start() {
|
||||
if [ -x /usr/sbin/conserver -a -d /var/consoles ]; then
|
||||
echo "Starting conserver: /usr/sbin/conserver -d -v"
|
||||
/usr/sbin/conserver -d -v
|
||||
fi
|
||||
}
|
||||
|
||||
# Stop conserver:
|
||||
conserver_stop() {
|
||||
/bin/killall conserver
|
||||
}
|
||||
|
||||
# Restart conserver:
|
||||
conserver_restart() {
|
||||
conserver_stop
|
||||
/bin/sleep 1
|
||||
conserver_start
|
||||
}
|
||||
|
||||
# Reload conserver:
|
||||
conserver_reload() {
|
||||
/bin/killall -HUP conserver
|
||||
}
|
||||
|
||||
# Reconnect to any consoles that seem down:
|
||||
conserver_reconnect() {
|
||||
/bin/killall -USR1 conserver
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
conserver_start
|
||||
;;
|
||||
'stop')
|
||||
conserver_stop
|
||||
;;
|
||||
'restart')
|
||||
conserver_restart
|
||||
;;
|
||||
'reload')
|
||||
conserver_reload
|
||||
;;
|
||||
'reconnect')
|
||||
conserver_reconnect
|
||||
;;
|
||||
*)
|
||||
echo "usage $0 start|stop|restart|reload|reconnect"
|
||||
esac
|
||||
|
|
@ -1,123 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Conserver
|
||||
# Written by Menno Duursma <druiloor@zonnet.nl>
|
||||
|
||||
# This program is free software. It comes without any warranty.
|
||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
PRGNAM=conserver
|
||||
VERSION=8.1.17
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
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 xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . -type d -exec chmod 0755 {} \;
|
||||
chmod -R a-s,u+w,go+r-w .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--with-libwrap \
|
||||
--with-openssl \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
# Include dist config files as documentation
|
||||
install -D -m 0644 $PKG/usr/share/examples/conserver/conserver.cf $PKG/usr/doc/$PRGNAM-$VERSION/examples/conserver.cf
|
||||
install -D -m 0644 $PKG/usr/share/examples/conserver/conserver.passwd $PKG/usr/doc/$PRGNAM-$VERSION/examples/conserver.passwd
|
||||
install -D -m 0644 $PKG/usr/share/examples/conserver/conserver.rc $PKG/usr/doc/$PRGNAM-$VERSION/examples/conserver.rc
|
||||
|
||||
# Toss redundant dir included with source
|
||||
rm -rf $PKG/usr/share
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/contrib
|
||||
cp [A-Z][A-Z]* conserver.html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
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 \
|
||||
$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
|
||||
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
|
||||
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
|
||||
cd -
|
||||
|
||||
## Sample configuration files
|
||||
mkdir -p $PKG/etc
|
||||
cat $CWD/config/conserver.cf > $PKG/etc/conserver.cf.new
|
||||
cat $CWD/config/conserver.passwd > $PKG/etc/conserver.passwd.new
|
||||
cat $CWD/config/console.cf > $PKG/etc/console.cf.new
|
||||
|
||||
# Include sample rc file
|
||||
install -D -m 0755 $CWD/config/rc.conserver $PKG/etc/rc.d/rc.conserver.new
|
||||
|
||||
# Pre-create the default directory console messages get logged to
|
||||
mkdir -p $PKG/var/consoles
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -1,10 +0,0 @@
|
|||
PRGNAM="conserver"
|
||||
VERSION="8.1.17"
|
||||
HOMEPAGE="http://www.conserver.com/"
|
||||
DOWNLOAD="http://www.conserver.com/conserver-8.1.17.tar.gz"
|
||||
MD5SUM="9bd085daa5450ca7b45e4187ec6eff1f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Menno Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
APPROVED="Erik Hanson"
|
|
@ -1,7 +0,0 @@
|
|||
# default config for console
|
||||
config * {
|
||||
master localhost;
|
||||
# Some (Ubuntu) systems seem to be using this:
|
||||
#port 3109;
|
||||
#sslenabled no;
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
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
|
||||
# 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
|
||||
|
||||
# Make sure there is a service mapping for conserver
|
||||
if ! grep -q "^conserver" etc/services ; then
|
||||
printf "conserver\t782/tcp\tconsole\t# Console Server\n" >> etc/services
|
||||
fi
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
# 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; 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:
|
Loading…
Reference in a new issue