1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
8 | <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
9 | <!ENTITY firefox-md5sum "5704a8c36de84b408e069afb0c5bc1df">
|
---|
10 | <!ENTITY firefox-size "32.0 MB">
|
---|
11 | <!ENTITY firefox-buildsize "545 MB">
|
---|
12 | <!ENTITY firefox-time "10.3 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <!--
|
---|
16 |
|
---|
17 | Devs:
|
---|
18 |
|
---|
19 | Always check the browser/config/mozconfig file in the source tree for
|
---|
20 | any changes to the options passed to configure. This file shows the
|
---|
21 | default build used by Mozilla. BLFS adds to this, but the values here
|
---|
22 | should be in our setup.
|
---|
23 |
|
---|
24 | -->
|
---|
25 |
|
---|
26 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
27 | <?dbhtml filename="firefox.html" ?>
|
---|
28 |
|
---|
29 | <sect1info>
|
---|
30 | <othername>$LastChangedBy$</othername>
|
---|
31 | <date>$Date$</date>
|
---|
32 | </sect1info>
|
---|
33 |
|
---|
34 | <title>Firefox-&firefox-version;</title>
|
---|
35 |
|
---|
36 | <indexterm zone="firefox">
|
---|
37 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
38 | </indexterm>
|
---|
39 |
|
---|
40 | <sect2 role="package">
|
---|
41 | <title>Introduction to Firefox</title>
|
---|
42 |
|
---|
43 | <para><application>Firefox</application> is a stand-alone browser
|
---|
44 | based on the <application>Mozilla</application> codebase.</para>
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &firefox-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &firefox-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
69 | <itemizedlist spacing="compact">
|
---|
70 | <listitem>
|
---|
71 | <para>Required patch: <ulink
|
---|
72 | url="&patch-root;/firefox-&firefox-version;-gcc4-1.patch"/></para>
|
---|
73 | </listitem>
|
---|
74 | </itemizedlist>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
79 | <para><xref linkend="gtk2"/>,
|
---|
80 | <xref linkend="libidl"/> and
|
---|
81 | <xref linkend="zip"/></para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para><xref linkend="libjpeg"/>,
|
---|
85 | <xref linkend="unzip"/>,
|
---|
86 | <xref linkend="gnome-vfs"/> and
|
---|
87 | <xref linkend="libgnome"/> (to build the gnomevfs extension),
|
---|
88 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
|
---|
89 | (for the GSSAPI libraries to build the negotiateauth extension),
|
---|
90 | <xref linkend="doxygen"/>,
|
---|
91 | <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
|
---|
92 | <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2 role="installation">
|
---|
97 | <title>Installation of Firefox</title>
|
---|
98 |
|
---|
99 | <para>The configuration of <application>Firefox</application> is very
|
---|
100 | similar to <xref linkend="mozilla"/> and hence the options are not
|
---|
101 | discussed. Refer to the <xref linkend="mozilla"/> instructions for
|
---|
102 | explanations and additional configuration information.</para>
|
---|
103 |
|
---|
104 | <para><application>Firefox</application> default behavior when invoked
|
---|
105 | with a URL parameter is to open a new browser window. If you would rather
|
---|
106 | <application>Firefox</application> open a new tab in an existing browser
|
---|
107 | window, issue the following command:</para>
|
---|
108 |
|
---|
109 | <screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
---|
110 |
|
---|
111 | <para>Compile and install <application>Firefox</application> by
|
---|
112 | running the following commands:</para>
|
---|
113 |
|
---|
114 | <screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
115 | export BUILD_OFFICIAL="1" &&
|
---|
116 | export MOZ_PHOENIX="1" &&
|
---|
117 |
|
---|
118 | sed -i 's| dist_bin="$moz_libdir"|\
|
---|
119 | &\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &&
|
---|
120 |
|
---|
121 | patch -Np1 -i ../firefox-&firefox-version;-gcc4-1.patch &&
|
---|
122 | ./configure --prefix=/usr \
|
---|
123 | --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
|
---|
124 | --with-user-appdir=.firefox \
|
---|
125 | --with-system-zlib \
|
---|
126 | --with-system-png \
|
---|
127 | --enable-application=browser \
|
---|
128 | --enable-default-toolkit=gtk2 \
|
---|
129 | --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
|
---|
130 | transformiix,universalchardet,webservices,inspector,\
|
---|
131 | gnomevfs,negotiateauth \
|
---|
132 | --enable-crypto \
|
---|
133 | --enable-xft \
|
---|
134 | --enable-xinerama \
|
---|
135 | --enable-optimize \
|
---|
136 | --enable-reorder \
|
---|
137 | --enable-strip \
|
---|
138 | --enable-cpp-rtti \
|
---|
139 | --enable-single-profile \
|
---|
140 | --disable-freetype2 \
|
---|
141 | --disable-accessibility \
|
---|
142 | --disable-debug \
|
---|
143 | --disable-tests \
|
---|
144 | --disable-logging \
|
---|
145 | --disable-pedantic \
|
---|
146 | --disable-installer \
|
---|
147 | --disable-mailnews \
|
---|
148 | --disable-ldap \
|
---|
149 | --disable-composer \
|
---|
150 | --disable-profilesharing &&
|
---|
151 | make</userinput></screen>
|
---|
152 |
|
---|
153 | <para>You should add the <option>--with-system-jpeg</option> switch
|
---|
154 | to the <command>configure</command> script if you have
|
---|
155 | <application>libjpeg</application> installed.</para>
|
---|
156 |
|
---|
157 | <para>This package does not come with a test suite.</para>
|
---|
158 |
|
---|
159 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
160 |
|
---|
161 | <screen role="root"><userinput>make install &&
|
---|
162 | install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
---|
163 | cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
164 | /usr/include/firefox-&firefox-version;/nss</userinput></screen>
|
---|
165 |
|
---|
166 | <para>To enable multi-user operation, execute the following as the
|
---|
167 | <systemitem class="username">root</systemitem> user:</para>
|
---|
168 |
|
---|
169 | <screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
---|
170 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
171 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
172 | ./regxpcom &&
|
---|
173 | ./regchrome &&
|
---|
174 | touch `find . -name *.rdf`</userinput></screen>
|
---|
175 |
|
---|
176 | <note>
|
---|
177 | <para>You should run <command>/usr/bin/firefox</command> once as the
|
---|
178 | <systemitem class="username">root</systemitem> user (or any user with
|
---|
179 | write privileges) to create some necessary additional files in the
|
---|
180 | <filename class='directory'>/usr</filename> hierarchy.</para>
|
---|
181 | </note>
|
---|
182 |
|
---|
183 | <para>Lastly, unset the build variables from the unprivileged user's
|
---|
184 | environment:</para>
|
---|
185 |
|
---|
186 | <screen><userinput>unset MOZILLA_OFFICIAL &&
|
---|
187 | unset BUILD_OFFICIAL &&
|
---|
188 | unset MOZ_PHOENIX</userinput></screen>
|
---|
189 |
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | <sect2 role="commands">
|
---|
193 | <title>Command Explanations</title>
|
---|
194 |
|
---|
195 | <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
|
---|
196 | fixes an issue where <application>Firefox</application> wants to call the
|
---|
197 | profile manager instead of just invoking another copy of itself.</para>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="configuration">
|
---|
202 | <title>Configuring Firefox</title>
|
---|
203 |
|
---|
204 | <para>No specific configuration is required as long as the
|
---|
205 | <command>firefox</command> script is in the user's path. If
|
---|
206 | <application>Firefox</application> is installed in a non-standard location,
|
---|
207 | then make a symlink to the <command>firefox</command> script from
|
---|
208 | <filename class="directory">/usr/bin</filename>.</para>
|
---|
209 |
|
---|
210 | <para>Many applications look for <command>netscape</command> when they
|
---|
211 | need to open a browser. You may make the following symlink for convenience
|
---|
212 | (as the <systemitem class="username">root</systemitem> user).</para>
|
---|
213 |
|
---|
214 | <screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
---|
215 |
|
---|
216 | <para>For installing various <application>Firefox</application> plugins,
|
---|
217 | refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
---|
218 | PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
---|
219 | installed, create the following link as the
|
---|
220 | <systemitem class="username">root</systemitem> user to utilize the
|
---|
221 | <application>JAVA</application> plugin: </para>
|
---|
222 |
|
---|
223 | <screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
---|
224 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
225 |
|
---|
226 | </sect2>
|
---|
227 |
|
---|
228 | <sect2 role="content">
|
---|
229 | <title>Contents</title>
|
---|
230 |
|
---|
231 | <segmentedlist>
|
---|
232 | <segtitle>Installed Programs</segtitle>
|
---|
233 | <segtitle>Installed Libraries</segtitle>
|
---|
234 | <segtitle>Installed Directories</segtitle>
|
---|
235 |
|
---|
236 | <seglistitem>
|
---|
237 | <seg>firefox and firefox-config</seg>
|
---|
238 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
239 | helper modules installed in <filename
|
---|
240 | class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
---|
241 | <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
|
---|
242 | /usr/lib/firefox-&firefox-version;, and
|
---|
243 | /usr/share/idl/firefox-&firefox-version;</seg>
|
---|
244 | </seglistitem>
|
---|
245 | </segmentedlist>
|
---|
246 |
|
---|
247 | <variablelist>
|
---|
248 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
249 | <?dbfo list-presentation="list"?>
|
---|
250 | <?dbhtml list-presentation="table"?>
|
---|
251 |
|
---|
252 | <varlistentry id="firefox-prog">
|
---|
253 | <term><command>firefox</command></term>
|
---|
254 | <listitem>
|
---|
255 | <para>is the next-generation browser from Mozilla.</para>
|
---|
256 | <indexterm zone="firefox firefox-prog">
|
---|
257 | <primary sortas="b-firefox">firefox</primary>
|
---|
258 | </indexterm>
|
---|
259 | </listitem>
|
---|
260 | </varlistentry>
|
---|
261 |
|
---|
262 | <varlistentry id="firefox-config">
|
---|
263 | <term><command>firefox-config</command></term>
|
---|
264 | <listitem>
|
---|
265 | <para>determines the compile and linker flags that should be
|
---|
266 | used to compile and link programs that use
|
---|
267 | <application>Firefox</application> libraries and browser
|
---|
268 | components.</para>
|
---|
269 | <indexterm zone="firefox firefox-config">
|
---|
270 | <primary sortas="b-firefox-config">firefox-config</primary>
|
---|
271 | </indexterm>
|
---|
272 | </listitem>
|
---|
273 | </varlistentry>
|
---|
274 |
|
---|
275 | </variablelist>
|
---|
276 |
|
---|
277 | </sect2>
|
---|
278 |
|
---|
279 | </sect1>
|
---|