summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2005-04-11 22:08:14 +0000
committerkris <kris@FreeBSD.org>2005-04-11 22:08:14 +0000
commita2520f6cede9df42982af2f1390fed3556e471d3 (patch)
treeb827dbef12e535b4fc315ca134a514c97957be79 /Tools
parent6a4b611eb5c1e1cddd4311268a81b9d0989acd47 (diff)
downloadFreeBSD-ports-a2520f6cede9df42982af2f1390fed3556e471d3.zip
FreeBSD-ports-a2520f6cede9df42982af2f1390fed3556e471d3.tar.gz
Use WRKDIRPREFIX instead of hardcoded value.
Clean up after we're done.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 42641e5..50198b1 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -275,7 +275,8 @@ rm -rf ${chroot}/usr/ports
# Don't build in a world-writable directory because some ports hardcode
# this path and try to load things from it at runtime, which is bad for
# user security
-mkdir ${chroot}/work
+rm -rf ${chroot}/${WRKDIRPREFIX}
+mkdir -p ${chroot}/${WRKDIRPREFIX}
if [ ! -z "${ccache_dir}" ]; then
mkdir -p ${chroot}/root/.ccache/
@@ -381,4 +382,5 @@ if [ "${error}" = 0 ]; then
error=$(cat ${chroot}/tmp/status)
fi
+rm -rf ${chroot}/${WRKDIRPREFIX}
exit $error
OpenPOWER on IntegriCloud