2002-09-22 08:51:05 +08:00
|
|
|
<sect2>
|
2003-09-25 23:20:58 +08:00
|
|
|
<title>Installation of <application>Mozilla</application></title>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para>Install <application>Mozilla</application> by running the following
|
|
|
|
commands:</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
2002-09-22 08:51:05 +08:00
|
|
|
export BUILD_OFFICIAL="1" &&
|
2003-03-15 22:53:54 +08:00
|
|
|
<!--
|
2003-09-28 07:40:25 +08:00
|
|
|
export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
2002-09-22 08:51:05 +08:00
|
|
|
cd extensions &&
|
|
|
|
rm -rf spellcheck &&
|
2002-09-24 11:08:45 +08:00
|
|
|
tar -xjf ../../mozilla-&mozilla-version;-spellchecker.tar.bz2 &&
|
2002-09-22 08:51:05 +08:00
|
|
|
cd .. &&
|
2003-03-15 22:53:54 +08:00
|
|
|
-->
|
2003-02-07 06:55:29 +08:00
|
|
|
for p in ../mozilla-&mozilla-version;-*.patch
|
|
|
|
do patch -Np1 -i $p
|
2003-09-25 23:20:58 +08:00
|
|
|
done</command></userinput></screen>
|
2003-02-07 00:56:53 +08:00
|
|
|
|
|
|
|
<para>According to the financial institutions, the following hack makes your
|
|
|
|
browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
|
|
|
(autocomplete=off) to prevent autocomplete from working in some forms. This
|
2003-09-27 05:14:55 +08:00
|
|
|
tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
|
2003-02-07 00:56:53 +08:00
|
|
|
the requirements of the financial institutions, they will not even accept a
|
|
|
|
solution where this a preference option. However our opinion is that it should
|
|
|
|
be in the hands of the user. To enable autocomplete to bypass
|
|
|
|
this restriction, we need to make a slight modification in the code.</para>
|
|
|
|
|
|
|
|
<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
2003-09-27 05:14:55 +08:00
|
|
|
the <application>Mozilla</application> source tree and search for the line:
|
2003-02-07 00:56:53 +08:00
|
|
|
<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
|
|
|
Then delete or comment out the line. Now, if anyone tells you MS-IE is user
|
|
|
|
friendly, give them this example!</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<screen><userinput><command>./configure --prefix=&mozilla-prefix; \
|
2002-09-22 08:51:05 +08:00
|
|
|
--enable-default-mozilla-five-home \
|
2003-02-07 00:56:53 +08:00
|
|
|
--enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
|
2002-09-22 08:51:05 +08:00
|
|
|
--with-x --with-system-zlib \
|
|
|
|
--with-system-jpeg --with-system-png --with-system-mng \
|
|
|
|
--enable-xft --enable-crypto \
|
|
|
|
--enable-java-supplement \
|
2003-02-15 01:48:33 +08:00
|
|
|
--disable-accessibility \
|
2002-09-22 08:51:05 +08:00
|
|
|
--disable-tests --disable-debug \
|
|
|
|
--disable-logging --enable-reorder \
|
2003-03-19 14:29:00 +08:00
|
|
|
--enable-strip \
|
2003-09-28 07:40:25 +08:00
|
|
|
--enable-cpp-rtti --enable-extensions=all &&
|
2002-09-22 08:51:05 +08:00
|
|
|
make &&
|
|
|
|
make install &&
|
2003-02-07 00:56:53 +08:00
|
|
|
install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
|
|
|
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
2003-02-15 13:29:22 +08:00
|
|
|
&mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
2003-03-19 14:29:00 +08:00
|
|
|
<!--
|
2002-09-23 22:58:13 +08:00
|
|
|
install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
|
|
|
cp -f dist/lib/libembed_base_s.a dist/lib/liblber50.a \
|
|
|
|
dist/lib/libmozreg_s.a &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
2003-03-19 14:29:00 +08:00
|
|
|
-->
|
2002-09-23 22:58:13 +08:00
|
|
|
ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/include/mozilla &&
|
|
|
|
ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/lib/mozilla &&
|
2002-09-22 08:51:05 +08:00
|
|
|
cd &mozilla-prefix;/lib/mozilla-&mozilla-version; &&
|
|
|
|
export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
|
|
|
export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
|
|
|
./regxpcom &&
|
|
|
|
./regchrome &&
|
2003-09-25 23:20:58 +08:00
|
|
|
touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Optional Extra Switches</title>
|
|
|
|
|
|
|
|
<para>Each of these switches can be added to the configure line in order to
|
|
|
|
have the described effect on the mozilla compile.</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-elf-dynstr-gc</command> : Removes unreferenced
|
|
|
|
strings from <acronym>ELF</acronym> shared objects generated during the build.
|
|
|
|
Note that this option breaks build on alpha.</para>
|
2003-03-19 14:29:00 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--disable-mailnews</command> : Disable the mail and news
|
2002-09-22 08:51:05 +08:00
|
|
|
clients.</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--disable-ldap</command> : Disable <acronym>LDAP</acronym>
|
|
|
|
Support, recommended if mail is disabled.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-calendar</command> : Build the calendar client.
|
2003-09-30 05:00:06 +08:00
|
|
|
You will need to download the calendar source via
|
|
|
|
<application><acronym>CVS</acronym></application> since it is not included
|
2002-09-23 22:58:13 +08:00
|
|
|
with the release source.
|
2002-09-22 08:51:05 +08:00
|
|
|
(Warning, this option is not yet stable).</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-xterm-updates</command> : This option is
|
|
|
|
for enabling the <command>xterm</command> title with the current command when
|
|
|
|
compiling.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-plaintext-editor-only</command> : Disable support
|
|
|
|
for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
|
|
|
the mail-news component.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
|
|
|
</sect2>
|
2003-09-28 07:40:25 +08:00
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
|
|
|
|
|
|
|
|
<para>Add the following env variable (The variable is named Phoenix since
|
|
|
|
that was the original name for the Mozilla Firebird project):</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>export MOZILLA_PHOENIX="1"</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Make sure that the following switches are passed to
|
|
|
|
<command>./configure</command>: <command>--disable-calendar</command> and
|
|
|
|
<command>--disable-mailnews</command>.</para>
|
|
|
|
|
|
|
|
<para>We recommend installing in a seperate prefix
|
|
|
|
such as <command>--prefix=/opt/firebird-&firebird-version;</command>
|
|
|
|
to prevent clashes with
|
|
|
|
an installed <application>Mozilla</application>.</para>
|
|
|
|
|
|
|
|
<para>The <application>Mozilla Firebird</application> executable is
|
|
|
|
<command>MozillaFirebird</command>.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
|
|
|
|
|
|
|
|
<para>Add the following env variable:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Make sure that the following switche is passed to
|
|
|
|
<command>./configure</command>: <command>--disable-calendar</command>.</para>
|
|
|
|
|
|
|
|
<para>We recommend installing in a seperate prefix
|
|
|
|
such as <command>--prefix=/opt/thunderbird-&thunderbird-version;</command>
|
|
|
|
to prevent clashes with
|
|
|
|
an installed <application>Mozilla</application>.</para>
|
|
|
|
|
|
|
|
<para>The <application>Mozilla Thunderbird</application> executable is
|
|
|
|
<command>thunderbird</command>.</para>
|
|
|
|
|
|
|
|
</sect2>
|