aboutsummaryrefslogtreecommitdiffstats
path: root/net/bb/scripts/configure
diff options
context:
space:
mode:
Diffstat (limited to 'net/bb/scripts/configure')
-rw-r--r--net/bb/scripts/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/bb/scripts/configure b/net/bb/scripts/configure
new file mode 100644
index 000000000000..b27a5e4722a8
--- /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