aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-01-22 04:56:37 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-01-22 04:56:37 +0000
commitf708dd4383b03380772efb6c2378bf4feebba80e (patch)
tree6ff98c805b9e96ed2a4064d27aa9c2ec5590d973
parent560f97f20b2165b8e823684d815a205e87108394 (diff)
downloadports-f708dd4383b03380772efb6c2378bf4feebba80e.tar.gz
ports-f708dd4383b03380772efb6c2378bf4feebba80e.zip
Notes
-rwxr-xr-xTools/portbuild/scripts/portbuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 72fa76618691..e6d56beb0e56 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -82,7 +82,6 @@ cleanup()
fi
cleanup_mount ${chroot} /a/ports
- cleanup_mount ${chroot} /usr/opt/doc
cleanup_mount ${chroot} /usr/src
cleanup_mount ${chroot} /dev
test -d ${chroot}/root/.ccache && cleanup_mount ${chroot} /root/.ccache
@@ -199,13 +198,13 @@ ulimit -f 614400
ulimit -t 3600
# directories to clean
-cleandirs="/usr/local /usr/X11R6 /compat /var/db/pkg"
+cleandirs="${LOCALBASE} ${X11BASE} /compat /var/db/pkg"
# 15 minutes
export FTP_TIMEOUT=900
export HTTP_TIMEOUT=900
-export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin:${LOCALBASE}/sbin:${LOCALBASE}/bin:${X11BASE}/bin
echo "building $pkgname in $chroot"
@@ -281,10 +280,9 @@ fi
mount_fs ${pb}/${arch}/${branch}/ports ${chroot}/a/ports ${master}
ln -sf ../a/ports ${chroot}/usr/ports
-mkdir -p ${chroot}/usr/src ${chroot}/usr/opt/doc
+mkdir -p ${chroot}/usr/src
mount_fs ${pb}/${arch}/${branch}/src ${chroot}/usr/src ${master}
-mount_fs ${pb}/${arch}/${branch}/doc ${chroot}/usr/opt/doc ${master}
mount -t devfs foo ${chroot}/dev
@@ -306,18 +304,16 @@ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.var.dist -p ${chroot}/var \
>/dev/null 2>&1
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.usr.dist -p ${chroot}/usr \
>/dev/null 2>&1
-mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.local.dist -p ${chroot}/usr/local \
+mkdir -p ${chroot}${LOCALBASE}
+mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.local.dist -p ${chroot}${LOCALBASE} \
>/dev/null 2>&1
-mkdir ${chroot}/usr/X11R6
+mkdir -p ${chroot}${X11BASE}
if [ $X_WINDOW_SYSTEM = "xfree86-3" ]; then
- mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11.dist -p ${chroot}/usr/X11R6 \
- >/dev/null 2>&1
-elif [ $X_WINDOW_SYSTEM = "xorg" ]; then
- mtree -deU -f ${chroot}/a/ports/x11-servers/xorg-server/files/BSD.x11-xorg.dist -p ${chroot}/usr/X11R6 \
+ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11.dist -p ${chroot}${X11BASE} \
>/dev/null 2>&1
else
- mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11-4.dist -p ${chroot}/usr/X11R6 \
+ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11-4.dist -p ${chroot}${X11BASE} \
>/dev/null 2>&1
fi