|
Lines 690-695
Link Here
|
| 690 |
chflags -R noschg,nouchg,nosappnd,nouappnd,nosunlnk,nouunlnk \ |
690 |
chflags -R noschg,nouchg,nosappnd,nouappnd,nosunlnk,nouunlnk \ |
| 691 |
"${BUILDDIR}" |
691 |
"${BUILDDIR}" |
| 692 |
fi |
692 |
fi |
|
|
693 |
|
| 694 |
if [ "$USERLAND" == "Darwin" ] && type -p chflags &>/dev/null; then |
| 695 |
chflags -R noschg,nouchg,nosappnd,nouappnd "${BUILDDIR}" |
| 696 |
fi |
| 693 |
|
697 |
|
| 694 |
rm -rf "${BUILDDIR}/image" |
698 |
rm -rf "${BUILDDIR}/image" |
| 695 |
|
699 |
|
|
Lines 1063-1069
Link Here
|
| 1063 |
python -c "import os,stat; print '%o' % os.stat('$1')[stat.ST_MODE]" |
1067 |
python -c "import os,stat; print '%o' % os.stat('$1')[stat.ST_MODE]" |
| 1064 |
} |
1068 |
} |
| 1065 |
else |
1069 |
else |
| 1066 |
if [ "${USERLAND}" == "BSD" ]; then |
1070 |
if [ "${USERLAND}" == "BSD" ] || [ "${USERLAND}" == "Darwin" ]; then |
| 1067 |
do_stat() { |
1071 |
do_stat() { |
| 1068 |
# BSD version -- Octal result |
1072 |
# BSD version -- Octal result |
| 1069 |
$(type -p stat) -f '%p' "$1" |
1073 |
$(type -p stat) -f '%p' "$1" |
|
Lines 1091-1102
Link Here
|
| 1091 |
done |
1095 |
done |
| 1092 |
|
1096 |
|
| 1093 |
find "${D}/" -group portage | while read file; do |
1097 |
find "${D}/" -group portage | while read file; do |
| 1094 |
ewarn "file $file was installed with group portage!" |
|
|
| 1095 |
s=$(stat_perms "$file") |
1098 |
s=$(stat_perms "$file") |
| 1096 |
[ "$USERLAND" == "BSD" ] && chgrp wheel "$file" |
1099 |
if [ "$USERLAND" == "BSD" ] || [ "$USERLAND" == "Darwin" ];then |
| 1097 |
[ "$USERLAND" != "BSD" ] && chgrp root "$file" |
1100 |
chgrp wheel "$file" |
|
|
1101 |
else |
| 1102 |
chgrp root "$file" |
| 1103 |
fi |
| 1098 |
chmod "$s" "$file" |
1104 |
chmod "$s" "$file" |
| 1099 |
done |
1105 |
done |
|
|
1106 |
ewarn "files were installed with group portage!" |
| 1100 |
|
1107 |
|
| 1101 |
unset -f stat_perms |
1108 |
unset -f stat_perms |
| 1102 |
|
1109 |
|