build: document PORTSLIST and PLUGINSLIST
This commit is contained in:
parent
99996adef8
commit
b1b52c4631
|
@ -248,7 +248,13 @@ core progress. However, following option apply to PORTSENV:
|
|||
The defaults for these ports options are set to "yes". A sample
|
||||
invoke is as follows:
|
||||
|
||||
# make ports-openssl PORTSENV="DEPEND=no PRUNE=no"
|
||||
# make ports-curl PORTSENV="DEPEND=no PRUNE=no"
|
||||
|
||||
Both ports and plugins builds allow to override the current list
|
||||
derived from their respective configuration files, i.e.:
|
||||
|
||||
# make ports PORTSLIST="security/openssl"
|
||||
# make plugins PLUGINSLIST="devel/debug"
|
||||
|
||||
Acquiring precompiled sets from the mirrors or another local direcory
|
||||
---------------------------------------------------------------------
|
||||
|
|
|
@ -31,8 +31,8 @@ SELF=audit
|
|||
|
||||
. ./common.sh
|
||||
|
||||
if [ -z "${PORTS_LIST}" ]; then
|
||||
PORTS_LIST=$(
|
||||
if [ -z "${PORTSLIST}" ]; then
|
||||
PORTSLIST=$(
|
||||
cat ${CONFIGDIR}/ports.conf | while read PORT_ORIGIN PORT_IGNORE; do
|
||||
eval PORT_ORIGIN=${PORT_ORIGIN}
|
||||
if [ "$(echo ${PORT_ORIGIN} | colrm 2)" = "#" ]; then
|
||||
|
@ -42,8 +42,8 @@ cat ${CONFIGDIR}/ports.conf | while read PORT_ORIGIN PORT_IGNORE; do
|
|||
done
|
||||
)
|
||||
else
|
||||
PORTS_LIST=$(
|
||||
for PORT_ORIGIN in ${PORTS_LIST}; do
|
||||
PORTSLIST=$(
|
||||
for PORT_ORIGIN in ${PORTSLIST}; do
|
||||
echo ${PORT_ORIGIN}
|
||||
done
|
||||
)
|
||||
|
@ -62,7 +62,7 @@ for PKG in $(cd ${STAGEDIR}; find .${PACKAGESDIR}/All -type f); do
|
|||
PKGORIGIN=$(pkg -c ${STAGEDIR} info -F ${PKG} | \
|
||||
grep ^Origin | awk '{ print $3; }')
|
||||
|
||||
for PORT in ${PORTS_LIST}; do
|
||||
for PORT in ${PORTSLIST}; do
|
||||
if [ "${PORT}" = "${PKGORIGIN}" ]; then
|
||||
${ENV_FILTER} chroot ${STAGEDIR} /bin/sh -s << EOF
|
||||
pkg add -f ${PKG} > /dev/null
|
||||
|
|
|
@ -31,8 +31,8 @@ SELF=distfiles
|
|||
|
||||
. ./common.sh
|
||||
|
||||
if [ -z "${PORTS_LIST}" ]; then
|
||||
PORTS_LIST=$(
|
||||
if [ -z "${PORTSLIST}" ]; then
|
||||
PORTSLIST=$(
|
||||
cat ${CONFIGDIR}/skim.conf ${CONFIGDIR}/aux.conf ${CONFIGDIR}/ports.conf | \
|
||||
while read PORT_ORIGIN PORT_IGNORE; do
|
||||
eval PORT_ORIGIN=${PORT_ORIGIN}
|
||||
|
@ -51,8 +51,8 @@ cat ${CONFIGDIR}/skim.conf ${CONFIGDIR}/aux.conf ${CONFIGDIR}/ports.conf | \
|
|||
done
|
||||
)
|
||||
else
|
||||
PORTS_LIST=$(
|
||||
for PORT_ORIGIN in ${PORTS_LIST}; do
|
||||
PORTSLIST=$(
|
||||
for PORT_ORIGIN in ${PORTSLIST}; do
|
||||
echo ${PORT_ORIGIN}
|
||||
done
|
||||
)
|
||||
|
@ -78,8 +78,8 @@ echo ">>> Fetching distfiles..."
|
|||
# block SIGINT to allow for collecting port progress (use with care)
|
||||
trap : 2
|
||||
|
||||
if ! ${ENV_FILTER} chroot ${STAGEDIR} /bin/sh -es << EOF; then PORTS_LIST=; fi
|
||||
echo "${PORTS_LIST}" | while read PORT_ORIGIN; do
|
||||
if ! ${ENV_FILTER} chroot ${STAGEDIR} /bin/sh -es << EOF; then PORTSLIST=; fi
|
||||
echo "${PORTSLIST}" | while read PORT_ORIGIN; do
|
||||
MAKE_ARGS="
|
||||
PRODUCT_ABI=${PRODUCT_ABI}
|
||||
PRODUCT_FLAVOUR=${PRODUCT_FLAVOUR}
|
||||
|
@ -107,7 +107,7 @@ tar -C ${STAGEDIR}${PORTSDIR} -cf \
|
|||
${SETSDIR}/distfiles-${REPO_VERSION}.tar distfiles
|
||||
echo "done"
|
||||
|
||||
if [ -z "${PORTS_LIST}" ]; then
|
||||
if [ -z "${PORTSLIST}" ]; then
|
||||
echo ">>> The distfiles fetch did not finish properly :("
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -31,7 +31,7 @@ SELF=packages
|
|||
|
||||
. ./common.sh
|
||||
|
||||
AUX_LIST=$(
|
||||
AUXLIST=$(
|
||||
cat ${CONFIGDIR}/aux.conf | while read PORT_ORIGIN PORT_IGNORE; do
|
||||
eval PORT_ORIGIN=${PORT_ORIGIN}
|
||||
if [ "$(echo ${PORT_ORIGIN} | colrm 2)" = "#" ]; then
|
||||
|
@ -59,7 +59,7 @@ extract_packages ${STAGEDIR}
|
|||
# "packages" target in which case the only thing that needs to be
|
||||
# done is stripping the auxiliary packages that are only needed for
|
||||
# the build and further testing. Small lookup and delete code...
|
||||
for AUX in ${AUX_LIST}; do
|
||||
for AUX in ${AUXLIST}; do
|
||||
for PKG in $(cd ${STAGEDIR}; find .${PACKAGESDIR}/All -type f); do
|
||||
PKGORIGIN=$(pkg -c ${STAGEDIR} info -F ${PKG} | \
|
||||
grep ^Origin | awk '{ print $3; }')
|
||||
|
|
|
@ -37,8 +37,8 @@ if [ -f ${PLUGINSCONF}.local ]; then
|
|||
PLUGINSCONF="${PLUGINSCONF} ${PLUGINSCONF}.local"
|
||||
fi
|
||||
|
||||
if [ -z "${PLUGINS_LIST}" ]; then
|
||||
PLUGINS_LIST=$(
|
||||
if [ -z "${PLUGINSLIST}" ]; then
|
||||
PLUGINSLIST=$(
|
||||
cat ${PLUGINSCONF} | while read PLUGIN_ORIGIN PLUGIN_IGNORE; do
|
||||
if [ "$(echo ${PLUGIN_ORIGIN} | colrm 2)" = "#" ]; then
|
||||
continue
|
||||
|
@ -56,8 +56,8 @@ cat ${PLUGINSCONF} | while read PLUGIN_ORIGIN PLUGIN_IGNORE; do
|
|||
done
|
||||
)
|
||||
else
|
||||
PLUGINS_LIST=$(
|
||||
for PLUGIN_ORIGIN in ${PLUGINS_LIST}; do
|
||||
PLUGINSLIST=$(
|
||||
for PLUGIN_ORIGIN in ${PLUGINSLIST}; do
|
||||
echo ${PLUGIN_ORIGIN}
|
||||
done
|
||||
)
|
||||
|
@ -85,7 +85,7 @@ for BRANCH in ${EXTRABRANCH} ${PLUGINSBRANCH}; do
|
|||
|
||||
_PLUGIN_ARGS="PLUGIN_ARCH=${PRODUCT_ARCH} PLUGIN_FLAVOUR=${PRODUCT_FLAVOUR} ${PLUGINSENV}"
|
||||
|
||||
for PLUGIN_ORIGIN in ${PLUGINS_LIST}; do
|
||||
for PLUGIN_ORIGIN in ${PLUGINSLIST}; do
|
||||
VARIANT=${PLUGIN_ORIGIN##*@}
|
||||
PLUGIN=${PLUGIN_ORIGIN%%@*}
|
||||
|
||||
|
|
|
@ -68,8 +68,8 @@ if ! check_packages packages; then
|
|||
PORTCONFIGS="${CONFIGDIR}/aux.conf ${PORTCONFIGS}"
|
||||
fi
|
||||
|
||||
if [ -z "${PORTS_LIST}" ]; then
|
||||
PORTS_LIST=$(
|
||||
if [ -z "${PORTSLIST}" ]; then
|
||||
PORTSLIST=$(
|
||||
cat ${PORTCONFIGS} | while read PORT_ORIGIN PORT_IGNORE; do
|
||||
eval PORT_ORIGIN=${PORT_ORIGIN}
|
||||
if [ "$(echo ${PORT_ORIGIN} | colrm 2)" = "#" ]; then
|
||||
|
@ -88,8 +88,8 @@ cat ${PORTCONFIGS} | while read PORT_ORIGIN PORT_IGNORE; do
|
|||
done
|
||||
)
|
||||
else
|
||||
PORTS_LIST=$(
|
||||
for PORT_ORIGIN in ${PORTS_LIST}; do
|
||||
PORTSLIST=$(
|
||||
for PORT_ORIGIN in ${PORTSLIST}; do
|
||||
echo ${PORT_ORIGIN}
|
||||
done
|
||||
)
|
||||
|
@ -135,7 +135,7 @@ ${ENV_FILTER} chroot ${STAGEDIR} /bin/sh -s << EOF || true
|
|||
mkdir -p ${PACKAGESDIR}-cache
|
||||
cp -R ${PACKAGESDIR}/All ${PACKAGESDIR}-cache/All
|
||||
|
||||
echo "${PORTS_LIST}
|
||||
echo "${PORTSLIST}
|
||||
clean.up.post.build" | while read PORT_ORIGIN; do
|
||||
FLAVOR=\${PORT_ORIGIN##*@}
|
||||
PORT=\${PORT_ORIGIN%%@*}
|
||||
|
@ -201,7 +201,7 @@ UNAME_r=\$(freebsd-version)
|
|||
pkg create -no ${PACKAGESDIR}-cache/All \${PKGNAME}
|
||||
done
|
||||
|
||||
echo "${PORTS_LIST}" | while read PORT_DEPENDS; do
|
||||
echo "${PORTSLIST}" | while read PORT_DEPENDS; do
|
||||
PORT_DEPNAME=\$(pkg query -e "%o == \${PORT_DEPENDS%%@*}" %n)
|
||||
if [ -n "\${PORT_DEPNAME}" ]; then
|
||||
echo ">>> Locking package dependency: \${PORT_DEPNAME}"
|
||||
|
|
|
@ -33,8 +33,8 @@ SELF=skim
|
|||
|
||||
setup_stage ${STAGEDIR}
|
||||
|
||||
if [ -z "${PORTS_LIST}" ]; then
|
||||
PORTS_LIST=$(
|
||||
if [ -z "${PORTSLIST}" ]; then
|
||||
PORTSLIST=$(
|
||||
cat ${CONFIGDIR}/skim.conf ${CONFIGDIR}/aux.conf ${CONFIGDIR}/ports.conf | \
|
||||
while read PORT_ORIGIN PORT_IGNORE; do
|
||||
eval PORT_ORIGIN=${PORT_ORIGIN}
|
||||
|
@ -45,8 +45,8 @@ cat ${CONFIGDIR}/skim.conf ${CONFIGDIR}/aux.conf ${CONFIGDIR}/ports.conf | \
|
|||
done
|
||||
)
|
||||
else
|
||||
PORTS_LIST=$(
|
||||
for PORT_ORIGIN in ${PORTS_LIST}; do
|
||||
PORTSLIST=$(
|
||||
for PORT_ORIGIN in ${PORTSLIST}; do
|
||||
echo ${PORT_ORIGIN}
|
||||
done
|
||||
)
|
||||
|
@ -78,7 +78,7 @@ for ARG in ${@}; do
|
|||
done
|
||||
|
||||
sh ./make.conf.sh > ${STAGEDIR}/make.conf
|
||||
echo "${PORTS_LIST}" > ${STAGEDIR}/skim
|
||||
echo "${PORTSLIST}" > ${STAGEDIR}/skim
|
||||
: > ${STAGEDIR}/used
|
||||
|
||||
PORTSCOUNT=$(wc -l ${STAGEDIR}/skim | awk '{ print $1 }')
|
||||
|
|
Loading…
Reference in New Issue