[2aaa7e5] | 1 | <sect2>
|
---|
| 2 | <title>Installation of mozilla</title>
|
---|
| 3 |
|
---|
| 4 | <para>Install mozilla by running the following commands (don't forget to
|
---|
| 5 | bunzip2 the patch file first):</para>
|
---|
| 6 |
|
---|
| 7 | <para><screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
| 8 | export BUILD_OFFICIAL="1" &&
|
---|
| 9 | export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
---|
| 10 | cd extensions &&
|
---|
| 11 | rm -rf spellcheck &&
|
---|
[20d6dc1] | 12 | tar -xjf ../../mozilla-&mozilla-version;-spellchecker.tar.bz2 &&
|
---|
[2aaa7e5] | 13 | cd .. &&
|
---|
| 14 | patch -Np1 -i mozilla-&mozilla-version;.patch &&
|
---|
| 15 | ./configure --prefix=&mozilla-prefix; \
|
---|
| 16 | --enable-default-mozilla-five-home \
|
---|
| 17 | --with-x --with-system-zlib \
|
---|
| 18 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
| 19 | --enable-xft --enable-crypto \
|
---|
| 20 | --enable-java-supplement \
|
---|
| 21 | --disable-jsd --disable-accessibility \
|
---|
| 22 | --disable-tests --disable-debug \
|
---|
| 23 | --enable-optimize=-O3 --disable-dtd-debug \
|
---|
| 24 | --disable-logging --enable-reorder \
|
---|
| 25 | --enable-strip --enable-elf-dynstr-gc \
|
---|
[098ad89] | 26 | --enable-cpp-rtti --enable-extensions=all,spellcheck \
|
---|
[2aaa7e5] | 27 | --enable-svg
|
---|
| 28 | make &&
|
---|
| 29 | make install &&
|
---|
| 30 | install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/security &&
|
---|
| 31 | cp -Lf dist/private/security/*.h dist/public/security/*.h \
|
---|
| 32 | &mozilla-prefix;/include/mozilla-&mozilla-version;/security &&
|
---|
[098ad89] | 33 | install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
| 34 | cp -f dist/lib/libembed_base_s.a dist/lib/liblber50.a \
|
---|
| 35 | dist/lib/libmozreg_s.a &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice &&
|
---|
| 36 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/include/mozilla &&
|
---|
| 37 | ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/lib/mozilla &&
|
---|
| 38 | ln -sf &mozilla-prefix;/bin/mozilla /usr/bin/mozilla &&
|
---|
| 39 | ln -sf &mozilla-prefix;/bin/mozilla /usr/bin/netscape &&
|
---|
[2aaa7e5] | 40 | cd &mozilla-prefix;/lib/mozilla-&mozilla-version; &&
|
---|
| 41 | export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 42 | export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 43 | ./regxpcom &&
|
---|
| 44 | ./regchrome &&
|
---|
| 45 | touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</userinput></screen></para>
|
---|
| 46 |
|
---|
| 47 | </sect2>
|
---|
| 48 |
|
---|
| 49 | <sect2>
|
---|
| 50 | <title>Optional Extra Switches</title>
|
---|
| 51 |
|
---|
| 52 | <para>Each of these switches can be added to the configure line in order to
|
---|
| 53 | have the described effect on the mozilla compile.</para>
|
---|
| 54 |
|
---|
| 55 | <para><userinput>--disable-mailnews</userinput>: Disable the mail and news
|
---|
| 56 | clients.</para>
|
---|
| 57 |
|
---|
| 58 | <para><userinput>--disable-ldap</userinput>: Disable LDAP Support,
|
---|
| 59 | recommended if mail is disabled.</para>
|
---|
| 60 |
|
---|
| 61 | <para><userinput>--enable-calendar</userinput>: Build the calendar client.
|
---|
[098ad89] | 62 | You will need to download the calendar source via cvs since it is not included
|
---|
| 63 | with the release source.
|
---|
[2aaa7e5] | 64 | (Warning, this option is not yet stable).</para>
|
---|
| 65 |
|
---|
| 66 | <para><userinput>--enable-xterm-updates</userinput>: This option is
|
---|
| 67 | for enabling the xterm title with the current command when compiling.</para>
|
---|
| 68 |
|
---|
| 69 | <para><userinput>--enable-plaintext-editor-only</userinput>: Disable support
|
---|
| 70 | for HTML editing.</para>
|
---|
| 71 |
|
---|
| 72 | <para><userinput>--enable-default-toolkit=gtk2</userinput>: In theory
|
---|
| 73 | mozilla now supports both gtk 1.2 and gtk 2.0. To enable gtk2 support, use
|
---|
| 74 | this option. People have however had problems getting a usable gtk2
|
---|
| 75 | built even with this and patches. There is also support for other toolkits
|
---|
| 76 | available but this support is known to be unstable. If you want to try one,
|
---|
| 77 | we suggest doing a normal build first and then only trying the other
|
---|
| 78 | toolkits when you know you can get a standard build to work.</para>
|
---|
| 79 |
|
---|
| 80 | <para>According to the financial institutions, the following hack makes your
|
---|
| 81 | browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
---|
| 82 | (autocomplete=off) to prevent autocomplete from working in some forms. This
|
---|
| 83 | tag is now supported in mozilla to appease the financial institutions. As per
|
---|
| 84 | the requirements of the financial institutions, they will not even accept a
|
---|
| 85 | solution where this a preference option. However our opinion is that it should
|
---|
| 86 | be in the hands of the user. To enable autocomplete to bypass
|
---|
| 87 | this restriction, we need to make a slight modification in the code.</para>
|
---|
| 88 |
|
---|
| 89 | <para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
---|
| 90 | the mozilla source tree and search for the line:
|
---|
| 91 | <screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
---|
| 92 | Then delete or comment out the line. If anyone tells you MS-IE is user
|
---|
| 93 | friendly, give them this example! Note that unlike the patch referred to in
|
---|
| 94 | the hint, the patch on the BLFS website does not contain this hack so you
|
---|
[098ad89] | 95 | will need to enable it manually if you want it use it or download it from the
|
---|
| 96 | hint site.</para>
|
---|
[2aaa7e5] | 97 |
|
---|
| 98 | </sect2>
|
---|