summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/makeconfig63
-rwxr-xr-xtools/makepaths15
-rwxr-xr-xtools/zlook241
-rwxr-xr-xtools/zsubscriptions61
4 files changed, 0 insertions, 380 deletions
diff --git a/tools/makeconfig b/tools/makeconfig
deleted file mode 100644
index 8575851..0000000
--- a/tools/makeconfig
+++ /dev/null
@@ -1,63 +0,0 @@
-# $Source$
-# $Author$
-# $Header$
-#
-# Makefile for creating a Zephyr configuration
-#
-# This Makefile creates the directories needed to hold Zephyr
-# object files and executables. It also installs the Imakefiles.
-# This also copies in the Imake and make depend program and Imake macros.
-# By default, the Imakefiles are copied into the configuration
-# and made writeable. If a link is preferred, change LN to "ln".
-#
-# The default distination for the configuration is the current
-# directory; defaults for destination and source directories may be
-# specified, e.g.:
-#
-# make -f makeconfig SRCDIR=/u2/lockers/zephyr DESTDIR=myconfig
-
-DESTDIR = .
-SRCDIR = /afs/athena.mit.edu/astaff/project/zephyr/src
-
-LN = ln -s
-CP = cp
-SUBDIR = et et/lib et/compile_et ss ss/lib ss/make_commands clients \
- clients/syslogd clients/zaway \
- clients/zbitmap clients/zctl clients/zleave \
- clients/zlocate clients/zmailnotify clients/znol clients/zpopnotify \
- clients/zshutdown_notify clients/zstat clients/zwrite \
- include include/zephyr lib man man/man1 man/man8 server zhm zwgc \
- zwgc/String zwgc/Memory zwgc/Dictionary ozwgc ozwgc/zbrowser \
- libdyn clients/xzwrite
-
-
-# Empty directories which also need to be built.
-
-MTDIR = et/lib/profiled ss/lib/profiled lib/profiled libdyn/profiled libs
-
-# Directories which need only be linked into the sources
-
-LINKDIR = server/acldir
-
-all:
- rm -f ${DESTDIR}/Makefile ${DESTDIR}/Imakefile
- ${CP} ${SRCDIR}/Makefile ${DESTDIR}
- ${LN} ${SRCDIR}/Imakefile ${DESTDIR}
- chmod +w ${DESTDIR}/Makefile
- -for i in ${SUBDIR}; do \
- mkdir ${DESTDIR}/$$i; \
- rm -f ${DESTDIR}/$$i/Imakefile; \
- ${LN} ${SRCDIR}/$$i/Imakefile ${DESTDIR}/$$i; \
- done
- -for i in ${MTDIR}; do mkdir ${DESTDIR}/$$i; done
- -for i in ${LINKDIR}; do ${LN} ${SRCDIR}/$$i ${DESTDIR}/$$i; done
- for i in imake makedepend config; do \
- rm -rf ${DESTDIR}/$$i; \
- cp -r ${SRCDIR}/$$i ${DESTDIR}; \
- rm -rf ${DESTDIR}/$$i/RCS; \
- done
-#special hack for libss
- rm -f ${DESTDIR}/ss/ss
- ln -s lib ${DESTDIR}/ss/ss
-
-
diff --git a/tools/makepaths b/tools/makepaths
deleted file mode 100755
index 1665e5d..0000000
--- a/tools/makepaths
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# $Id$
-#
-# makepaths script -- generate zephyr_paths.h file on stdout
-echo "/* This file is automatically generated. Do not edit it. */"
-echo '#define Z_ETCATHDIR ' \"$ETCATHDIR\"
-echo '#define Z_CLIENTDIR ' \"$CLIENTDIR\"
-echo '#define Z_LIBDIR ' \"$LIBDIR\"
-if [ x"$HaveKerberos" != x ]; then
- echo '#define Z_HaveKerberos'
-fi
-if [ x"$HaveHesiod" != x ]; then
- echo '#define Z_HaveHesiod'
-fi
-exit 0
diff --git a/tools/zlook b/tools/zlook
deleted file mode 100755
index 43b18b7..0000000
--- a/tools/zlook
+++ /dev/null
@@ -1,241 +0,0 @@
-#!/bin/sh
-#
-# ZLOOK: AUTHOR: "Jr" Spidell DATE: April 25, 1992
-#
-# this script will only run properly by root
-# on a zephyr server node
-# output: accounts logged into zephyr
-# nodes running a host manager
-
-TEMPFILE=/usr/tmp/zephyr.$$
-TEMPFILE2=/usr/tmp/zephyr2.$$
-DBFILE=/usr/tmp/zephyr.db # where zephyrd dumps its data after a kill -FPE
-
-# the next "magic numbers" for the servers come from looking at server.list
-# the '1' or '3' corresponds to the position of the server name in the file
-# 'server.list'
-# NOTE: these numbers will need to be changed if the server.list file gets
-# changed. (server.list resides in the directory /usr/athena/lib/zephyr)
-CAP_SERVER="3:"
-FRED_SERVER="1:"
-
-# test for root
-if test "`whoami`" != root
- then
- echo "you must be root to run this script"
- exit
-fi
-
-# test for no options
-if test $# -eq 0
-then USAGE="yes"
- echo "no options given."
- echo ""
-fi
-
-# test for server node
-if test -z "`ps aux | grep zephyrd | grep -v grep | awk '{print $2}'`"
- then echo "you must be on a zephyr server (ie cap, fred)"
- exit
-fi
-
-# root doesn't have this in its path
-path=$PATH
-PATH=$path":/usr/local/bin:/bin:"
-
-for argument in $*
-do
- case $argument in
- -N)# extract the running host managers
- ZHM=yes
- ;;
-
- -s)# extract the suns (nodes that use fred as their server )
- FRED=yes
- ;;
-
- -d)# extract the decs (nodes that use cap as their server )
- CAP=yes
- ;;
-
- -A)# extract logged in users
- EXTRACT_USERS=yes
- ;;
-
- -O)# list options
- USAGE=yes
- ;;
-
- -e)# list exposure values
- EXPO=yes
- ;;
-
- -g)# list group name
- GRP=yes
- ;;
-
- -t)# list time user logged in to zephyr
- TME=yes
- ;;
-
- -n)# list user's node
- NOD=yes
- ;;
-
- -ni)# list user's "world name" or "nickname" ie joe B. Blow
- NIK=yes
- ;;
-
- -G*)# list users by given group name
- # note -g option does not display along with -G option
- # (sort of redundant don't ya think?)
-
- if test "$argument" = "-G"
- then echo "you must specify a group for -G option"
- zlook -o
- exit
- fi
- /accts/caspidell/shelldir/zlook -A -g`echo " $* " | sed "s/-G/ /g"` | grep `echo $argument
- | sed "s/-G//"` | sed "s/`echo $argument| sed "s/-G//g"`//"
- # | awk '{print $1}'
- exit;;
-
- -s)# subscription information
- # nothing here, yet...
- ;;
-
- -?)# unknown option
- USAGE="yes"
- echo "unknown option $argument"
- echo ""
- ;;
-
- esac # end of options
-done # end of arguments
-
-
-#############
-# -O option #
-#############
-if test "$USAGE" = "yes"
-then
- echo "zlook [-N] [-d] [-s] [-G<groupname>] [-A] [-t] [-ni] [-n] [-e] [-o]"
- echo ""
- echo " -N nodes currently running a zephyr host manager."
- echo " -d only decs currently running zhm"
- echo " -s only suns currently running zhm"
- echo " -G<group> users by group name."
- echo " -A all users currently logged into zephyr."
- echo " -g give user's group association"
- echo " -t give time user logged into zephyr."
- echo " -n give user's node."
- echo " -e give user's exposure level."
- echo " -ni give user's full name (ie Joe B. Blow)."
- echo " -O option descriptions. (this screen)"
- echo ""
- echo " options -t, -n, -e, -ni must be accompanied by -A or -G<group>"
- echo " options -d and -s must be accompanied by -N"
- echo ""
-fi
-
-#############
-# -N option #
-#############
-if test "$ZHM" = "yes"
- then
-
- # this is for all nodes
- SERVER=":"
-
- # extract only nodes that use cap as their server
- if test "$CAP" = "yes"
- then
- SERVER=$CAP_SERVER
- fi
-
- # extract only nodes that use fred as their server
- if test "$FRED" = "yes"
- then
- SERVER=$FRED_SERVER
- fi
-
- # dump the database
- kill -FPE `ps aux | grep zephyrd | grep -v grep | awk '{print $2}'`
-
- # cross-reference the internet adresses with node names
- for address in `cat /usr/tmp/zephyr.db | grep 131.198 | grep $SERVER | grep -v rockwell |
-grep -v SERV | sed "s/\/[0-9]://"`
- do
- ypcat hosts | grep "$address " | awk '{ print $2 }' | sed "s/.cca.cr.rockwell.com//" >> $T
-EMPFILE
- done
- cat $TEMPFILE | sort
- rm $TEMPFILE
-fi
-
-
-
-#############
-# -A option #
-#############
-
-if test "$EXTRACT_USERS" = "yes"
- then
-# dump the database
- kill -FPE `ps aux | grep zephyrd | grep -v grep | awk '{print $2}'`
-
- for instance in `cat /usr/tmp/zephyr.db | grep @cca.cr.rockwell.com/ | sed "s/ /~/g"`
- do
-#------------------
-# display user name
-#------------------
- PEOPLE=`echo $instance | awk '{FS="@"}{print $1}'`
- echo $instance | awk '{FS="@"}{printf("%-10s", $1)}' >> $TEMPFILE
-
-#---------------------------------
-# display group association
-#---------------------------------
- if test "$GRP" = "yes"
- then
- GROUP=`ypcat passwd | grep $PEOPLE: | awk '{FS=":"}{print $4}'`
- ypcat group | grep ":$GROUP:" | awk '{FS=":"}{printf("%-9s", $1)}' >> $TEMPFILE
- fi
-
-#--------------------
-# display node
-#--------------------
- if test "$NOD" = "yes"
- then
- echo $instance | sed "s/.cca.cr.rockwell.com//g" | awk '{FS="/"}{printf("%-8s ",$2)}' >
-> $TEMPFILE
- fi
-
-#-----------------------
-# display exposure level
-#-----------------------
- if test "$EXPO" = "yes"
- then
- echo $instance | awk '{FS="/"}{printf("%s ", $5)}' >> $TEMPFILE
- fi
-
-#-------------
-# display time
-#-------------
- if test "$TME" = "yes"
- then
- echo $instance | sed "s/~/ /g" | sed "s/:[0-9][0-9] [0-9][0-9][0-9][0-9]//" | awk '{FS=
-"/"}{printf("%-10s ",$3)}' >> $TEMPFILE
- fi
-
-#-----------------
-# display nickname
-#-----------------
- if test "$NIK" = "yes"
- then
- ypcat passwd | grep $PEOPLE: | awk '{FS=":"}{printf("%s ", $5)}' >> $TEMPFILE
- fi
- echo "" >>$TEMPFILE
- done
- cat $TEMPFILE | sort
- rm $TEMPFILE
-fi
diff --git a/tools/zsubscriptions b/tools/zsubscriptions
deleted file mode 100755
index b9a9e79..0000000
--- a/tools/zsubscriptions
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-#
-# author: "Jr" Spidell
-# date : 4/25/92
-#
-USAGE="zsubscriptions <user>"
-DBFILE=/usr/tmp/zephyr.db # where zephyrd dumps its data after a kill -FPE
-
-# test for root
-if test "`whoami`" != root
- then
- echo "you must be root to run this script"
- exit
-fi
-
-# test for no options
-if test $# -eq 0
-then USAGE="yes"
- echo "no options given."
- echo $USAGE
- echo ""
- exit
-fi
-
-# test for server node
-if test -z "`ps aux | grep zephyrd | grep -v grep | awk '{print $2}'`"
- then echo "you must be on a zephyr server (ie cap, fred)"
- exit
-fi
-
-# root doesn't have this in its path
-path=$PATH
-PATH=$path":/usr/local/bin:/bin:/usr/athena:"
-
-# dump the database
-kill -FPE `ps aux | grep zephyrd | grep -v grep | awk '{print $2}'`
-
-user=$1
-
-nawk ' BEGIN {user=""}
- {if ((NF > 1) && (NF < 4))
- {
- if (NF == 2)
- {
- user=$2
- next
- }
- print user,$0
- }
- }' /net/cap/usr/tmp/zephyr.db | \
-sed s/.cca.cr.rockwell.com//g | sed s/"("//g | sed s/")"//g |\
-sed s/"'"//g | sed s/":"//g > /tmp/users
-
-echo ""
-echo "$user is subscribed to recieve the following message types:"
-echo ""
-
-nawk ' {if ($1 == uname)
- {printf ("%-20s%-20s%-20s\n",$2,$3,$4)}}' uname=$user /tmp/users
-
-echo ""