- Fix HOMEDIR handling to not exclude all directories for ports without USERS

Reported by:	antoine
With hat:	portmgr
This commit is contained in:
Bryan Drewery 2014-04-17 14:45:49 +00:00
parent e0e4f6e0e6
commit 193b6cc6d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351480

View file

@ -40,7 +40,7 @@ if [ -n "${LOCALBASE}" ]; then
else
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
fi
homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') '$1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED)
tmpplist=$(make -C ${portdir} -VTMPPLIST)