summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-03-09 23:05:48 +0000
committerkris <kris@FreeBSD.org>2002-03-09 23:05:48 +0000
commitdd7b5a5b82f8a197628354c808612ff1ca2d42df (patch)
treee742ca6794088bf60b724bedbb2d7c916df6acaf /Tools
parent74ee11202cde360735062f47db4406d26fe2f2c1 (diff)
downloadFreeBSD-ports-dd7b5a5b82f8a197628354c808612ff1ca2d42df.zip
FreeBSD-ports-dd7b5a5b82f8a197628354c808612ff1ca2d42df.tar.gz
* Document the purpose of this script
* Don't display errors if the bindist tarball is not yet on the client * Copy over some more files required to set up the client
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 5c72e49..a9ec030 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
OpenPOWER on IntegriCloud