}
-PORTAGE_INST_UID="0"
-PORTAGE_INST_GID="0"
-
dyn_install() {
trap "abort_install" SIGINT SIGQUIT
[ "$(type -t pre_src_install)" == "function" ] && pre_src_install
find "${D}/" -user @portageuser@ | while read file; do
count=$(( $count + 1 ))
if [ -L "${file}" ]; then
- lchown ${PORTAGE_INST_UID} "${file}"
+ lchown @rootuser@ "${file}"
else
s=$(stat_perms "$file")
if [ -z "${s}" ]; then
ewarn "failed stat_perm'ing $file. User intervention during install isn't wise..."
continue
fi
- chown ${PORTAGE_INST_UID} "$file"
+ chown @rootuser@ "$file"
chmod "$s" "$file"
fi
done
find "${D}/" -group @portagegroup@ | while read file; do
count=$(( $count + 1 ))
if [ -L "${file}" ]; then
- lchgrp ${PORTAGE_INST_GID} "${file}"
+ lchgrp @wheelgroup@ "${file}"
else
s=$(stat_perms "$file")
if [ -z "${s}" ]; then
echo "failed stat_perm'ing '$file' . User intervention during install isn't wise..."
continue
fi
- chgrp ${PORTAGE_INST_GID} "$file"
+ chgrp @wheelgroup@ "$file"
chmod "$s" "$file"
fi
done