All pastes #985756 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-15 09:14 UTC
rendered paste body
pkg_preinst() {
    if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then
        ewarn "setting USE=make-symlinks and emerging to / is very dangerous."
        ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)."
        ewarn "If you are creating a binary only and not merging this is probably ok."
        ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is realy what you want."
        die "silly options will destroy your system"
    fi