aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-03-09 23:05:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-03-09 23:05:48 +0000
commit0875e2f60df4c94267a729b472730ee00668ddce (patch)
tree4687a6b986ffa1b611ffa55de6e2f9f3fc9f8c17 /Tools
parent976b001efddcddf0fe0058dfc426469eac390a15 (diff)
downloadports-0875e2f60df4c94267a729b472730ee00668ddce.tar.gz
ports-0875e2f60df4c94267a729b472730ee00668ddce.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/setupnode13
1 files changed, 12 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode
index 5c72e49e117c..a9ec030ca28c 100755
--- a/Tools/portbuild/scripts/setupnode
+++ b/Tools/portbuild/scripts/setupnode
@@ -1,4 +1,10 @@
#!/bin/sh
+#
+# Script run on the clients, to set them up in preparation for building
+# packages. This includes setting up parts of the /var/portbuild
+# directory hierarchy, the portbuild script and the bindist.tar file
+# for populating the build chroots.
+
nocopy=0
if [ "x$1" = "x-nocopy" ]; then
nocopy=1
@@ -27,9 +33,14 @@ killall make fetch >/dev/null 2>&1
mkdir -p $2/scripts $2/$3/tarballs $2/$3/chroot
scp -p $1:$2/scripts/portbuild $2/scripts
+scp -p $1:$2/portbuild.conf $2
+
+scp -p $1:$2/$3/UNAME_TARGET $2/$3/tarballs/
if [ "$nocopy" = 0 ]; then
- md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}')
+ if [ -f $2/$3/tarballs/bindist.tar ]; then
+ md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}')
+ fi
if [ "$md5" = "$4" ]; then
echo "not copying bindist to $(hostname -s) since it is already up to date"
else