2004-06-14 04:45:42 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-14 04:45:42 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2004-12-08 11:46:21 +08:00
|
|
|
<!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
|
|
|
<!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
2005-10-15 23:24:38 +08:00
|
|
|
<!ENTITY firefox-md5sum "5704a8c36de84b408e069afb0c5bc1df">
|
2005-07-31 16:20:35 +08:00
|
|
|
<!ENTITY firefox-size "32.0 MB">
|
2005-05-30 10:07:49 +08:00
|
|
|
<!ENTITY firefox-buildsize "545 MB">
|
|
|
|
<!ENTITY firefox-time "10.3 SBU">
|
2004-06-14 04:45:42 +08:00
|
|
|
]>
|
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<!--
|
|
|
|
|
|
|
|
Devs:
|
|
|
|
|
|
|
|
Always check the browser/config/mozconfig file in the source tree for
|
|
|
|
any changes to the options passed to configure. This file shows the
|
|
|
|
default build used by Mozilla. BLFS adds to this, but the values here
|
|
|
|
should be in our setup.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
2004-07-15 19:52:34 +08:00
|
|
|
<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
2005-05-21 16:19:50 +08:00
|
|
|
<?dbhtml filename="firefox.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Firefox-&firefox-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="firefox">
|
|
|
|
<primary sortas="a-Firefox">Firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Firefox</title>
|
|
|
|
|
|
|
|
<para><application>Firefox</application> is a stand-alone browser
|
|
|
|
based on the <application>Mozilla</application> codebase.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &firefox-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &firefox-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &firefox-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &firefox-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-09-10 09:35:56 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
2005-11-12 11:31:12 +08:00
|
|
|
url="&patch-root;/firefox-&firefox-version;-gcc4-2.patch"/></para>
|
2005-09-10 09:35:56 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para><xref linkend="gtk2"/>,
|
|
|
|
<xref linkend="libidl"/> and
|
|
|
|
<xref linkend="zip"/></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para><xref linkend="libjpeg"/>,
|
|
|
|
<xref linkend="unzip"/>,
|
|
|
|
<xref linkend="gnome-vfs"/> and
|
|
|
|
<xref linkend="libgnome"/> (to build the gnomevfs extension),
|
|
|
|
<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
|
|
|
|
(for the GSSAPI libraries to build the negotiateauth extension),
|
|
|
|
<xref linkend="doxygen"/>,
|
|
|
|
<ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
|
2005-09-21 08:22:37 +08:00
|
|
|
<ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
|
2005-05-21 16:19:50 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Firefox</title>
|
|
|
|
|
|
|
|
<para>The configuration of <application>Firefox</application> is very
|
|
|
|
similar to <xref linkend="mozilla"/> and hence the options are not
|
|
|
|
discussed. Refer to the <xref linkend="mozilla"/> instructions for
|
|
|
|
explanations and additional configuration information.</para>
|
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<para><application>Firefox</application> default behavior when invoked
|
|
|
|
with a URL parameter is to open a new browser window. If you would rather
|
|
|
|
<application>Firefox</application> open a new tab in an existing browser
|
|
|
|
window, issue the following command:</para>
|
|
|
|
|
2005-08-25 11:10:43 +08:00
|
|
|
<screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
2005-08-25 10:16:32 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>Compile and install <application>Firefox</application> by
|
|
|
|
running the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
2004-06-14 04:45:42 +08:00
|
|
|
export BUILD_OFFICIAL="1" &&
|
|
|
|
export MOZ_PHOENIX="1" &&
|
2005-08-25 11:05:05 +08:00
|
|
|
|
2005-08-25 11:10:43 +08:00
|
|
|
sed -i 's| dist_bin="$moz_libdir"|\
|
|
|
|
&\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &&
|
2005-08-25 11:05:05 +08:00
|
|
|
|
2005-11-12 11:31:12 +08:00
|
|
|
patch -Np1 -i ../firefox-&firefox-version;-gcc4-2.patch &&
|
2004-10-15 21:16:28 +08:00
|
|
|
./configure --prefix=/usr \
|
2005-08-25 10:16:32 +08:00
|
|
|
--with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
|
2004-12-14 14:07:48 +08:00
|
|
|
--with-user-appdir=.firefox \
|
2004-07-15 19:52:34 +08:00
|
|
|
--with-system-zlib \
|
|
|
|
--with-system-png \
|
2004-12-14 14:07:48 +08:00
|
|
|
--enable-application=browser \
|
2004-06-14 04:45:42 +08:00
|
|
|
--enable-default-toolkit=gtk2 \
|
2005-04-22 22:56:09 +08:00
|
|
|
--enable-extensions=cookie,xml-rpc,xmlextras,pref,\
|
2005-07-31 23:01:09 +08:00
|
|
|
transformiix,universalchardet,webservices,inspector,\
|
|
|
|
gnomevfs,negotiateauth \
|
2004-07-15 19:52:34 +08:00
|
|
|
--enable-crypto \
|
2004-12-14 14:07:48 +08:00
|
|
|
--enable-xft \
|
2004-07-15 19:52:34 +08:00
|
|
|
--enable-xinerama \
|
|
|
|
--enable-optimize \
|
|
|
|
--enable-reorder \
|
|
|
|
--enable-strip \
|
|
|
|
--enable-cpp-rtti \
|
2004-12-14 14:07:48 +08:00
|
|
|
--enable-single-profile \
|
|
|
|
--disable-freetype2 \
|
|
|
|
--disable-accessibility \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-logging \
|
|
|
|
--disable-pedantic \
|
|
|
|
--disable-installer \
|
|
|
|
--disable-mailnews \
|
|
|
|
--disable-ldap \
|
|
|
|
--disable-composer \
|
2004-07-15 19:52:34 +08:00
|
|
|
--disable-profilesharing &&
|
2005-05-21 16:19:50 +08:00
|
|
|
make</userinput></screen>
|
2005-02-18 13:57:02 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>You should add the <option>--with-system-jpeg</option> switch
|
|
|
|
to the <command>configure</command> script if you have
|
|
|
|
<application>libjpeg</application> installed.</para>
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>This package does not come with a test suite.</para>
|
2005-04-11 03:19:58 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-02-18 13:57:02 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2005-08-25 10:16:32 +08:00
|
|
|
install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
|
|
|
cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
2005-05-21 16:19:50 +08:00
|
|
|
/usr/include/firefox-&firefox-version;/nss</userinput></screen>
|
2004-07-15 19:52:34 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>To enable multi-user operation, execute the following as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2004-06-14 04:45:42 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
2004-06-14 04:45:42 +08:00
|
|
|
export LD_LIBRARY_PATH="$PWD" &&
|
|
|
|
export MOZILLA_FIVE_HOME="$PWD" &&
|
|
|
|
./regxpcom &&
|
|
|
|
./regchrome &&
|
2005-05-21 16:19:50 +08:00
|
|
|
touch `find . -name *.rdf`</userinput></screen>
|
2004-06-14 04:45:42 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<note>
|
|
|
|
<para>You should run <command>/usr/bin/firefox</command> once as the
|
|
|
|
<systemitem class="username">root</systemitem> user (or any user with
|
|
|
|
write privileges) to create some necessary additional files in the
|
|
|
|
<filename class='directory'>/usr</filename> hierarchy.</para>
|
|
|
|
</note>
|
2004-09-14 00:12:40 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>Lastly, unset the build variables from the unprivileged user's
|
|
|
|
environment:</para>
|
2005-04-22 22:56:09 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<screen><userinput>unset MOZILLA_OFFICIAL &&
|
2005-04-22 22:56:09 +08:00
|
|
|
unset BUILD_OFFICIAL &&
|
2005-05-21 16:19:50 +08:00
|
|
|
unset MOZ_PHOENIX</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><command>sed -i '...' browser/app/mozilla.in</command>: This command
|
|
|
|
fixes an issue where <application>Firefox</application> wants to call the
|
|
|
|
profile manager instead of just invoking another copy of itself.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Firefox</title>
|
|
|
|
|
|
|
|
<para>No specific configuration is required as long as the
|
|
|
|
<command>firefox</command> script is in the user's path. If
|
|
|
|
<application>Firefox</application> is installed in a non-standard location,
|
|
|
|
then make a symlink to the <command>firefox</command> script from
|
|
|
|
<filename class="directory">/usr/bin</filename>.</para>
|
|
|
|
|
|
|
|
<para>Many applications look for <command>netscape</command> when they
|
|
|
|
need to open a browser. You may make the following symlink for convenience
|
|
|
|
(as the <systemitem class="username">root</systemitem> user).</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
|
|
|
|
|
|
|
<para>For installing various <application>Firefox</application> plugins,
|
|
|
|
refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
|
|
|
PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
|
|
|
installed, create the following link as the
|
|
|
|
<systemitem class="username">root</systemitem> user to utilize the
|
|
|
|
<application>JAVA</application> plugin: </para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
|
|
|
/usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>firefox and firefox-config</seg>
|
|
|
|
<seg>Numerous libraries, browser components, plugins, extensions, and
|
|
|
|
helper modules installed in <filename
|
|
|
|
class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
|
|
|
<seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
|
|
|
|
/usr/lib/firefox-&firefox-version;, and
|
|
|
|
/usr/share/idl/firefox-&firefox-version;</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="firefox-prog">
|
|
|
|
<term><command>firefox</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the next-generation browser from Mozilla.</para>
|
|
|
|
<indexterm zone="firefox firefox-prog">
|
|
|
|
<primary sortas="b-firefox">firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="firefox-config">
|
|
|
|
<term><command>firefox-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>determines the compile and linker flags that should be
|
|
|
|
used to compile and link programs that use
|
|
|
|
<application>Firefox</application> libraries and browser
|
|
|
|
components.</para>
|
|
|
|
<indexterm zone="firefox firefox-config">
|
|
|
|
<primary sortas="b-firefox-config">firefox-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-02-23 09:29:29 +08:00
|
|
|
|
|
|
|
</sect1>
|