mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-04 07:17:15 +08:00
2537abaea6
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@837 af4574ff-66df-0310-9fd7-8a98e5e911e0
97 lines
4.1 KiB
XML
97 lines
4.1 KiB
XML
<sect2>
|
|
<title>Installation of mozilla</title>
|
|
|
|
<para>Install mozilla by running the following commands:</para>
|
|
|
|
<para><screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
|
export BUILD_OFFICIAL="1" &&
|
|
export MOZ_INTERNAL_LIBART_LGPL="1" &&
|
|
<!--
|
|
cd extensions &&
|
|
rm -rf spellcheck &&
|
|
tar -xjf ../../mozilla-&mozilla-version;-spellchecker.tar.bz2 &&
|
|
cd .. &&
|
|
-->
|
|
for p in ../mozilla-&mozilla-version;-*.patch
|
|
do patch -Np1 -i $p
|
|
done</userinput></screen></para>
|
|
|
|
<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
|
|
tag is now supported in mozilla to appease the financial institutions. As per
|
|
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
|
|
the mozilla source tree and search for the line:
|
|
<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>
|
|
|
|
<para><screen><userinput>./configure --prefix=&mozilla-prefix; \
|
|
--enable-default-mozilla-five-home \
|
|
--enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
|
|
--with-x --with-system-zlib \
|
|
--with-system-jpeg --with-system-png --with-system-mng \
|
|
--enable-xft --enable-crypto \
|
|
--enable-java-supplement \
|
|
--disable-accessibility \
|
|
--disable-tests --disable-debug \
|
|
--disable-logging --enable-reorder \
|
|
--enable-strip \
|
|
--enable-cpp-rtti --enable-extensions=all \
|
|
--enable-svg &&
|
|
make &&
|
|
make install &&
|
|
install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
|
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
|
&mozilla-prefix;/include/mozilla-&mozilla-version;/nss &&
|
|
<!--
|
|
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 &&
|
|
-->
|
|
ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/include/mozilla &&
|
|
ln -nsf mozilla-&mozilla-version; &mozilla-prefix;/lib/mozilla &&
|
|
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 &&
|
|
touch `find &mozilla-prefix;/lib/mozilla-&mozilla-version; -name *.rdf`</userinput></screen></para>
|
|
|
|
</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>
|
|
|
|
<para><userinput>--enable-elf-dynstr-gc</userinput> : Removes unreferenced
|
|
strings from ELF shared objects generated during the build. Note that this
|
|
option breaks build on alpha.</para>
|
|
|
|
<para><userinput>--disable-mailnews</userinput> : Disable the mail and news
|
|
clients.</para>
|
|
|
|
<para><userinput>--disable-ldap</userinput> : Disable LDAP Support,
|
|
recommended if mail is disabled.</para>
|
|
|
|
<para><userinput>--enable-calendar</userinput> : Build the calendar client.
|
|
You will need to download the calendar source via cvs since it is not included
|
|
with the release source.
|
|
(Warning, this option is not yet stable).</para>
|
|
|
|
<para><userinput>--enable-xterm-updates</userinput> : This option is
|
|
for enabling the xterm title with the current command when compiling.</para>
|
|
|
|
<para><userinput>--enable-plaintext-editor-only</userinput> : Disable support
|
|
for HTML editing. Do not use this switch if you are building the mail-news
|
|
component.</para>
|
|
|
|
</sect2>
|