mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
22 lines
597 B
Bash
22 lines
597 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
cd $WRKSRC || exit 1
|
|
|
|
# some tuneable global defines
|
|
WEBHOST=`hostname`
|
|
SLEEPVAL=300
|
|
|
|
# globally set BBHOME here
|
|
perl -pi -e "s=!!PREFIX!!=$PREFIX=" ${WRKSRC}/runbb.sh
|
|
# globally adjust sleepvalue
|
|
perl -pi -e "s=!!BBSLEEP!!=$SLEEPVAL=" ${WRKSRC}/runbb.sh
|
|
# set paths for bbclient tar archives
|
|
perl -pi -e "s=!!PREFIX!!=$PREFIX=g" ${WRKSRC}/doc/bbclient
|
|
# set webhost
|
|
perl -pi -e "s=!!WEBHOST!!=$WEBHOST=g" ${WRKSRC}/web/bb-ack.sh
|
|
perl -pi -e "s=!!WEBHOST!!=$WEBHOST=g" ${WRKSRC}/web/bb-hist.sh
|
|
# set hostname
|
|
perl -pi -e "s=!!HOSTNAME!!=$HOSTNAME=g" ${WRKSRC}/etc/bb-hosts
|