diff options
author | andreas <andreas@FreeBSD.org> | 1996-11-17 20:02:13 +0000 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 1996-11-17 20:02:13 +0000 |
commit | 2d7c8aecb7d2d90f164d104ccfb878b195f4e52d (patch) | |
tree | 881b147a47ff81845a1dd883897845688aa4d15d /net | |
parent | ea9d9bbd2847c6438a1ec09247a09a17d145ae34 (diff) | |
download | FreeBSD-ports-2d7c8aecb7d2d90f164d104ccfb878b195f4e52d.zip FreeBSD-ports-2d7c8aecb7d2d90f164d104ccfb878b195f4e52d.tar.gz |
--- Big Brother ---
a Web-based Unix Network Monitoring and Notification System
by Sean MacGuire <sean@iti.qc.ca>
Home Page: http://www.iti.qc.ca/iti/users/sean/bb-dnld/
A Life Example: http://www.menet.umn.edu/~clolson/bb/bb.html (40 machines)
Diffstat (limited to 'net')
-rw-r--r-- | net/bb/Makefile | 151 | ||||
-rw-r--r-- | net/bb/distinfo | 1 | ||||
-rw-r--r-- | net/bb/files/Makefile | 2 | ||||
-rw-r--r-- | net/bb/files/patch-aa | 23 | ||||
-rw-r--r-- | net/bb/pkg-comment | 1 | ||||
-rw-r--r-- | net/bb/pkg-descr | 22 | ||||
-rw-r--r-- | net/bb/pkg-plist | 47 | ||||
-rw-r--r-- | net/bb/scripts/configure | 15 |
8 files changed, 262 insertions, 0 deletions
diff --git a/net/bb/Makefile b/net/bb/Makefile new file mode 100644 index 0000000..7a9055b --- /dev/null +++ b/net/bb/Makefile @@ -0,0 +1,151 @@ +# New ports collection makefile for: bb +# Version required: 0.9 +# Date created: So 17 Nov 1996 16:59:23 MET +# Whom: Andreas Klemm <andreas@klemm.gtn.com> +# +# $Id$ +# + +DISTNAME= bb +PKGNAME= bb-0.9 +CATEGORIES+= net + +MASTER_SITES= http://www.iti.qc.ca/iti/users/sean/bb-dnld/ +EXTRACT_SUFX= -src.tgz + +MAINTAINER= andreas@klemm.gtn.com + +BUILD_DEPENDS= ${PREFIX}/sbin/httpd:${PORTSDIR}/www/apache +RUN_DEPENDS= ${PREFIX}/bin/lyx:${PORTSDIR}/www/lyx + +post-configure: + ( cd ${WRKSRC}/doc; /bin/sh bbconfig freebsd ) + @cp ${FILESDIR}/Makefile ${WRKSRC} + +install: + @mkdir -p ${PREFIX}/${DISTNAME}/bin + @mkdir -p ${PREFIX}/${DISTNAME}/doc + @mkdir -p ${PREFIX}/${DISTNAME}/etc + @mkdir -p ${PREFIX}/${DISTNAME}/web + @mkdir -p ${PREFIX}/${DISTNAME}/www/gifs + @mkdir -p ${PREFIX}/${DISTNAME}/www/logs + @mkdir -p ${PREFIX}/${DISTNAME}/www/notes + ${INSTALL_DATA} ${WRKSRC}/README \ + ${PREFIX}/${DISTNAME}/README + ${INSTALL_PROGRAM} ${WRKSRC}/bin/bb \ + ${PREFIX}/${DISTNAME}/bin/bb + ${INSTALL_SCRIPT} ${WRKSRC}/bin/bb-local.sh \ + ${PREFIX}/${DISTNAME}/bin/bb-local.sh + ${INSTALL_SCRIPT} ${WRKSRC}/bin/bb-network.sh \ + ${PREFIX}/${DISTNAME}/bin/bb-network.sh + ${INSTALL_SCRIPT} ${WRKSRC}/bin/bb-page.sh \ + ${PREFIX}/${DISTNAME}/bin/bb-page.sh + ${INSTALL_PROGRAM} ${WRKSRC}/bin/bbd \ + ${PREFIX}/${DISTNAME}/bin/bbd + ${INSTALL_PROGRAM} ${WRKSRC}/bin/touchtime \ + ${PREFIX}/${DISTNAME}/bin/touchtime + ${INSTALL_DATA} ${WRKSRC}/doc/README \ + ${PREFIX}/${DISTNAME}/doc/README + ${INSTALL_DATA} ${WRKSRC}/doc/STRUCTURE \ + ${PREFIX}/${DISTNAME}/doc/STRUCTURE + ${INSTALL_SCRIPT} ${WRKSRC}/doc/bbclient \ + ${PREFIX}/${DISTNAME}/doc/bbclient + ${INSTALL_SCRIPT} ${WRKSRC}/doc/bbconfig \ + ${PREFIX}/${DISTNAME}/doc/bbconfig + ${INSTALL_DATA} ${WRKSRC}/etc/bb-hosts \ + ${PREFIX}/${DISTNAME}/etc/bb-hosts + ${INSTALL_SCRIPT} ${WRKSRC}/etc/bbdef.sh \ + ${PREFIX}/${DISTNAME}/etc/bbdef.sh + ${INSTALL_SCRIPT} ${WRKSRC}/etc/bbinc.sh \ + ${PREFIX}/${DISTNAME}/etc/bbinc.sh + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.freebsd \ + ${PREFIX}/${DISTNAME}/etc/bbsys.freebsd + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.hpux \ + ${PREFIX}/${DISTNAME}/etc/bbsys.hpux + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.linux \ + ${PREFIX}/${DISTNAME}/etc/bbsys.linux + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.local \ + ${PREFIX}/${DISTNAME}/etc/bbsys.local + ${INSTALL_SCRIPT} ${WRKSRC}/etc/bbsys.sh \ + ${PREFIX}/${DISTNAME}/etc/bbsys.sh + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.solaris \ + ${PREFIX}/${DISTNAME}/etc/bbsys.solaris + ${INSTALL_DATA} ${WRKSRC}/etc/bbsys.sunos \ + ${PREFIX}/${DISTNAME}/etc/bbsys.sunos + ${INSTALL_SCRIPT} ${WRKSRC}/runbb.sh \ + ${PREFIX}/${DISTNAME}/runbb.sh + ${INSTALL_SCRIPT} ${WRKSRC}/web/mkbb.bkg \ + ${PREFIX}/${DISTNAME}/web/mkbb.bkg + ${INSTALL_SCRIPT} ${WRKSRC}/web/mkbb.cols \ + ${PREFIX}/${DISTNAME}/web/mkbb.cols + ${INSTALL_SCRIPT} ${WRKSRC}/web/mkbb.sh \ + ${PREFIX}/${DISTNAME}/web/mkbb.sh + ${INSTALL_SCRIPT} ${WRKSRC}/web/mkbb2.sh \ + ${PREFIX}/${DISTNAME}/web/mkbb2.sh + ${INSTALL_DATA} ${WRKSRC}/www/bb-help.html \ + ${PREFIX}/${DISTNAME}/www/bb-help.html + ${INSTALL_DATA} ${WRKSRC}/www/bb-info.html \ + ${PREFIX}/${DISTNAME}/www/bb-info.html + ${INSTALL_DATA} ${WRKSRC}/www/bb-page.html \ + ${PREFIX}/${DISTNAME}/www/bb-page.html + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bb-diag.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bb-diag.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bb.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bb.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bkg-green.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bkg-green.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bkg-purple.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bkg-purple.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bkg-red.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bkg-red.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/bkg-yellow.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/bkg-yellow.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/blue.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/blue.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/buthelp.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/buthelp.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/butinfo.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/butinfo.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/butpage.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/butpage.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/butview.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/butview.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/green.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/green.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/purple.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/purple.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/red.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/red.gif + ${INSTALL_DATA} ${WRKSRC}/www/gifs/yellow.gif \ + ${PREFIX}/${DISTNAME}/www/gifs/yellow.gif + ${INSTALL_DATA} ${WRKSRC}/www/logs/later \ + ${PREFIX}/${DISTNAME}/www/logs/later + @rm -f ${PREFIX}/www/data/bb + @ln -s ../../${DISTNAME}/www ${PREFIX}/www/data/bb + @echo "" + @echo "================================================================" + @echo "==== Configuration Notes: ===" + @echo "================================================================" + @echo "" + @echo "a) your hosts 'full qualified domain name' and IP-address" + @echo "b) 'watched' hosts 'full qualified domain name' and IP-address" + @echo "go here -> ${PREFIX}/${DISTNAME}/etc/bb-hosts" + @echo "" + @echo "c) configure -> ${PREFIX}/${DISTNAME}/etc/bbdef.sh" + @echo "d) configure -> ${PREFIX}/${DISTNAME}/etc/bbinc.sh" + @echo "" + @echo "e) You need to have a running WWW server (apache)" + @echo "" + @echo "After that, you can startup the big brother service by typing" + @echo " ${PREFIX}/${DISTNAME}/runbb.sh &" + @echo "" + @echo "and watching your systems status by viewing this URL with" + @echo "Netscape or another WWW browser" + @echo " http://localhost/bb/bb.html" + @echo "" + @echo "Look here for a life sample:" + @echo " http://www.menet.umn.edu/~clolson/bb/bb.html" + @echo "" + @echo "Have fun doing it remotely - Andreas ///" + +.include <bsd.port.mk> diff --git a/net/bb/distinfo b/net/bb/distinfo new file mode 100644 index 0000000..00d6195 --- /dev/null +++ b/net/bb/distinfo @@ -0,0 +1 @@ +MD5 (bb-src.tgz) = 1636465540a90e78c336f7c224d95d01 diff --git a/net/bb/files/Makefile b/net/bb/files/Makefile new file mode 100644 index 0000000..75f54b1 --- /dev/null +++ b/net/bb/files/Makefile @@ -0,0 +1,2 @@ +all: + ( cd src && make all install ) diff --git a/net/bb/files/patch-aa b/net/bb/files/patch-aa new file mode 100644 index 0000000..ddae4db --- /dev/null +++ b/net/bb/files/patch-aa @@ -0,0 +1,23 @@ +--- src/Makefile.freebsd.orig Sun Nov 17 19:03:26 1996 ++++ src/Makefile.freebsd Sun Nov 17 19:04:10 1996 +@@ -1,19 +1,5 @@ +-SHELL = /bin/sh +-MAKE = make +-CC = gcc +- +-# FLAGS REQUIRED FOR PORTING +-# SUNOS 4.1.4, HPUX 10.0, and LINUX NEED NOTHING DEFINED +-# EXCEPT MAYBE THE OPTIMIZER +-# CFLAGS=-O +-# LIBS= +- +-# SOLARIS +-#CFLAGS=-DBZERO -O +-#LIBS = -ll -lnsl -lsocket # SOLARIS NEEDS THIS +- + # FREEBSD NEEDS SPECIAL ZOMBIE HANDLING +-CFLAGS=-DZOMBIE -O ++CFLAGS+=-DZOMBIE + + all: bb bbd touchtime + diff --git a/net/bb/pkg-comment b/net/bb/pkg-comment new file mode 100644 index 0000000..c1b899a --- /dev/null +++ b/net/bb/pkg-comment @@ -0,0 +1 @@ +bb - the big brother Unix Network Monitor diff --git a/net/bb/pkg-descr b/net/bb/pkg-descr new file mode 100644 index 0000000..9247e3b --- /dev/null +++ b/net/bb/pkg-descr @@ -0,0 +1,22 @@ +--- Big Brother --- + a Web-based Unix Network Monitoring and Notification System + by Sean MacGuire <sean@iti.qc.ca> + +Home Page: http://www.iti.qc.ca/iti/users/sean/bb-dnld/ +A Life Example: http://www.menet.umn.edu/~clolson/bb/bb.html (40 machines) + +d e s i g n - Web-based status display + - Notification via Pager + - Modular Client-server design + - Configurable warning and panic levels + - Multi-platform + - Easily integrated with other packages + - Includes all Source Code + - And it's Free + +m o n i t o r s - connectivity via ping or telnet + - http servers up and running + - disk space usage + - cpu usage + - essential processes are still running + - system-generated messages and warnings diff --git a/net/bb/pkg-plist b/net/bb/pkg-plist new file mode 100644 index 0000000..dce8581 --- /dev/null +++ b/net/bb/pkg-plist @@ -0,0 +1,47 @@ +bb/README +bb/bin/bb +bb/bin/bb-local.sh +bb/bin/bb-network.sh +bb/bin/bb-page.sh +bb/bin/bbd +bb/bin/touchtime +bb/doc/README +bb/doc/STRUCTURE +bb/doc/bbclient +bb/doc/bbconfig +bb/etc/bb-hosts +bb/etc/bbdef.sh +bb/etc/bbinc.sh +bb/etc/bbsys.freebsd +bb/etc/bbsys.hpux +bb/etc/bbsys.linux +bb/etc/bbsys.local +bb/etc/bbsys.sh +bb/etc/bbsys.solaris +bb/etc/bbsys.sunos +bb/runbb.sh +bb/web/mkbb.bkg +bb/web/mkbb.cols +bb/web/mkbb.sh +bb/web/mkbb2.sh +bb/www/bb-help.html +bb/www/bb-info.html +bb/www/bb-page.html +bb/www/bb.html +bb/www/bb2.html +bb/www/gifs/bb-diag.gif +bb/www/gifs/bb.gif +bb/www/gifs/bkg-green.gif +bb/www/gifs/bkg-purple.gif +bb/www/gifs/bkg-red.gif +bb/www/gifs/bkg-yellow.gif +bb/www/gifs/blue.gif +bb/www/gifs/buthelp.gif +bb/www/gifs/butinfo.gif +bb/www/gifs/butpage.gif +bb/www/gifs/butview.gif +bb/www/gifs/green.gif +bb/www/gifs/purple.gif +bb/www/gifs/red.gif +bb/www/gifs/yellow.gif +bb/www/logs/later diff --git a/net/bb/scripts/configure b/net/bb/scripts/configure new file mode 100644 index 0000000..b27a5e47 --- /dev/null +++ b/net/bb/scripts/configure @@ -0,0 +1,15 @@ +#!/bin/sh + +cd $WRKSRC || exit 1 + +mv runbb.sh runbb.sh.orig +sed -e "s:/home/sean/bb:$PREFIX/bb:g" \ + < runbb.sh.orig \ + > runbb.sh + +HOSTNAME=`hostname` + +mv $WRKSRC/etc/bp-hosts $WRKSRC/etc/bp-hosts.orig +sed -e "s:@@IP@@:172.16.1.1:" -e "s:@@HOST@@:$HOSTNAME:g" \ + < $FILESDIR/bb-hosts \ + > $WRKSRC/etc/bb-hosts |