Module submission - mozilla
Zbigniew Łuszpiński
zbiggy at o2.pl
Sat May 14 19:51:10 UTC 2005
module name : mozilla
suggested section : web
update (y/n) : y
bugfix (y/n) : y
security (y/n) : y
This security update fixes several bugs security related.
I removed also one broken download link.
Zbigniew Luszpinski
==================== BEGIN CONFIGURE ====================
mquery COM "Include mozilla Composer (gui html editing)?" y
mquery IRC "Include Chatzilla (mozilla irc client)?" y
mquery MATHML "Include MathML support?" y
mquery ACC "Include Accesiblity support?" y
mquery JSD "Include JavaScript debugging support?" y
mquery INS "Include mozilla Inspector (html code inspector) support?" y
mquery HELP "Include mozilla Help support?" y
===================== END CONFIGURE =====================
==================== BEGIN BUILD ====================
(
export patchdir=$SOURCE_DIRECTORY/$MODULE-1.7.7-lunar
EXTENTIONS="default,finger,spellcheck"
if [ "$COM" == "n" ] ; then
OPTS="$OPTS --disable-composer"
else
OPTS="$OPTS --enable-composer"
fi
if [ "$IRC" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-irc"
fi
if [ "$MATHML" == "n" ] ; then
OPTS="$OPTS --disable-mathml"
else
OPTS="$OPTS --enable-mathml"
fi
if [ "$ACC" == "n" ] ; then
OPTS="$OPTS --disable-accessibility"
else
OPTS="$OPTS --enable-accessibility"
fi
if [ "$JSD" == "n" ] ; then
OPTS="$OPTS --disable-jsd"
EXTENTIONS="$EXTENTIONS,-venkman"
else
OPTS="$OPTS --enable-jsd"
fi
if [ "$INS" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-inspector"
fi
if [ "$HELP" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-help"
fi
unset CC CXX
export MOZ_NSS_AUTOCONF=1
export NATIVE_THEME_SUPPORT=1
export MOZILLA_USE_XFT=1
export MOZ_INTERNAL_LIBART_LGPL=1
export BUILD_OPT=1
echo "$OPTS $EXTENTIONS" > /tmp/mozz
./configure --prefix=/usr \
--with-default-mozilla-five-home=/usr/lib/mozilla-$VERSION \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--enable-xinerama \
--with-system-jpeg \
--with-system-zlib \
--with-system-png \
--with-system-mng \
--with-pthreads \
--enable-reorder \
--disable-tests \
--disable-installer \
--disable-pedantic \
--disable-debug \
--disable-dtd-debug \
--disable-toolkit-gtk \
--disable-short-wchar \
--disable-xprint \
--enable-default-toolkit=gtk2 \
--enable-toolkit=gtk2 \
--with-gtk2 \
--enable-strip \
--enable-strip-libs \
--enable-xft \
--disable-freetype2 \
--enable-svg \
--enable-svg-renderer-libart \
--enable-crypto \
--enable-optimize="$CFLAGS" \
--enable-cpp-rtti \
--enable-xpctools \
--enable-xsl \
--enable-ipv6 \
--enable-xterm-updates \
--enable-extensions=all,${EXTENSIONS} \
$OPTS &&
default_make &&
# NSS Headers are already compiled I dont know why I havent
# seen this till now
NSS_INST_DIR=/usr/include/mozilla-$VERSION/nss
mkdir -p $NSS_INST_DIR &&
for dir in public private ; do
cp -Lf $SOURCE_DIRECTORY/dist/${dir}/nss/*.h $NSS_INST_DIR
done &&
# jol change. On clean install /usr/share/applications
mkdir -p /usr/share/applications /usr/share/pixmaps
install $patchdir/mozilla.desktop /usr/share/applications/ &&
install $patchdir/mozilla.png /usr/share/pixmaps/ &&
if module_installed gnupg ; then
install $patchdir/mozilla-mail.png /usr/share/pixmaps/ &&
install $patchdir/mozilla-mail.desktop /usr/share/applications/
fi
) > $C_FIFO 2>&1
===================== END BUILD =====================
==================== BEGIN POST_REMOVE ====================
rm -fr /usr/lib/mozilla*
rm -fr /usr/include/mozilla*
rm -fr /usr/share/applications/mozilla*
===================== END POST_REMOVE =====================
==================== BEGIN DEPENDS ====================
depends libmng &&
depends ORBit2 &&
depends zip &&
depends unzip &&
depends gtk+-2 &&
depends librsvg &&
optional_depends "libical" "--enable-calendar" "" "Enable Calendar Support" &&
optional_depends "gnupg" "" "--disable-mailnews" "Enable Email Support" &&
optional_depends "openldap" "" "--disable-ldap" "Enable LDAP Support"
===================== END DEPENDS =====================
==================== BEGIN CONFLICTS ====================
conflicts mozilla-nightly
===================== END CONFLICTS =====================
==================== BEGIN DETAILS ====================
MODULE=mozilla
VERSION=1.7.8
SOURCE=$MODULE-$VERSION-source.tar.bz2
SOURCE2=$MODULE-1.7.7-lunar.tar.bz2
SOURCE3=$MODULE-1.7.2-libart_lgpl.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla$VERSION/source/
SOURCE_URL[1]=http://archive.progeny.com/mozilla.org/mozilla/releases/mozilla$VERSION/source/
SOURCE2_URL=$PATCH_URL/
SOURCE3_URL=http://lunar-linux.org/lunar/mirrors/
WEB_SITE=http://www.mozilla.org
ENTERED=20010922
UPDATED=20050514
SOURCE_VFY=
SOURCE2_VFY=
SOURCE3_VFY=
SHORT="Mozilla is a Web browser."
cat << EOF
Mozilla is a Web browser that is being developed by the Free Software
Community with the cooperation and support of Netscape. Initially, its
development was based on an early version of Netscape Communicator 5.0.
But most of it was disposed of halfway, and the current Mozilla is a
completely new software based on the "NGLayout" layout engine developed
for Netscape Communicator 6.
EOF
===================== END DETAILS =====================
==================== BEGIN PRE_BUILD ====================
patchdir=$SOURCE_DIRECTORY/$MODULE-1.7.7-lunar &&
mk_source_dir $SOURCE_DIRECTORY &&
cd $BUILD_DIRECTORY &&
unpack $SOURCE &&
unpack $SOURCE3 &&
cd $SOURCE_DIRECTORY &&
unpack $SOURCE2 &&
# Lunar branding
cd $SOURCE_DIRECTORY &&
cp $patchdir/region-browser.properties xpfe/browser/resources/locale/en-US/
===================== END PRE_BUILD =====================
==================== BEGIN POST_INSTALL ====================
export patchdir=$SOURCE_DIRECTORY/$MODULE-1.7.7-lunar
install $patchdir/mozilla-lunar-bookmarks.html /usr/lib/mozilla-$VERSION/defaults/profile/
install $patchdir/mozilla-lunar-bookmarks.html /usr/lib/mozilla-$VERSION/defaults/profile/US/bookmarks.html
# Ugly, eeek, explains need for chrooted installs
if [ -d /usr/lib/mozilla-$VERSION/plugins ] ; then
mv /usr/lib/mozilla-$VERSION/plugins/libnullplugin.so /usr/lib/mozilla-$VERSION/
rm -Rf /usr/lib/mozilla-$VERSION/plugins
fi
ln -sf /usr/lib/mozilla-$VERSION /usr/lib/mozilla
ln -sf /usr/include/mozilla-$VERSION /usr/include/mozilla
mkdir -p /opt/lunar/plugins
ln -sf /opt/lunar/plugins /usr/lib/mozilla/plugins
MOZLIBDIR=/usr/lib/mozilla
if ! grep -q "$MOZLIBDIR" /etc/ld.so.conf ; then
echo "$MOZLIBDIR" >> /etc/ld.so.conf
ldconfig
fi
for mod in galeon galeon2 ; do
if module_installed $mod ; then
lin -c $mod
fi
done
===================== END POST_INSTALL =====================
More information about the Lunar
mailing list