[2aaa7e5] | 1 | <sect2>
|
---|
[21456e1] | 2 | <title>Installation of <application>Mozilla</application></title>
|
---|
[2aaa7e5] | 3 |
|
---|
[21456e1] | 4 | <para>Install <application>Mozilla</application> by running the following
|
---|
| 5 | commands:</para>
|
---|
[2aaa7e5] | 6 |
|
---|
[21456e1] | 7 | <screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
---|
[2aaa7e5] | 8 | export BUILD_OFFICIAL="1" &&
|
---|
[d986b57] | 9 | <!--
|
---|
[0f47226] | 10 | export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
---|
[2aaa7e5] | 11 | cd extensions &&
|
---|
| 12 | rm -rf spellcheck &&
|
---|
[20d6dc1] | 13 | tar -xjf ../../mozilla-&mozilla-version;-spellchecker.tar.bz2 &&
|
---|
[2aaa7e5] | 14 | cd .. &&
|
---|
[d986b57] | 15 | -->
|
---|
[5024520] | 16 | for p in ../mozilla-&mozilla-version;-*.patch
|
---|
| 17 | do patch -Np1 -i $p
|
---|
[21456e1] | 18 | done</command></userinput></screen>
|
---|
[1c6182e] | 19 |
|
---|
| 20 | <para>According to the financial institutions, the following hack makes your
|
---|
| 21 | browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
---|
| 22 | (autocomplete=off) to prevent autocomplete from working in some forms. This
|
---|
[46bca118] | 23 | tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
|
---|
[1c6182e] | 24 | the requirements of the financial institutions, they will not even accept a
|
---|
| 25 | solution where this a preference option. However our opinion is that it should
|
---|
| 26 | be in the hands of the user. To enable autocomplete to bypass
|
---|
| 27 | this restriction, we need to make a slight modification in the code.</para>
|
---|
| 28 |
|
---|
| 29 | <para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
---|
[46bca118] | 30 | the <application>Mozilla</application> source tree and search for the line:
|
---|
[1c6182e] | 31 | <screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
---|
| 32 | Then delete or comment out the line. Now, if anyone tells you MS-IE is user
|
---|
| 33 | friendly, give them this example!</para>
|
---|
| 34 |
|
---|
[65adb85] | 35 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
[2aaa7e5] | 36 | --enable-default-mozilla-five-home \
|
---|
[1c6182e] | 37 | --enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
|
---|
[2aaa7e5] | 38 | --with-x --with-system-zlib \
|
---|
| 39 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
| 40 | --enable-xft --enable-crypto \
|
---|
| 41 | --enable-java-supplement \
|
---|
[f5b4f72] | 42 | --disable-accessibility \
|
---|
[2aaa7e5] | 43 | --disable-tests --disable-debug \
|
---|
| 44 | --disable-logging --enable-reorder \
|
---|
[583cf2e4] | 45 | --enable-strip --disable-pedantic \
|
---|
[0f47226] | 46 | --enable-cpp-rtti --enable-extensions=all &&
|
---|
[2aaa7e5] | 47 | make &&
|
---|
| 48 | make install &&
|
---|
[65adb85] | 49 | install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
[1c6182e] | 50 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[65adb85] | 51 | /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
[766e17e] | 52 | <!--
|
---|
[65adb85] | 53 | install -d /usr/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
[098ad89] | 54 | cp -f dist/lib/libembed_base_s.a dist/lib/liblber50.a \
|
---|
[65adb85] | 55 | dist/lib/libmozreg_s.a /usr/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
[766e17e] | 56 | -->
|
---|
[65adb85] | 57 | ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
---|
| 58 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla &&
|
---|
| 59 | cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
| 60 | export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
| 61 | export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
[2aaa7e5] | 62 | ./regxpcom &&
|
---|
| 63 | ./regchrome &&
|
---|
[65adb85] | 64 | touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
---|
[2aaa7e5] | 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2>
|
---|
| 69 | <title>Optional Extra Switches</title>
|
---|
| 70 |
|
---|
| 71 | <para>Each of these switches can be added to the configure line in order to
|
---|
[237b6d9] | 72 | have the described effect on the <application>Mozilla</application> compile.</para>
|
---|
[2aaa7e5] | 73 |
|
---|
[2be0e0d] | 74 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
[21456e1] | 75 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
| 76 | Note that this option breaks build on alpha.</para>
|
---|
[766e17e] | 77 |
|
---|
[237b6d9] | 78 | <para><option>--disable-mailnews</option>: Disable the mail and news
|
---|
[2aaa7e5] | 79 | clients.</para>
|
---|
| 80 |
|
---|
[237b6d9] | 81 | <para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
|
---|
[21456e1] | 82 | Support, recommended if mail is disabled.</para>
|
---|
[2aaa7e5] | 83 |
|
---|
[237b6d9] | 84 | <para><option>--enable-calendar</option>: Build the calendar client.
|
---|
[24a37fa7] | 85 | You will need to download the calendar source via
|
---|
| 86 | <application><acronym>CVS</acronym></application> since it is not included
|
---|
[098ad89] | 87 | with the release source.
|
---|
[2aaa7e5] | 88 | (Warning, this option is not yet stable).</para>
|
---|
| 89 |
|
---|
[237b6d9] | 90 | <para><option>--enable-xterm-updates</option>: This option is
|
---|
[21456e1] | 91 | for enabling the <command>xterm</command> title with the current command when
|
---|
| 92 | compiling.</para>
|
---|
[2aaa7e5] | 93 |
|
---|
[237b6d9] | 94 | <para><option>--enable-plaintext-editor-only</option>: Disable support
|
---|
[21456e1] | 95 | for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
---|
| 96 | the mail-news component.</para>
|
---|
[2aaa7e5] | 97 |
|
---|
| 98 | </sect2>
|
---|
[0f47226] | 99 |
|
---|
| 100 | <sect2>
|
---|
| 101 | <title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
|
---|
| 102 |
|
---|
| 103 | <para>Add the following env variable (The variable is named Phoenix since
|
---|
[5145473] | 104 | that was the original name for the <application>Mozilla
|
---|
| 105 | Firebird</application> project):</para>
|
---|
[0f47226] | 106 |
|
---|
| 107 | <screen><userinput><command>export MOZILLA_PHOENIX="1"</command></userinput></screen>
|
---|
| 108 |
|
---|
| 109 | <para>Make sure that the following switches are passed to
|
---|
[5145473] | 110 | <command>./configure</command>: <option>--disable-calendar</option> and
|
---|
| 111 | <option>--disable-mailnews</option>.</para>
|
---|
[0f47226] | 112 |
|
---|
[2be0e0d] | 113 | <para>We recommend installing in a separate prefix
|
---|
[5145473] | 114 | such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
|
---|
[0f47226] | 115 | to prevent clashes with
|
---|
| 116 | an installed <application>Mozilla</application>.</para>
|
---|
| 117 |
|
---|
| 118 | <para>The <application>Mozilla Firebird</application> executable is
|
---|
| 119 | <command>MozillaFirebird</command>.</para>
|
---|
| 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2>
|
---|
| 124 | <title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
|
---|
| 125 |
|
---|
| 126 | <para>Add the following env variable:</para>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
|
---|
| 129 |
|
---|
[2be0e0d] | 130 | <para>Make sure that the following switches is passed to
|
---|
[5145473] | 131 | <command>./configure</command>: <option>--disable-calendar</option>.</para>
|
---|
[0f47226] | 132 |
|
---|
[2be0e0d] | 133 | <para>We recommend installing in a separate prefix
|
---|
[5145473] | 134 | such as
|
---|
| 135 | <parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
|
---|
[0f47226] | 136 | to prevent clashes with
|
---|
| 137 | an installed <application>Mozilla</application>.</para>
|
---|
| 138 |
|
---|
| 139 | <para>The <application>Mozilla Thunderbird</application> executable is
|
---|
| 140 | <command>thunderbird</command>.</para>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|