mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
* 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
This commit is contained in:
parent
976b001efd
commit
0875e2f60d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55790
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user