diff options
author | kris <kris@FreeBSD.org> | 2002-09-16 05:53:59 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-09-16 05:53:59 +0800 |
commit | 6bd978565ca8f4d629acb70515a35f082aff1aa2 (patch) | |
tree | 18aebb6bd2c1a2864ffd8d0114bb8b7e49f6b717 /Tools/portbuild | |
parent | db9ad87835af4e14fc2bd90ad081328fe3618789 (diff) | |
download | freebsd-ports-gnome-6bd978565ca8f4d629acb70515a35f082aff1aa2.tar.gz freebsd-ports-gnome-6bd978565ca8f4d629acb70515a35f082aff1aa2.tar.zst freebsd-ports-gnome-6bd978565ca8f4d629acb70515a35f082aff1aa2.zip |
* Catch up to .tbz packages
* Hack to use perl package on -current (needs to be done better somehow)
* Use buildenv
Diffstat (limited to 'Tools/portbuild')
-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 |