#!/bin/sh # # buildsuccess # configurable variables pb=/var/portbuild arch=$1 shift . ${pb}/${arch}/portbuild.conf . ${pb}/scripts/buildenv branch=$1 pkgname=$2 shift 2 buildenv ${pb} ${arch} ${branch} # Don't pick up installed packages from the host export LOCALBASE=/nonexistentlocal export X11BASE=/nonexistentx index=${PORTSDIR}/${INDEXFILE} portloc=$(grep "^$pkgname|" ${index} | cut -f 2 -d \| | sed s,/usr/ports/,,) cd ${pb}/${arch}/${branch} if grep -q "^${portloc}|" failure; then echo | mail -s "${pkgname} now builds on ${arch} ${branch}" kris@FreeBSD.org krion@FreeBSD.org grep -v "^${portloc}|" failure > failure.new mv failure.new failure fi if [ -L ${pb}/${arch}/${branch}/latest/${portloc} ]; then rm -f ${pb}/${arch}/${branch}/latest/${portloc} fi