Don't hardcode CCACHE_DIR.

PR:		199509
Submitted by:	ngie (based on)
Sponsored by:	EMC / Isilon Storage Division
With hat:	portmgr
This commit is contained in:
Bryan Drewery 2015-11-06 20:18:35 +00:00
parent 6100c598ae
commit d715852bba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400957

View File

@ -40,6 +40,9 @@ if [ -n "${LOCALBASE}" ]; then
else
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
fi
if [ -z "${CCACHE_DIR}" ]; then
CCACHE_DIR=$(make -C ${portdir} -VCCACHE_DIR)
fi
homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d;s,^,^(,;s,$,)$,') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|"|tr "\n" " ")
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED | /bin/sh ${PORTSDIR}/Mk/Scripts/plist_sub_sed_sort.sh)
tmpplist=$(make -C ${portdir} -VTMPPLIST)
@ -47,7 +50,7 @@ tmpplist=$(make -C ${portdir} -VTMPPLIST)
while read modtype path extra; do
# Ignore everything from these files/directories
case "${path}" in
${HOME:-/root}/.ccache/*|/root/.ccache/*|\
${CCACHE_DIR}/*|\
/compat/linux/proc/*|\
/dev/*|\
/etc/make.conf.bak|\