aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2007-02-18 17:05:28 +0800
committerkris <kris@FreeBSD.org>2007-02-18 17:05:28 +0800
commite3c3ced1e77834c8a9b6b2416307abb9fd82bdf5 (patch)
tree6c6b73f36953490549667234ab07609031c6e1f6 /Tools
parent0dca7777d287dc1c8a8c44d9c6f8e6384ea3b845 (diff)
downloadfreebsd-ports-gnome-e3c3ced1e77834c8a9b6b2416307abb9fd82bdf5.tar.gz
freebsd-ports-gnome-e3c3ced1e77834c8a9b6b2416307abb9fd82bdf5.tar.zst
freebsd-ports-gnome-e3c3ced1e77834c8a9b6b2416307abb9fd82bdf5.zip
Increase resource limits to 400MB filesize and 2 hours CPU limit per
process. Thankyou openoffice! Pass in the jail IP address in the JAIL_ADDR environment variable
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 32b1f38b4da4..0d61b36fcffc 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -129,12 +129,12 @@ unset MAKEFLAGS
unset PORTSDIR
export SRCBASE=/usr/src
-# wait 1 hour before killing build with no output
+# wait 2 hours before killing build with no output
export TIMEOUT=7200
-# to prevent runaway processes -- 300 meg file size limit, one hour CPU limit
-ulimit -f 614400
-ulimit -t 3600
+# to prevent runaway processes -- 400 meg file size limit, 2 hours CPU limit
+ulimit -f 819200
+ulimit -t 7200
# directories to clean
cleandirs="${LOCALBASE} ${X11BASE} /compat /var/db/pkg"
@@ -311,7 +311,7 @@ if [ "${error}" = 0 ]; then
if [ "${use_jail}" = 1 ]; then
ifconfig lo0 alias 127.${ip1}.${ip2}.${ip3}/32
- jail -J ${chroot}/tmp/jail.id ${chroot} jail-${chrootpid} 127.${ip1}.${ip2}.${ip3} /usr/bin/env HTTP_PROXY=${http_proxy} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1
+ jail -J ${chroot}/tmp/jail.id ${chroot} jail-${chrootpid} 127.${ip1}.${ip2}.${ip3} /usr/bin/env JAIL_ADDR=127.${ip1}.${ip2}.${ip3} HTTP_PROXY=${http_proxy} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1
ifconfig lo0 delete 127.${ip1}.${ip2}.${ip3}
else
chroot ${chroot} /usr/bin/nice -n $nice /buildscript ${dirname} 2 "$ED" "$PD" "$FD" "$BD" "$RD" > ${chroot}/tmp/${pkgname}.log2 2>&1