forked from Lainports/freebsd-ports
* Catch up to build ID directory changes * Optimize by using ECHO_MSG=true instead of /usr/bin/true * Try harder to avoid pollution from local host
41 lines
808 B
Bash
Executable file
41 lines
808 B
Bash
Executable file
#!/bin/sh
|
|
|
|
usage () {
|
|
echo "usage: makerestr arch branch buildid"
|
|
exit 1
|
|
}
|
|
if [ $# -ne 3 ]; then
|
|
usage
|
|
fi
|
|
|
|
# configurable variables
|
|
pb=/var/portbuild
|
|
arch=$1
|
|
branch=$2
|
|
buildid=$3
|
|
shift
|
|
|
|
. ${pb}/${arch}/portbuild.conf
|
|
. ${pb}/scripts/buildenv
|
|
|
|
builddir=${pb}/${arch}/${branch}/builds/${buildid}
|
|
|
|
buildenv ${pb} ${arch} ${branch} ${builddir}
|
|
|
|
duds=${builddir}/duds
|
|
|
|
unset DISPLAY
|
|
|
|
export __MAKE_SHELL=/rescue/sh
|
|
export PACKAGE_BUILDING=1
|
|
export LOCALBASE=/nonexistentlocal
|
|
export X11BASE=/nonexistentx
|
|
export LINUXBASE=/nonexistentlinux
|
|
export PKG_DBDIR=/nonexistentpkg
|
|
export PORT_DBDIR=/nonexistentport
|
|
|
|
cd ${PORTSDIR}
|
|
make -j4 ECHO_MSG=true clean-restricted-list \
|
|
| sed -e "s./usr/ports/packages/.${builddir}/packages/.g" \
|
|
-e "s./usr/ports/.${builddir}/ports/.g" \
|
|
> ${builddir}/restricted.sh
|