diff --git a/etc/portage/bashrc b/etc/portage/bashrc new file mode 100644 index 0000000..b406a6f --- /dev/null +++ b/etc/portage/bashrc @@ -0,0 +1,17 @@ +# vim: set ft=sh : + +post_src_prepare() { + if [[ $(type -t epatch_user) = function ]]; then + cd "${S}" + epatch_user + fi +} + +case ${EBUILD_PHASE} in +preinst|prerm) + for fs in / /usr /opt; do + mountpoint -q ${fs} || continue + test -w ${fs} || mount -oremount,rw ${fs} + done + ;; +esac