Magellan Linux

Diff of /smage/branches/alx-0_6_0/extras/mozilla-firefox/mozilla-firefox-5.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2679 by niro, Mon Jul 11 14:49:10 2011 UTC revision 2680 by niro, Mon Jul 11 16:47:23 2011 UTC
# Line 263  src_install() Line 263  src_install()
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 {} \; || :  
 }  

Legend:
Removed from v.2679  
changed lines
  Added in v.2680