forked from Lainports/freebsd-ports
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)
15 lines
310 B
Bash
15 lines
310 B
Bash
#!/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
|