[Lunar-commits] <moonbase> firefox-bin: Added to moonbase, ff-3.5.5

Terry Chan tchan at lunar-linux.org
Mon Dec 7 21:18:47 CET 2009


commit ed20b805218381a6320ff7d20d807b7dd9a651c5
Author: Terry Chan <tchan at lunar-linux.org>
Date:   Mon Dec 7 14:18:47 2009 -0600

    firefox-bin: Added to moonbase, ff-3.5.5
---
 web/firefox-bin/BUILD           |   38 ++++++++++++++++++++++++++++++++++++++
 web/firefox-bin/DETAILS         |   17 +++++++++++++++++
 web/firefox-bin/POST_INSTALL    |    6 ++++++
 web/firefox-bin/PRE_BUILD       |    3 +++
 web/firefox-bin/firefox.desktop |   11 +++++++++++
 5 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/web/firefox-bin/BUILD b/web/firefox-bin/BUILD
new file mode 100644
index 0000000..8747446
--- /dev/null
+++ b/web/firefox-bin/BUILD
@@ -0,0 +1,38 @@
+(
+
+  prepare_install   &&
+  message "${MESSAGE_COLOR}Installing Firefox ${VERSION}...${DEFAULT_COLOR}"  &&
+  cd /opt/lunar &&
+  unpack $SOURCE &&
+
+  # Install the plugins in the right directories
+  mkdir -p /opt/lunar/plugins  &&
+  for plugin in `ls /opt/lunar/firefox/plugins`; do
+       `install -m755 /opt/lunar/firefox/plugins/$plugin /opt/lunar/plugins`; done  &&
+
+  rm -rf /opt/lunar/firefox/plugins  &&
+  ln -snf /opt/lunar/plugins /opt/lunar/firefox/plugins  &&
+  if [ ! -h /usr/bin/firefox ]; then
+    ln -snf /opt/lunar/firefox/firefox /usr/bin/firefox
+  fi
+
+# Not sure how to handle this, so I've left it commented out. Lunar Firefox devs can
+# probably fix this better than I can.
+  # Now the .desktop file and the icon
+# mkdir -p /usr/share/applications /usr/share/pixmaps  &&
+# install -m644 $SCRIPT_DIRECTORY/firefox.desktop /usr/share/applications  &&
+  # please, dont just let the lin fail because /usr/share/pixmaps/firefox.xpm is an existing symlink...
+# rm -f /usr/share/pixmaps/firefox.xpm  &&
+# install -m644 $MOZILLA_HOME/icons/mozicon50.xpm /usr/share/pixmaps/firefox.xpm  &&
+
+  # Make firefox use its own icon
+
+# rm -rf /usr/lib/firefox-$VERSION/chrome/icons  &&
+# mkdir -p /usr/lib/firefox-$VERSION/chrome/icons/default  &&
+
+# for icon in 16 32 48; do
+#   ln -sf /usr/lib/firefox-$VERSION/icons/mozicon128.png \
+#          /usr/lib/firefox-$VERSION/chrome/icons/default/default$icon.png
+# done
+
+) > $C_FIFO 2>&
diff --git a/web/firefox-bin/DETAILS b/web/firefox-bin/DETAILS
new file mode 100644
index 0000000..a6a8e65
--- /dev/null
+++ b/web/firefox-bin/DETAILS
@@ -0,0 +1,17 @@
+          MODULE=firefox-bin
+         VERSION=3.5.5
+          SOURCE=firefox-${VERSION}.tar.bz2
+   SOURCE_URL[0]=ftp://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US
+   SOURCE_URL[1]=ftp://mozilla.isc.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/en-US
+   SOURCE_URL[2]=ftp://ftp.uni-erlangen.de/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/en-US
+      SOURCE_VFY=sha1:4a68916a7674d6f532acd11a355d7d2990781e66
+        WEB_SITE=http://www.mozilla.org/projects/firefox
+         ENTERED=20091207
+         UPDATED=20091207
+         ARCHIVE=off
+           SHORT="A speedy, full-featured web browser"
+cat << EOF
+This is the pre-compiled binary version of firefox. It installs into /opt by
+default. It does NOT conflict with the regular lunar firefox module. Only works
+with kernels and glibc that provide Thread Local Storage (TLS).
+EOF
diff --git a/web/firefox-bin/POST_INSTALL b/web/firefox-bin/POST_INSTALL
new file mode 100644
index 0000000..004adc5
--- /dev/null
+++ b/web/firefox-bin/POST_INSTALL
@@ -0,0 +1,6 @@
+FIREFOX_HOME=/opt/lunar
+
+export LD_LIBRARY_PATH="$FIREFOX_HOME/firefox:$FIREFOX_HOME/plugins:$FIREFOX_HOME/firefox/components"
+export MOZILLA_FIVE_HOME="$FIREFOX_HOME"
+ldconfig
+
diff --git a/web/firefox-bin/PRE_BUILD b/web/firefox-bin/PRE_BUILD
new file mode 100644
index 0000000..762994e
--- /dev/null
+++ b/web/firefox-bin/PRE_BUILD
@@ -0,0 +1,3 @@
+if [ -d /opt/lunar/firefox ]; then
+  rm -rf /opt/lunar/firefox
+fi
diff --git a/web/firefox-bin/firefox.desktop b/web/firefox-bin/firefox.desktop
new file mode 100644
index 0000000..f8733ea
--- /dev/null
+++ b/web/firefox-bin/firefox.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Firefox
+Comment=Firefox Web Browser
+Exec=firefox
+Icon=/usr/share/pixmaps/firefox.xpm
+Terminal=false
+Type=Application
+Categories=Application;Network;
+Comment[pl]=Firefox - przeglÄ…darka WWW
+X-KDE-StartupNotify=true


More information about the Lunar-commits mailing list