aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-05-17 08:27:27 +0800
committerkris <kris@FreeBSD.org>2003-05-17 08:27:27 +0800
commit054819d9501bee7e199972e4188e807b09b2b01d (patch)
treeca5735149860b577282ed36ce9cecc52c8f4c6b8 /Tools
parentd74d0432bd62bf17da6d609b6dd6fd910da01cf2 (diff)
downloadfreebsd-ports-gnome-054819d9501bee7e199972e4188e807b09b2b01d.tar.gz
freebsd-ports-gnome-054819d9501bee7e199972e4188e807b09b2b01d.tar.zst
freebsd-ports-gnome-054819d9501bee7e199972e4188e807b09b2b01d.zip
Only transfer the build distfiles to bento if requested.
Switch back to chroot builds until I can debug the remaining problems with jail builds.
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