diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-05-13 03:43:07 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-05-13 03:43:07 +0000 |
commit | abd2d0f62e63780ebb930e8caeae61cabdfc2d1c (patch) | |
tree | 40e1fc2a09721095fb2725e9cce039c88290aeb0 /Tools | |
parent | 7e69da3672fcc7c098dd3d1ba8c91287c24adc87 (diff) | |
download | ports-abd2d0f62e63780ebb930e8caeae61cabdfc2d1c.tar.gz ports-abd2d0f62e63780ebb930e8caeae61cabdfc2d1c.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 33 |
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 |