1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# Simulate the build environment. 7eval $(make -C ${SRCDIR} TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} buildenvvars) 8export WRKDIRPREFIX=/tmp/ports.${TARGET} 9export WSTAGEDIR=${WSTAGEDIR} 10export REPODIR=${REPODIR} 11export PKG_VERSION=${PKG_VERSION} 12export WRKDIR=$(make -C ${PORTSDIR}/ports-mgmt/pkg -V WRKDIR) 13 14make -C ${PORTSDIR}/ports-mgmt/pkg TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ 15 CONFIGURE_ARGS="--host=$(uname -m)-portbld-freebsd${REVISION}" \ 16 stage create-manifest 17 18pkg -o ABI_FILE=${WSTAGEDIR}/bin/sh \ 19 create -v -m ${WRKDIR}/.metadir/ \ 20 -r ${WRKDIR}/stage \ 21 -p ${WRKDIR}/.PLIST.mktmp \ 22 -o ${REPODIR}/$(pkg -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION} 23mkdir -p ${REPODIR}/$(pkg -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION}/Latest/ 24cd ${REPODIR}/$(pkg -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION}/Latest/ && \ 25 ln -s ../pkg-*.txz 26