1996-11-17 15:02:13 -05:00
|
|
|
# New ports collection makefile for: bb
|
1997-05-03 23:26:54 -04:00
|
|
|
# Version required: 1.04H
|
1996-11-17 15:02:13 -05:00
|
|
|
# Date created: So 17 Nov 1996 16:59:23 MET
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1998-01-31 06:58:57 -05:00
|
|
|
# $Id: Makefile,v 1.21 1998/01/31 11:44:35 andreas Exp $
|
1996-11-17 15:02:13 -05:00
|
|
|
#
|
|
|
|
|
1998-01-31 06:44:43 -05:00
|
|
|
DISTNAME= bb-1.06a
|
1996-11-18 00:35:30 -05:00
|
|
|
CATEGORIES= net
|
1998-01-31 06:44:43 -05:00
|
|
|
MASTER_SITES= http://freefall.freebsd.org/~andreas/download/
|
1996-11-17 15:02:13 -05:00
|
|
|
|
1997-10-09 17:04:47 -04:00
|
|
|
MAINTAINER= andreas@FreeBSD.ORG
|
1996-11-17 15:02:13 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/sbin/httpd:${PORTSDIR}/www/apache
|
|
|
|
|
1997-01-06 08:54:53 -05:00
|
|
|
# The FreeBSD Ports Team has permission to include this in our CDROM
|
|
|
|
# from the author, but others who wish to do likewise will have to
|
|
|
|
# contact Sean MacGuire <sean@iti.qc.ca>.
|
1997-01-06 03:51:42 -05:00
|
|
|
|
1998-01-31 06:44:43 -05:00
|
|
|
WRKSRC= ${WRKDIR}/bb
|
|
|
|
|
1996-11-17 15:02:13 -05:00
|
|
|
post-configure:
|
1997-07-13 14:49:31 -04:00
|
|
|
( cd ${WRKSRC}/doc; ${SH} bbconfig freebsd )
|
1996-11-30 20:23:27 -05:00
|
|
|
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
1996-11-17 15:02:13 -05:00
|
|
|
|
1996-11-26 04:16:00 -05:00
|
|
|
do-install:
|
1998-01-31 06:44:43 -05:00
|
|
|
@${MKDIR} ${PREFIX}/bb/bin
|
|
|
|
@${MKDIR} ${PREFIX}/bb/etc
|
|
|
|
@${MKDIR} ${PREFIX}/bb/web
|
|
|
|
@${MKDIR} ${PREFIX}/bb/www/gifs
|
|
|
|
@${MKDIR} ${PREFIX}/bb/www/logs
|
|
|
|
@${MKDIR} ${PREFIX}/bb/www/notes
|
|
|
|
@${MKDIR} ${PREFIX}/bb/tmp
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/bb
|
|
|
|
@${TOUCH} ${PREFIX}/bb/tmp/.keep_me
|
1997-10-13 16:19:25 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/runbb.sh \
|
1998-01-31 06:58:57 -05:00
|
|
|
${PREFIX}/bb
|
1996-11-17 15:02:13 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
1998-01-31 06:44:43 -05:00
|
|
|
${PREFIX}/bb/README
|
|
|
|
.for file in bb-local.sh bb-network.sh bb-page.sh sendmsg
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/$(file) \
|
|
|
|
${PREFIX}/bb/bin
|
|
|
|
.endfor
|
|
|
|
.for file in bb bbd bbnet touchtime
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/$(file) \
|
|
|
|
${PREFIX}/bb/bin
|
|
|
|
.endfor
|
|
|
|
.for file in FAQ README README.SMS STRUCTURE bbclient bbconfig
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/$(file) \
|
|
|
|
${PREFIX}/share/doc/bb
|
|
|
|
.endfor
|
|
|
|
.for file in bb-hosts bbdef.sh bbinc.sh bbsys.aix bbsys.freebsd bbsys.hpux \
|
|
|
|
bbsys.hpux9 bbsys.irix bbsys.linux bbsys.local bbsys.netbsd \
|
|
|
|
bbsys.osf bbsys.redhat bbsys.sco bbsys.sco3 bbsys.sh \
|
|
|
|
bbsys.solaris bbsys.sunos bbsys.ultrix bbsys.unixware \
|
|
|
|
numeric.scr security.INFO sms.scr
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/$(file) \
|
|
|
|
${PREFIX}/bb/etc
|
|
|
|
.endfor
|
|
|
|
.for file in mkbb.bkg mkbb.cols mkbb.sh mkbb2.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/web/$(file) \
|
|
|
|
${PREFIX}/bb/web
|
|
|
|
.endfor
|
|
|
|
.for file in bb-faq.html bb-help.html bb-info.html bb-page.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/www/$(file) \
|
|
|
|
${PREFIX}/bb/www
|
|
|
|
.endfor
|
1997-01-26 13:44:39 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/www/bb-pager.sh \
|
|
|
|
${PREFIX}/www/cgi-bin/bb-pager.sh
|
|
|
|
@ln -sf ${PREFIX}/www/cgi-bin/bb-pager.sh \
|
1998-01-31 06:44:43 -05:00
|
|
|
${PREFIX}/bb/www/bb-pager.sh
|
|
|
|
.for file in bb-diag.gif bb.gif bb2.gif bbbut.gif bkg-green.gif \
|
|
|
|
bkg-purple.gif bkg-red.gif bkg-yellow.gif blue.gif \
|
|
|
|
buthelp.gif butinfo.gif butpage.gif butview.gif clear.gif \
|
|
|
|
green.gif nb-bbbut.gif nb-red.gif nb-yellow.gif purple.gif \
|
|
|
|
red.gif yellow.gif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/www/gifs/$(file) \
|
|
|
|
${PREFIX}/bb/www/gifs
|
|
|
|
.endfor
|
1996-11-17 15:02:13 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/www/logs/later \
|
1998-01-31 06:44:43 -05:00
|
|
|
${PREFIX}/bb/www/logs/later
|
1996-11-30 20:23:27 -05:00
|
|
|
@${RM} -f ${PREFIX}/www/data/bb
|
1998-01-31 06:44:43 -05:00
|
|
|
@ln -sf ${PREFIX}/bb/www ${PREFIX}/www/data/bb
|
|
|
|
@ln -sf bb.html ${PREFIX}/bb/www/index.html
|
1996-11-17 15:02:13 -05:00
|
|
|
@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"
|
1998-01-31 06:44:43 -05:00
|
|
|
@echo "go here -> ${PREFIX}/bb/etc/bb-hosts"
|
1996-11-17 15:02:13 -05:00
|
|
|
@echo ""
|
1998-01-31 06:44:43 -05:00
|
|
|
@echo "c) configure -> ${PREFIX}/bb/etc/bbdef.sh"
|
|
|
|
@echo "d) configure -> ${PREFIX}/bb/etc/bbinc.sh"
|
1996-11-17 15:02:13 -05:00
|
|
|
@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"
|
1998-01-31 06:44:43 -05:00
|
|
|
@echo " ${PREFIX}/bb/runbb.sh &"
|
1996-11-17 15:02:13 -05:00
|
|
|
@echo ""
|
|
|
|
@echo "and watching your systems status by viewing this URL with"
|
|
|
|
@echo "Netscape or another WWW browser"
|
1997-01-20 06:46:02 -05:00
|
|
|
@echo " http://localhost/bb"
|
1996-11-17 15:02:13 -05:00
|
|
|
@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>
|