diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-09-15 21:53:59 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-09-15 21:53:59 +0000 |
commit | ec25ae9a13113dd75cfc815415270968347dac99 (patch) | |
tree | 6c2bc69be8a63b82f825b296c9421b479191a14d /Tools | |
parent | 46c968b9a4285605cf6e5575ee9629e38de42181 (diff) | |
download | ports-ec25ae9a13113dd75cfc815415270968347dac99.tar.gz ports-ec25ae9a13113dd75cfc815415270968347dac99.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index e379b368617e..13e533fa1f5b 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -15,6 +15,7 @@ cleanup() umount -f ${chroot}/a/ports umount -f ${chroot}/usr/opt/doc umount -f ${chroot}/usr/src + umount -f ${chroot}/dev if [ $noclean = 0 -o $error = 0 ]; then rm -rf ${chroot}/tmp/* @@ -77,12 +78,12 @@ fi args="$*" -pkgname=$(basename $1 .tgz) +buildenv ${pb} ${branch} + +pkgname=$(basename $1 ${PKGSUFFIX}) dirname=$2 shift 2 -buildenv ${pb} ${branch} - export WRKDIRPREFIX=/tmp export DISTDIR=/tmp/distfiles export PACKAGES=/tmp/packages @@ -134,7 +135,6 @@ for dir in ${chrootdir}/*; do done if [ ${found} != 1 ]; then - chroot=${chrootdir}/$$ while [ -d ${chroot} ]; do chroot=${chroot}- @@ -173,6 +173,8 @@ 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 +mount -t devfs foo ${chroot}/dev + # just in case... for dir in ${cleandirs}; do if ! rm -rf ${chroot}${dir} >/dev/null 2>&1; then @@ -209,10 +211,13 @@ if [ ${arch} = "i386" ]; then fi # Install packages -for i in ${chroot}/packages/*.tgz; do +# XXX Fix once perl.tbz available +for i in ${chroot}/packages/*.tbz ; do chroot ${chroot} pkg_add /packages/`basename $i` done +chroot ${chroot} /usr/local/bin/use.perl port + # Don't record packages which will interfere with building versions of the # packages we just installed. rm -rf ${chroot}/var/db/pkg/* @@ -259,7 +264,7 @@ if [ "${error}" = 0 ]; then if [ "${error}" = 0 ]; then tar -C ${chroot}/tmp -cf - packages | \ ssh -a -x $master tar --unlink -C ${pb}/${branch} -xvf - - ssh -a -x $master [ -f ${pb}/${branch}/packages/All/${pkgname}.tgz ] '&&' touch ${pb}/${branch}/packages/All/${pkgname}.tgz + ssh -a -x $master [ -f ${pb}/${branch}/packages/All/${pkgname}${PKGSUFFIX} ] '&&' touch ${pb}/${branch}/packages/All/${pkgname}${PKGSUFFIX} ssh $master rm -f ${pb}/${branch}/errors/${pkgname}.log else scp ${chroot}/tmp/${pkgname}.log ${master}:${pb}/${branch}/errors/${pkgname}.log |