Hi!

On Thu, Apr 09, 2009 at 09:07:39AM -0700, Grant wrote:
> I seem to need to remember to paxctl -m the firefox binary whenever I
> upgrade firefox.  This inevitably leads to a browser crash and lost
> time/info.  Can I set up paxctl -m to persist, even if firefox is
> upgraded?

Put this into your /etc/portage/bashrc:
---cut---
if [ "x${EBUILD_PHASE}" != "x" ]; then
    if    [ -x "/etc/portage/bashrc.d/${CATEGORY}/${PF}.${EBUILD_PHASE}" ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${PF}.${EBUILD_PHASE}"
    elif  [ -x "/etc/portage/bashrc.d/${CATEGORY}/${P}.${EBUILD_PHASE}"  ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${P}.${EBUILD_PHASE}"
    elif  [ -x "/etc/portage/bashrc.d/${CATEGORY}/${PN}.${EBUILD_PHASE}" ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${PN}.${EBUILD_PHASE}"
    fi
fi
---cut---

Next, create directory:
    mkdir -p /etc/portage/bashrc.d/www-client/

and create executable shell script in that dir: mozilla-firefox-bin.postinst
---cut---
#!/bin/bash
ewarn "Running chpax -m /opt/firefox/firefox-bin to avoid crash on flash!"
chpax -m /opt/firefox/firefox-bin
---cut---

-- 
                        WBR, Alex.

Reply via email to