[Lunar-commits] CVS: moonbase/web/firefox BUILD, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 POST_REMOVE, NONE, 1.1

Moritz Heiber moe at lunar-linux.org
Mon Feb 9 12:38:03 GMT 2004


Update of /var/cvs/lunar/moonbase/web/firefox
In directory dbguin.lunar-linux.org:/tmp/cvs-serv29776

Added Files:
	BUILD DEPENDS DETAILS POST_INSTALL POST_REMOVE 
Log Message:
Adding this new firefox module. Firefox  will be replacing Firebird,
actually, Firefox is just Firebird in disguise (Yeah, they changed
the name again). Visit the firefox homepage for more info.


--- NEW FILE: BUILD ---

( 
  MOZILLA_HOME=/opt/lunar/firefox/lib/mozilla 
  
  OPTS="$OPTS --enable-strip --enable-strip-libs"
  OPTS="$OPTS --disable-toolkit-gtk --enable-default-toolkit=gtk2 --enable-toolkit=gtk2 --with-gtk2"
  OPTS="$OPTS --disable-mathml"
  OPTS="$OPTS --disable-accessibility"
  OPTS="$OPTS --disable-jsd"
  OPTS="$OPTS --enable-xft"
  OPTS="$OPTS --disable-ldap"
  OPTS="$OPTS --enable-svg --enable-svg-renderer-libart"
  OPTS="$OPTS --enable-extensions=default,-irc" 

  export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig:/opt/lunar/gnome/2.4/lib/pkgconfig:/opt/lunar/gnome/2/lib/pkgconfig
  export MOZ_NSS_AUTOCONF=1
  export NATIVE_THEME_SUPPORT=1
  export MOZ_PHOENIX=1
  export MOZ_INTERNAL_LIBART_LGPL=1

  echo "$OPTS" > /tmp/mozz

  unpack $SOURCE2 &&
  cd other-licenses &&
  unpack $SOURCE3   &&
  cd $SOURCE_DIRECTORY &&

    ./configure \
    --prefix=/opt/lunar/firefox    \
    --with-x            \
    --with-pthreads     \
    --enable-reorder    \
    --enable-cpp-rtti   \
    --enable-optimize="$CFLAGS"   \
    --with-default-mozilla-five-home=$MOZILLA_HOME \
    --disable-debug     \
    --disable-tests     \
    --disable-installer \
    --disable-pedantic  \
    --disable-mailnews  \
    --disable-composer  \
    --enable-crypto     \
    $OPTS               &&
              
    default_make      

) > $C_FIFO 2>&1

--- NEW FILE: DEPENDS ---
depends libmng &&
depends ORBit2 &&
depends	zip &&
depends	unzip &&
depends libIDL &&
depends gtk+-2 &&

optional_depends "flash-plugin" "" "" "to enable shockwave flash"

--- NEW FILE: DETAILS ---
          MODULE=firefox
         VERSION=0.8
          SOURCE=$MODULE-source-$VERSION.tar.bz2
         SOURCE2=firefox-0.8-lunar.tar.bz2
         SOURCE3=mozilla-libart.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/mozilla
   SOURCE_URL[0]=http://ftp.mozilla.org/pub/firefox/releases/$VERSION/$SOURCE
      SOURCE_VFY=md5:cdc85152f4219bf3e3f1a8dc46e04654
  SOURCE2_URL[0]=$PATCH_URL/$SOURCE2
     SOURCE2_VFY=md5:5aeecf3bdf9dcc9995d2d961d290439f
  SOURCE3_URL[0]=http://dbguin.lunar-linux.org/~nhudson/mozilla/$SOURCE3
     SOURCE3_VFY=md5:119f20f0c50b8554a1794ffdb6706c8d
        WEB_SITE=http://www.mozilla.org/projects/firefox
         ENTERED=20030810
         UPDATED=20040209
      MAINTAINER="tchan at lunar-linux.org"
           FUZZY="off"
           SHORT="Mozilla Firefox is a speedy, full-featured web browser."
cat << EOF
Mozilla Firefox is the successor of Mozilla Firebird.

Firefox includes
  comprehensive popup controls to keep unwanted advertising off your desktop;
  a tab browsing mode that lets you open several pages in a single window,
    allowing you to load links in the background without leaving the page you're on;
  integrated Google search ;
  industry leading accessibility with Find As You Type - find links and pagei
    text by simply typing;
  simplified privacy controls that let you cover your tracks more effectively;
  a streamlined browser window that lets you see more of the page than any
    other browser while at the same time being more configurable;
  a large variety of free downloadable extensions and themes that add specific
    functionality and visual changes to the browser;

NOTE: This Lunar version of Firefox has crypto enabled and is gtk+-2.  NOTHING
ELSE IS CONFIGURED IN !!! (i.e NO mail, irc, composer, gpg, calendar, MathML, 
Javascript debugger, html code inspector, LDAP, help support.  If you
want any of that use the regular mozilla module.
EOF

--- NEW FILE: POST_INSTALL ---
FIREFOX_HOME=/opt/lunar/firefox
VERSION=1.6
FFOX_VERSION=0.8

if [ "-d $FIREFOX_HOME/lib/mozilla-$VERSION/plugins" ] ; then
  mv $FIREFOX_HOME/lib/mozilla-$VERSION/plugins/libnullplugin.so $FIREFOX_HOME/mozilla-$VERSION
  rm -Rf $FIREFOX_HOME/lib/mozilla-$VERSION/plugins
fi
 
# Symlink
cd $FIREFOX_HOME/lib
rm -Rf $FIREFOX_HOME/lib/mozilla
ln -sf "mozilla-$VERSION" mozilla

cd $FIREFOX_HOME/include
rm -Rf $FIREFOX_HOME/include/mozilla
ln -sf "mozilla-$VERSION" mozilla

cd $FIREFOX_HOME/lib/mozilla-$VERSION
mkdir -p /opt/lunar/plugins
ln -sf /opt/lunar/plugins plugins

export LD_LIBRARY_PATH="$FIREFOX_HOME/lib/mozilla-$VERSION:$FIREFOX_HOME/lib/mozilla-$VERSION/plugins:$FIREFOX_HOME/lib/mozilla-$VERSION/components"
export MOZILLA_FIVE_HOME="$FIREFOX_HOME/lib/mozilla-$VERSION"
ldconfig

echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt
echo "locale,install,select,en-US" >> chrome/installed-chrome.txt

./regxpcom
./regchrome

if module_installed j2sdk; then
ln -sf /usr/lib/j2sdk1.4.1/jre/plugin/i386/mozilla/javaplugin_oji.so $FIREFOX_HOME/lib/mozilla/plugins/javaplugin_oji.so 
fi

if [ ! -d /usr/share/applications ] ; then
  mkdir -p /usr/share/applications
fi
if [ ! -d /usr/share/pixmaps ] ; then
  mkdir -p /usr/share/pixmaps
fi
cp $SOURCE_DIRECTORY/firefox-$FFOX_VERSION-lunar/firefox.desktop /usr/share/applications/firefox.desktop &&
cp $SOURCE_DIRECTORY/firefox-$FFOX_VERSION-lunar/firefox.xpm /usr/share/pixmaps/firefox.xpm

--- NEW FILE: POST_REMOVE ---
rm -fr /opt/lunar/firefox/lib/mozilla*
rm -fr /opt/lunar/firefox/include/mozilla*



More information about the Lunar-commits mailing list