[Lunar-commits] <moonbase> fix plugin problem for firefox and clean up old versions offirefox, seamonkey and thunderbird

Zbigniew Luszpinski zbiggy at lunar-linux.org
Wed Oct 5 05:51:39 CEST 2011


commit 4be00b20caaa60913ba673319684e63382da6f33
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Wed Oct 5 05:51:39 2011 +0200

    fix plugin problem for firefox and clean up old versions offirefox, seamonkey and thunderbird
---
 mail/thunderbird/POST_INSTALL |   12 +++++++++---
 web/firefox/POST_INSTALL      |   17 ++++++++++-------
 web/seamonkey/POST_INSTALL    |    3 ++-
 3 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/mail/thunderbird/POST_INSTALL b/mail/thunderbird/POST_INSTALL
index 9ff84b1..b738f10 100644
--- a/mail/thunderbird/POST_INSTALL
+++ b/mail/thunderbird/POST_INSTALL
@@ -3,14 +3,20 @@ TBIRD_LIBDIR=thunderbird-$VERSION
 
 if [ ! -z $OLD_VER ]; then
   rm -rf /usr/lib/thunderbird-$OLD_VER
+  rm -rf /usr/lib/thunderbird-devel-$OLD_VER
   rm -rf /usr/include/thunderbird-$OLD_VER
   rm -rf /usr/share/idl/thunderbird-$OLD_VER
 fi
 unset_module_config OLD_VER
 
-rm -rf /usr/lib/thunderbird-1*
-rm -rf /usr/lib/thunderbird-2*
-rm -rf /usr/lib/thunderbird-3*
+rm -rf /usr/lib/thunderbird-[1-6]*
+rm -rf /usr/lib/thunderbird-7.0
+rm -rf /usr/lib/thunderbird-devel-[1-6]*
+rm -rf /usr/lib/thunderbird-devel-7.0
+rm -rf /usr/include/thunderbird-[1-6]*
+rm -rf /usr/include/thunderbird-7.0
+rm -rf /usr/share/idl/thunderbird-[1-6]*
+rm -rf /usr/share/idl/thunderbird-7.0
 
 export LD_LIBRARY_PATH="/usr/lib/$TBIRD_LIBDIR:/usr/lib/$TBIRD_LIBDIR/components"
 export MOZILLA_FIVE_HOME="/usr/lib/$TBIRD_LIBDIR"
diff --git a/web/firefox/POST_INSTALL b/web/firefox/POST_INSTALL
index c54c5f8..dded3db 100644
--- a/web/firefox/POST_INSTALL
+++ b/web/firefox/POST_INSTALL
@@ -1,7 +1,7 @@
 OLD_VER="`get_module_config OLD_VER`"
 NEW_VER="`get_module_config NEW_VER`"
 FIREFOX_HOME=/usr
-FFOX_LIBDIR=firefox-$NEW_VER
+FFOX_LIBDIR=firefox-$VERSION
 
 if [ ! -z "$OLD_VER" ] && [ "$OLD_VER" != "$NEW_VER" ] ; then
   for old_version in $OLD_VER
@@ -17,12 +17,15 @@ fi
 unset_module_config OLD_VER
 
 # Clean up old firefox junk
-rm -rf /usr/include/firefox-3*
-rm -rf /usr/include/firefox-4*
-rm -rf /usr/share/idl/firefox-3*
-rm -rf /usr/share/idl/firefox-4*
-rm -rf /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/firefox-3*
-rm -rf /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/firefox-4*
+rm -rf /usr/lib/firefox-[0-6]*
+rm -rf /usr/lib/firefox-7.0
+rm -rf /usr/lib/firefox-devel-[0-6]*
+rm -rf /usr/lib/firefox-devel-7.0
+rm -rf /usr/include/firefox-[0-6]*
+rm -rf /usr/include/firefox-7.0
+rm -rf /usr/share/idl/firefox-[0-6]*
+rm -rf /usr/share/idl/firefox-7.0
+rm -rf /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/firefox-[0-6]*
 
 export LD_LIBRARY_PATH="$FIREFOX_HOME/lib/$FFOX_LIBDIR:$FIREFOX_HOME/lib/$FFOX_LIBDIR/plugins:$FIREFOX_HOME/lib/$FFOX_LIBDIR/components"
 export MOZILLA_FIVE_HOME="$FIREFOX_HOME/lib/$FFOX_LIBDIR"
diff --git a/web/seamonkey/POST_INSTALL b/web/seamonkey/POST_INSTALL
index 81318e1..d7ce993 100644
--- a/web/seamonkey/POST_INSTALL
+++ b/web/seamonkey/POST_INSTALL
@@ -9,7 +9,8 @@ fi
 unset_module_config OLD_VER
 
 rm -rf /usr/lib/seamonkey-1*
-rm -rf /usr/lib/seamonkey-2.0*
+rm -rf /usr/lib/seamonkey-2.[0-3]*
+rm -rf /usr/lib/seamonkey-2.4.0
 
 ln -snf /opt/lunar/plugins /usr/lib/$SMNKEY_LIBDIR/plugins
 


More information about the Lunar-commits mailing list