aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-05-17 00:27:27 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-05-17 00:27:27 +0000
commitce395d3474bd124c2161e69f5af031d577f5aa12 (patch)
treefd70599087bb2e778378bc7337ae6a93c1ee5dfb /Tools
parent116e3b3e87848c5aca61d0ff56ce71eec76c609c (diff)
downloadports-ce395d3474bd124c2161e69f5af031d577f5aa12.tar.gz
ports-ce395d3474bd124c2161e69f5af031d577f5aa12.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 29bf56beb4f5..94d90111968c 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -81,7 +81,11 @@ if [ "x$1" = "x-nodummy" ]; then
export NODUMMY=1
shift
fi
-
+nodistfiles=1
+if [ "x$1" = "x-distfiles" ]; then
+ nodistfiles=0
+ shift
+fi
args="$*"
buildenv ${pb} ${arch} ${branch}
@@ -249,16 +253,19 @@ fi
if [ "${error}" = 0 ]; then
# make checksum succeeded
ssh -a -x ${user}@$master mkdir -p ${pb}/${arch}/${branch}/distfiles/.pbtmp/${pkgname}
- tar -C ${chroot}/tmp/distfiles -cf - . | \
- ssh -a -x ${user}@$master tar --unlink -C ${pb}/${arch}/${branch}/distfiles/.pbtmp/${pkgname} -xvf -
- ssh -a -x ${user}@$master touch ${pb}/${arch}/${branch}/distfiles/.pbtmp/${pkgname}/.done
+ if [ "$nodistfiles" = "0" ]; then
+ tar -C ${chroot}/tmp/distfiles -cf - . | \
+ ssh -a -x ${user}@$master tar --unlink -C ${pb}/${arch}/${branch}/distfiles/.pbtmp/${pkgname} -xvf -
+ ssh -a -x ${user}@$master touch ${pb}/${arch}/${branch}/distfiles/.pbtmp/${pkgname}/.done
+ fi
# phase 2, make package
ln -sf ${pkgname}.log2 ${chroot}/tmp/make.log
- ifconfig lo0 alias 10.${ip1}.${ip2}.${ip3}/32
- jail ${chroot} jail-${chroot} 10.${ip1}.${ip2}.${ip3} /usr/bin/nice -n $nice /buildscript ${dirname} 2 > ${chroot}/tmp/${pkgname}.log2 2>&1
- ifconfig lo0 delete 10.${ip1}.${ip2}.${ip3}
+# ifconfig lo0 alias 10.${ip1}.${ip2}.${ip3}/32
+# jail ${chroot} jail-${chroot} 10.${ip1}.${ip2}.${ip3} /usr/bin/nice -n $nice /buildscript ${dirname} 2 > ${chroot}/tmp/${pkgname}.log2 2>&1
+# ifconfig lo0 delete 10.${ip1}.${ip2}.${ip3}
+ chroot ${chroot} /buildscript ${dirname} 2 > ${chroot}/tmp/${pkgname}.log2 2>&1
grep pnohang ${chroot}/tmp/${pkgname}.log2
cat ${chroot}/tmp/${pkgname}.log2 >> ${chroot}/tmp/${pkgname}.log