2016-02-24 03:05:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Simulate the build environment.
|
|
|
|
eval $(make -C ${SRCDIR} TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} buildenvvars)
|
|
|
|
export WRKDIRPREFIX=/tmp/ports.${TARGET}
|
|
|
|
export WSTAGEDIR=${WSTAGEDIR}
|
|
|
|
export REPODIR=${REPODIR}
|
2016-12-16 23:05:47 +00:00
|
|
|
export PKG_CMD=${PKG_CMD}
|
2016-02-24 03:05:05 +00:00
|
|
|
export PKG_VERSION=${PKG_VERSION}
|
|
|
|
export WRKDIR=$(make -C ${PORTSDIR}/ports-mgmt/pkg -V WRKDIR)
|
|
|
|
|
|
|
|
make -C ${PORTSDIR}/ports-mgmt/pkg TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
|
|
|
|
CONFIGURE_ARGS="--host=$(uname -m)-portbld-freebsd${REVISION}" \
|
|
|
|
stage create-manifest
|
|
|
|
|
2016-12-16 23:05:47 +00:00
|
|
|
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/bin/sh \
|
2016-02-24 03:05:05 +00:00
|
|
|
create -v -m ${WRKDIR}/.metadir/ \
|
|
|
|
-r ${WRKDIR}/stage \
|
|
|
|
-p ${WRKDIR}/.PLIST.mktmp \
|
2016-12-16 23:05:47 +00:00
|
|
|
-o ${REPODIR}/$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION}
|
|
|
|
mkdir -p ${REPODIR}/$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION}/Latest/
|
|
|
|
cd ${REPODIR}/$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/bin/sh config ABI)/${PKG_VERSION}/Latest/ && \
|
2016-02-24 03:05:05 +00:00
|
|
|
ln -s ../pkg-*.txz
|