Lines 1005-1010
Link Here
|
1005 |
|
1005 |
|
1006 |
pkg_preinst |
1006 |
pkg_preinst |
1007 |
|
1007 |
|
|
|
1008 |
# hopefully this will someday allow us to get rid of the no* feature flags |
1009 |
for no_inst in ${INSTALL_MASK} ; do |
1010 |
# if it's a dir, remove the whole thing |
1011 |
echo "${IMAGE}/${no_inst}" |
1012 |
if [ -d "${IMAGE}/${no_inst}" ] ; then |
1013 |
einfo "Removing ${no_inst}" |
1014 |
rm -Rf ${IMAGE}/${no_inst} |
1015 |
continue |
1016 |
fi |
1017 |
|
1018 |
# try to find and remove anything else |
1019 |
einfo "Removing files matching ${no_inst}" |
1020 |
echo "find ${IMAGE} -name '${no_inst}' -exec rm -fR {} \;" |
1021 |
find "${IMAGE}" -name ${no_inst} |
1022 |
find "${IMAGE}" -name ${no_inst} -exec rm -fR {} \; |
1023 |
done |
1024 |
|
1008 |
# remove man pages |
1025 |
# remove man pages |
1009 |
if hasq noman $FEATURES; then |
1026 |
if hasq noman $FEATURES; then |
1010 |
rm -fR "${IMAGE}/usr/share/man" |
1027 |
rm -fR "${IMAGE}/usr/share/man" |
Lines 1020-1025
Link Here
|
1020 |
rm -fR "${IMAGE}/usr/share/doc" |
1037 |
rm -fR "${IMAGE}/usr/share/doc" |
1021 |
fi |
1038 |
fi |
1022 |
|
1039 |
|
|
|
1040 |
# remove stuff that's normally only used for development |
1041 |
if hasq nodevelstuff $FEATURES; then |
1042 |
if [ "${ROOT}" = "/" ]; then |
1043 |
ewarn "nodevelstuff with ROOT=/ is a very bad idea, portage won't comply" |
1044 |
ewarn "File a bug if you come up with a compelling reason" |
1045 |
else |
1046 |
# don't need any include files |
1047 |
rm -fR "${IMAGE}/usr/include" |
1048 |
# .a's are for static linking won't do us much good |
1049 |
find ${IMAGE} -name '*.a' -exec rm {} \; |
1050 |
fi |
1051 |
fi |
1052 |
|
1023 |
# remove share dir if unnessesary |
1053 |
# remove share dir if unnessesary |
1024 |
if hasq nodoc $FEATURES -o hasq noman $FEATURES -o hasq noinfo $FEATURES; then |
1054 |
if hasq nodoc $FEATURES -o hasq noman $FEATURES -o hasq noinfo $FEATURES; then |
1025 |
rmdir "${IMAGE}/usr/share" &> /dev/null |
1055 |
rmdir "${IMAGE}/usr/share" &> /dev/null |