263 |
# and symlink them (we need a defined location for the plugins of all browsers) |
# and symlink them (we need a defined location for the plugins of all browsers) |
264 |
mlink /usr/$(mlibdir)/nsbrowser/plugins /usr/$(mlibdir)/mozilla-firefox/plugins || die |
mlink /usr/$(mlibdir)/nsbrowser/plugins /usr/$(mlibdir)/mozilla-firefox/plugins || die |
265 |
} |
} |
|
|
|
|
preinstall() |
|
|
{ |
|
|
if [[ -n $(magequery -n mozilla) ]] |
|
|
then |
|
|
echo |
|
|
echo "This version of ${PCATEGORIE}/${PNAME} replaces the mozilla development files" |
|
|
echo "and both packages cannot coexist anymore." |
|
|
echo "net-www/mozilla has no official support from mozilla.com" |
|
|
echo "and will not included in future releases of magellan-linux." |
|
|
echo |
|
|
die "Please uninstall net-www/mozilla first!" |
|
|
fi |
|
|
} |
|
|
|
|
|
postinstall() |
|
|
{ |
|
|
# update environment; needed for REGXPCOM |
|
|
env-rebuild |
|
|
source ${MROOT}/etc/profile |
|
|
|
|
|
# firefoxs mozilla_five_home |
|
|
export MOZILLA_FIVE_HOME="${MROOT}/usr/$(mlibdir)/mozilla-firefox" |
|
|
|
|
|
# register firefox |
|
|
echo "Registering Components and Chrome..." |
|
|
|
|
|
HOME=~root LD_LIBRARY_PATH=${MOZILLA_FIVE_HOME} ${MOZILLA_FIVE_HOME}/regxpcom |
|
|
# HOME=~root LD_LIBRARY_PATH=${MOZILLA_FIVE_HOME} ${MOZILLA_FIVE_HOME}/regchrome |
|
|
|
|
|
# fix permissions of component registry |
|
|
chmod 0644 ${MOZILLA_FIVE_HOME}/components/compreg.dat |
|
|
|
|
|
# fix directory permissions |
|
|
find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 0755 {} \; || : |
|
|
|
|
|
# fix permissions on chrome files |
|
|
find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || : |
|
|
} |
|