aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-05-13 11:43:07 +0800
committerkris <kris@FreeBSD.org>2002-05-13 11:43:07 +0800
commiteb78656e9e62b2ade3fc10b3fd663e9ed63d1966 (patch)
tree8993f516e19ea04be298a4a09854431c398baaf3
parent4ecea0791cb0451324147fa8e1a300a993423f5a (diff)
downloadfreebsd-ports-gnome-eb78656e9e62b2ade3fc10b3fd663e9ed63d1966.tar.gz
freebsd-ports-gnome-eb78656e9e62b2ade3fc10b3fd663e9ed63d1966.tar.zst
freebsd-ports-gnome-eb78656e9e62b2ade3fc10b3fd663e9ed63d1966.zip
- Catch up to buildenv changes.
- Always update UNAME_TARGET with each build - Populate mtree hierarchies better
-rwxr-xr-xTools/portbuild/scripts/portbuild33
1 files changed, 21 insertions, 12 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 1b9bd12fd578..87727dcc240a 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -79,7 +79,7 @@ pkgname=$(basename $1 .tgz)
dirname=$2
shift 2
-buildenv ${branch}
+buildenv ${pb} ${branch}
export WRKDIRPREFIX=${buildroot}
export DISTDIR=/tmp/distfiles
@@ -144,12 +144,11 @@ if [ ${found} != 1 ]; then
# to be able to run ps and killall inside chroot area
cp -p /bin/ps ${chroot}/bin
cp -p /usr/bin/killall ${chroot}/usr/bin
-
- # Set up desired uname version
- echo ${OSREL}-${BRANCH} > ${chroot}/usr/bin/UNAME_TARGET
-
fi
+# Set up desired uname version
+echo ${OSREL}-${BRANCH} > ${chroot}/usr/bin/UNAME_TARGET
+
trap "cleanup ${chroot} ${noclean} ${error} \"${cleandirs}\" ${pkgname}" 1 2 3 9 10 11 15
rm -rf ${chroot}/tmp/*
@@ -171,13 +170,6 @@ mkdir -p ${chroot}/usr/src ${chroot}/usr/opt/doc
mount -r ${master}:${pb}/${branch}/src ${chroot}/usr/src
mount -r ${master}:${pb}/usr/opt/doc ${chroot}/usr/opt/doc
-mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.root.dist -p ${chroot} \
- >/dev/null 2>&1
-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
-
# just in case...
for dir in ${cleandirs}; do
if ! rm -rf ${chroot}${dir} >/dev/null 2>&1; then
@@ -188,6 +180,23 @@ done
rm -rf ${chroot}/var/db/pkg/*
+mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.root.dist -p ${chroot} \
+ >/dev/null 2>&1
+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 \
+ >/dev/null 2>&1
+
+if [ $XFREE86_VERSION = 4 ]; then
+ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11-4.dist -p ${chroot}/usr/X11R6 \
+ >/dev/null 2>&1
+else
+ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.x11.dist -p ${chroot}/usr/X11R6 \
+ >/dev/null 2>&1
+fi
+
chroot ${chroot} /sbin/ldconfig -m /usr/lib/compat
chroot ${chroot} /sbin/ldconfig -R
chroot ${chroot} /sbin/ldconfig -aout -m /usr/lib/aout