[2aaa7e5] | 1 | <sect2>
|
---|
| 2 | <title>Installation of mozilla</title>
|
---|
| 3 |
|
---|
[1c6182e] | 4 | <para>Install mozilla by running the following commands:</para>
|
---|
[2aaa7e5] | 5 |
|
---|
| 6 | <para><screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
| 7 | export BUILD_OFFICIAL="1" &&
|
---|
| 8 | export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
---|
| 9 | cd extensions &&
|
---|
| 10 | rm -rf spellcheck &&
|
---|
[20d6dc1] | 11 | tar -xjf ../../mozilla-&mozilla-version;-spellchecker.tar.bz2 &&
|
---|
[2aaa7e5] | 12 | cd .. &&
|
---|
[5024520] | 13 | for p in ../mozilla-&mozilla-version;-*.patch
|
---|
| 14 | do patch -Np1 -i $p
|
---|
| 15 | done</userinput></screen></para>
|
---|
[1c6182e] | 16 |
|
---|
| 17 | <para>According to the financial institutions, the following hack makes your
|
---|
| 18 | browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
---|
| 19 | (autocomplete=off) to prevent autocomplete from working in some forms. This
|
---|
| 20 | tag is now supported in mozilla to appease the financial institutions. As per
|
---|
| 21 | the requirements of the financial institutions, they will not even accept a
|
---|
| 22 | solution where this a preference option. However our opinion is that it should
|
---|
| 23 | be in the hands of the user. To enable autocomplete to bypass
|
---|
| 24 | this restriction, we need to make a slight modification in the code.</para>
|
---|
| 25 |
|
---|
| 26 | <para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
---|
| 27 | the mozilla source tree and search for the line:
|
---|
| 28 | <screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
---|
| 29 | Then delete or comment out the line. Now, if anyone tells you MS-IE is user
|
---|
| 30 | friendly, give them this example!</para>
|
---|
| 31 |
|
---|
| 32 | <para><screen><userinput>./configure --prefix=&mozilla-prefix; \
|
---|
[2aaa7e5] | 33 | --enable-default-mozilla-five-home \
|
---|
[1c6182e] | 34 | --enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
|
---|
[2aaa7e5] | 35 | --with-x --with-system-zlib \
|
---|
| 36 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
| 37 | --enable-xft --enable-crypto \
|
---|
| 38 | --enable-java-supplement \
|
---|
[f5b4f72] | 39 | --disable-accessibility \
|
---|
[2aaa7e5] | 40 | --disable-tests --disable-debug \
|
---|
[f5b4f72] | 41 | --enable-optimize=-O3 \
|
---|
[2aaa7e5] | 42 | --disable-logging --enable-reorder \
|
---|
| 43 | --enable-strip --enable-elf-dynstr-gc \
|
---|
[098ad89] | 44 | --enable-cpp-rtti --enable-extensions=all,spellcheck \
|
---|
[68fe102c] | 45 | --enable-svg &&
|
---|
[2aaa7e5] | 46 | make &&
|
---|
| 47 | make install &&
|
---|
[1c6182e] | 48 | install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
---|
| 49 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[aca49ab1] | 50 | &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
---|
[098ad89] | 51 | install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
| 52 | cp -f dist/lib/libembed_base_s.a dist/lib/liblber50.a \
|
---|
| 53 | dist/lib/libmozreg_s.a &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
| 54 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/include/mozilla &&
|
---|
| 55 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/lib/mozilla &&
|
---|
[2aaa7e5] | 56 | cd &mozilla-prefix;/lib/mozilla-&mozilla-version; &&
|
---|
| 57 | export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 58 | export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 59 | ./regxpcom &&
|
---|
| 60 | ./regchrome &&
|
---|
| 61 | touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</userinput></screen></para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2>
|
---|
| 66 | <title>Optional Extra Switches</title>
|
---|
| 67 |
|
---|
| 68 | <para>Each of these switches can be added to the configure line in order to
|
---|
| 69 | have the described effect on the mozilla compile.</para>
|
---|
| 70 |
|
---|
[24c5c34] | 71 | <para><userinput>--disable-mailnews</userinput> : Disable the mail and news
|
---|
[2aaa7e5] | 72 | clients.</para>
|
---|
| 73 |
|
---|
[24c5c34] | 74 | <para><userinput>--disable-ldap</userinput> : Disable LDAP Support,
|
---|
[2aaa7e5] | 75 | recommended if mail is disabled.</para>
|
---|
| 76 |
|
---|
[24c5c34] | 77 | <para><userinput>--enable-calendar</userinput> : Build the calendar client.
|
---|
[098ad89] | 78 | You will need to download the calendar source via cvs since it is not included
|
---|
| 79 | with the release source.
|
---|
[2aaa7e5] | 80 | (Warning, this option is not yet stable).</para>
|
---|
| 81 |
|
---|
[24c5c34] | 82 | <para><userinput>--enable-xterm-updates</userinput> : This option is
|
---|
[2aaa7e5] | 83 | for enabling the xterm title with the current command when compiling.</para>
|
---|
| 84 |
|
---|
[24c5c34] | 85 | <para><userinput>--enable-plaintext-editor-only</userinput> : Disable support
|
---|
[b02f257] | 86 | for HTML editing. Do not use this switch if you are building the mail-news
|
---|
| 87 | component.</para>
|
---|
[2aaa7e5] | 88 |
|
---|
| 89 | </sect2>
|
---|