# HG changeset patch # User Christophe Lincoln # Date 1197984016 -3600 # Node ID 7ee851566ffb4971536af205ad33d73098819454 # Parent dbd7a9189e519467830730a538dde8b92ee931f9 Add : firefox with default files diff -r dbd7a9189e51 -r 7ee851566ffb firefox/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/receipt Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,82 @@ +# SliTaz package receipt. + +PACKAGE="firefox" +VERSION="2.0.0.11" +CATEGORY="extra" +SHORT_DESC="User friendly, secure and fast web browser." +MAINTAINER="pankso@slitaz.org" +DEPENDS="gtk+" +TARBALL="$PACKAGE-$VERSION-source.tar.bz2" +WEB_SITE="http://www.mozilla.org/" +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" + +# Rules to configure and make the package. +# +# A long compile time... dont forget to build libidl before and check the +# .mozconfig file from the stuff and the stuff/README document. +# +compile_rules() +{ + # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables + # and to have a nice clean. + # + mv mozilla $PACKAGE-$VERSION + cp -a stuff/firefox.mozconfig $src/.mozconfig + cd $src + ./configure $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/etc + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib + + # SliTaz Web site for the home page and bookmarks file. + cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION + cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile + + # User preference. + cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile + cp -a stuff/userChrome.css \ + $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome + + # Mozilla default pixmaps and Firefox icon from the stuff. + cp -a stuff/mozicon.png $fs/usr/share/pixmaps + rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons + + # Move default config to /etc/firefox (/usr maybe read-only) + mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE + ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults + + # Strip + strip -s $fs/usr/lib/$PACKAGE-$VERSION/* 2>/dev/null + + # Locale fr + tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \ + -C $fs/usr/lib/$PACKAGE-$VERSION/extensions + + # Remove unnecessary files. + rm -f $fs/usr/lib/$PACKAGE-$VERSION/TestGtkEmbed +} + +# Pre - Post install command to set default locale. +pre_install() +{ + local root + root=$1 + # Remove old libs + rm -rf $root/usr/lib/firefox-* +} +post_install() +{ + local root + root=$1 + if grep -q "fr_*" $root/etc/locale.conf; then + sed -i 's/en-US/fr/' \ + $root/usr/lib/$PACKAGE-$VERSION/defaults/pref/firefox-l10n.js + fi +} diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/README Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,15 @@ + + +Tazwok build Firefox from the official Mozila source code, we use a .mozconfig +file to set all configure options. SliTaz firefox.mozconfig is copied in the +mozilla source code with the command 'tazwok cook'. So if you want to make +some changes, edit firefox.mozconfig. + +On SliTaz the Mozilla default icons are removed (65 Ko) and a resized (48x48) +mozicon is put in /usr/share/pixmaps. + +browserconfig.properties is used to set www.slitaz.org for the default home +page, this file goes in /usr/lib/firefox-$VERSION with the bookmarks file. + + +- Pankso diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/bookmarks.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/bookmarks.html Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,55 @@ + + + +Bookmarks +

Bookmarks

+ +

+

Get Bookmark Add-ons +
+

Bookmarks Toolbar Folder

+
Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar +

+

Localhost

+

+

Server index +
SliTaz local Web server index +
Documentation +
Examples +
PHP info +

+

Web applications

+

+

WikipƩdia +
Jamendo +
YouTube +
Facebook +
Blogmarks +

+

SliTaz GNU/Linux +
Firefox central +

+


+

SliTaz

+

+

Documentation +
Documentation du projet SliTaz GNU/Linux shell howto make live-cd +
Handbook +
SliTaz documentation book +
Search +
SliTaz recherche site web google doc info book +
Mailing list +
SliTaz GNU/Linux support mail liste de diffusion utilisateurs deƩveloppeurs +

+

Mozilla Firefox

+

+

Help and Tutorials +
Customize Firefox +
Get Involved +
About Us +

+

LinuxFR +
Tuxfamily +

diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/browserconfig.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/browserconfig.properties Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,2 @@ +browser.startup.homepage=http://www.slitaz.org/ +browser.startup.homepage_reset=http://www.slitaz.org/ diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/firefox.mozconfig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/firefox.mozconfig Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,50 @@ +export MOZ_PHOENIX=1 +mk_add_options MOZ_PHOENIX=1 + +ac_add_options --disable-ldap +ac_add_options --disable-calendar +ac_add_options --disable-mailnews +ac_add_options --disable-chatzilla +ac_add_options --enable-extensions="cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices" +ac_add_options --enable-crypto +ac_add_options --disable-composer +ac_add_options --enable-single-profile +ac_add_options --disable-profilesharing +ac_add_options --disable-shared +ac_add_options --enable-static +ac_add_options --disable-debug +#ac_add_options --disable-toolkit-gtk +ac_add_options --enable-toolkit-gtk2 +ac_add_options --enable-default-toolkit=gtk2 +ac_add_options --enable-xft +ac_add_options --disable-freetype2 +ac_add_options --disable-tests +ac_add_options --disable-accessibility +ac_add_options --disable-installer +ac_add_options --disable-updater +ac_add_options --enable-strip +ac_add_options --disable-toolkit-qt +ac_add_options --prefix=/usr +ac_add_options --disable-pango +#ac_add_options --with-default-mozilla-five-home=/usr/local/lib +#ac_add_options --enable-postscript +ac_add_options --disable-xprint +ac_add_options --disable-xinerama +ac_add_options --with-system-zlib +ac_add_options --with-system-jpeg +ac_add_options --with-system-png +ac_add_options --with-pthreads +#ac_add_options --enable-svg +#ac_add_options --enable-svg-renderer=cairo +ac_add_options --enable-application=browser +ac_add_options --disable-negotiateauth +ac_add_options --disable-jsd +ac_add_options --disable-printing +ac_add_options --disable-logging +ac_add_options --with-distribution-id=slitaz +ac_add_options --disable-libxul +ac_add_options --disable-mathml +ac_add_options --enable-optimize +#ac_add_options --enable-ui-locale=fr +ac_add_options --disable-installer +ac_add_options --disable-updater diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/langpack-fr@firefox.mozilla.org.tar.bz2 Binary file firefox/stuff/langpack-fr@firefox.mozilla.org.tar.bz2 has changed diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/mozicon.png Binary file firefox/stuff/mozicon.png has changed diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/prefs.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/prefs.js Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,13 @@ +# Mozilla User Preferences + +/* Do not edit this file. + * + * If you make changes to this file while the application is running, + * the changes will be overwritten when the application exits. + * + * To make a manual change to preferences, you can visit the URL about:config + * For more information, see http://www.mozilla.org/unix/customizing.html#prefs + */ + +user_pref("general.useragent.extra.firefox", "BonEcho/2.0.0.11 (SliTaz GNU/Linux)"); +user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1, UTF-8"); diff -r dbd7a9189e51 -r 7ee851566ffb firefox/stuff/userChrome.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox/stuff/userChrome.css Tue Dec 18 14:20:16 2007 +0100 @@ -0,0 +1,25 @@ +/* + * Default userChrome.css for Firefox on SliTaz GNU/Linux. + * + * This file can be used to customize the look of Mozilla's user interface + * You should consider using !important on rules which you want to + * override default settings. + * + * For more examples see http://www.mozilla.org/unix/customizing.html + * + */ + +/* + * Do not remove the @namespace line -- it's required for correct functioning + */ +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ + + +/* + * Make all the default font sizes 9 pt to other GTK+ applications : + * +*/ + +* { + font-size: 9pt !important +}