[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" &&
|
---|
| 9 | export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
---|
[d986b57] | 10 | <!--
|
---|
[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
|
---|
[21456e1] | 23 | tag is now supported in Mozilla 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
|
---|
[21456e1] | 30 | the Mozilla 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 |
|
---|
[21456e1] | 35 | <screen><userinput><command>./configure --prefix=&mozilla-prefix; \
|
---|
[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 \
|
---|
[766e17e] | 45 | --enable-strip \
|
---|
[d986b57] | 46 | --enable-cpp-rtti --enable-extensions=all \
|
---|
[68fe102c] | 47 | --enable-svg &&
|
---|
[2aaa7e5] | 48 | make &&
|
---|
| 49 | make install &&
|
---|
[1c6182e] | 50 | install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
---|
| 51 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[aca49ab1] | 52 | &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
---|
[766e17e] | 53 | <!--
|
---|
[098ad89] | 54 | install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
| 55 | cp -f dist/lib/libembed_base_s.a dist/lib/liblber50.a \
|
---|
| 56 | dist/lib/libmozreg_s.a &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
[766e17e] | 57 | -->
|
---|
[098ad89] | 58 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/include/mozilla &&
|
---|
| 59 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/lib/mozilla &&
|
---|
[2aaa7e5] | 60 | cd &mozilla-prefix;/lib/mozilla-&mozilla-version; &&
|
---|
| 61 | export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 62 | export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 63 | ./regxpcom &&
|
---|
| 64 | ./regchrome &&
|
---|
[21456e1] | 65 | touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
---|
[2aaa7e5] | 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
| 70 | <title>Optional Extra Switches</title>
|
---|
| 71 |
|
---|
| 72 | <para>Each of these switches can be added to the configure line in order to
|
---|
| 73 | have the described effect on the mozilla compile.</para>
|
---|
| 74 |
|
---|
[21456e1] | 75 | <para><command>--enable-elf-dynstr-gc</command> : Removes unreferenced
|
---|
| 76 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
| 77 | Note that this option breaks build on alpha.</para>
|
---|
[766e17e] | 78 |
|
---|
[21456e1] | 79 | <para><command>--disable-mailnews</command> : Disable the mail and news
|
---|
[2aaa7e5] | 80 | clients.</para>
|
---|
| 81 |
|
---|
[21456e1] | 82 | <para><command>--disable-ldap</command> : Disable <acronym>LDAP</acronym>
|
---|
| 83 | Support, recommended if mail is disabled.</para>
|
---|
[2aaa7e5] | 84 |
|
---|
[21456e1] | 85 | <para><command>--enable-calendar</command> : Build the calendar client.
|
---|
[098ad89] | 86 | You will need to download the calendar source via cvs since it is not included
|
---|
| 87 | with the release source.
|
---|
[2aaa7e5] | 88 | (Warning, this option is not yet stable).</para>
|
---|
| 89 |
|
---|
[21456e1] | 90 | <para><command>--enable-xterm-updates</command> : This option is
|
---|
| 91 | for enabling the <command>xterm</command> title with the current command when
|
---|
| 92 | compiling.</para>
|
---|
[2aaa7e5] | 93 |
|
---|
[21456e1] | 94 | <para><command>--enable-plaintext-editor-only</command> : Disable support
|
---|
| 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>
|
---|