diff options
Diffstat (limited to 'libre')
28 files changed, 840 insertions, 1560 deletions
diff --git a/libre/icecat-i18n/.directory b/libre/icecat-i18n/.directory deleted file mode 100644 index 98ec279ed..000000000 --- a/libre/icecat-i18n/.directory +++ /dev/null @@ -1,2 +0,0 @@ -[Dolphin] -Timestamp=2012,3,2,21,19,19 diff --git a/libre/icecat/Makefile.in b/libre/icecat/Makefile.in deleted file mode 100644 index bd662ba85..000000000 --- a/libre/icecat/Makefile.in +++ /dev/null @@ -1,451 +0,0 @@ -# vim:set ts=8 sw=8 sts=8 noet: -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Mozilla Browser code. -# -# The Initial Developer of the Original Code is -# Benjamin Smedberg <bsmedberg@covad.net> -# Portions created by the Initial Developer are Copyright (C) 2004 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 2 or later (the "GPL"), or -# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -DEPTH = ../.. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ -relativesrcdir = browser/locales - -include $(DEPTH)/config/autoconf.mk - -include $(topsrcdir)/config/config.mk - -vpath %.xml @srcdir@/en-US/searchplugins -vpath %.xml $(LOCALE_SRCDIR)/searchplugins - -ifdef LOCALE_MERGEDIR -vpath crashreporter%.ini $(LOCALE_MERGEDIR)/browser/crashreporter -endif -vpath crashreporter%.ini $(LOCALE_SRCDIR)/crashreporter -ifdef LOCALE_MERGEDIR -vpath crashreporter%.ini @srcdir@/en-US/crashreporter -endif -ifdef LOCALE_MERGEDIR -vpath book%.inc $(LOCALE_MERGEDIR)/browser/profile -endif -vpath book%.inc $(LOCALE_SRCDIR)/profile -ifdef LOCALE_MERGEDIR -vpath book%.inc @srcdir@/en-US/profile -endif - - -run_for_effects := $(shell if ! test -d $(DIST); then $(NSINSTALL) -D $(DIST); fi; if ! test -d $(DIST)/branding; then $(NSINSTALL) -D $(DIST)/branding; fi) -_ABS_DIST := $(shell cd $(DIST) && pwd) - -ifdef MOZ_BRANDING_DIRECTORY -SUBMAKEFILES += \ - $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \ - $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \ - $(NULL) -endif - -# This makefile uses variable overrides from the libs-% target to -# build non-default locales to non-default dist/ locations. Be aware! - -AB = $(firstword $(subst -, ,$(AB_CD))) - -APP_VERSION := $(shell cat $(srcdir)/../config/version.txt) - -PWD := $(shell pwd) -core_abspath = $(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(PWD)/$(1))) - -# These are defaulted to be compatible with the files the wget-en-US target -# pulls. You may override them if you provide your own files. You _must_ -# override them when MOZ_PKG_PRETTYNAMES is defined - the defaults will not -# work in that case. -ZIP_IN ?= $(_ABS_DIST)/$(PACKAGE) -WIN32_INSTALLER_IN ?= $(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe - -DEFINES += \ - -DAB_CD=$(AB_CD) \ - -DMOZ_LANGPACK_EID=langpack-$(AB_CD)@gnuzilla.gnu.org \ - -DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \ - -DLOCALE_SRCDIR=$(call core_abspath,$(LOCALE_SRCDIR)) \ - -DPKG_BASENAME="$(PKG_BASENAME)" \ - -DPKG_INST_BASENAME="$(PKG_INST_BASENAME)" \ - $(NULL) - -ifndef MOZ_BRANDING_DIRECTORY -DEFINES += -DMOZ_USE_GENERIC_BRANDING -endif - -ifeq (,$(filter-out pref,$(MOZ_EXTENSIONS))) -DEFINES += -DEXTENSION_PREF -endif - -PREF_JS_EXPORTS = $(LOCALE_SRCDIR)/firefox-l10n.js - -include $(topsrcdir)/config/rules.mk - -libs:: -# @if test -f "$(LOCALE_SRCDIR)/existing-profile-defaults.js"; then \ -# $(PERL) $(topsrcdir)/config/preprocessor.pl $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \ -# $(LOCALE_SRCDIR)/existing-profile-defaults.js > $(FINAL_TARGET)/defaults/existing-profile-defaults.js; \ -# fi -install:: -# @if test -f "$(LOCALE_SRCDIR)/existing-profile-defaults.js"; then \ -# $(PERL) $(topsrcdir)/config/preprocessor.pl $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) \ -# $(LOCALE_SRCDIR)/existing-profile-defaults.js > $(DESTDIR)$(mozappdir)/defaults/existing-profile-defaults.js; \ -# fi - -README_FILES = \ - README.txt \ - $(NULL) - -PROFILE_FILES = \ - localstore.rdf \ - mimeTypes.rdf \ - $(NULL) - -PROFILE_CHROME = userChrome-example.css userContent-example.css - -libs:: $(addprefix $(LOCALE_SRCDIR)/,$(README_FILES)) -ifeq ($(OS_ARCH),WINNT) - $(EXIT_ON_ERROR) \ - for file in $^; do \ - $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $$file > $(FINAL_TARGET)/`basename $$file`; \ - done -else -ifneq ($(OS_ARCH),OS2) - $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET) -endif -endif - -NO_JA_JP_MAC_AB_CD := $(if $(filter ja-JP-mac, $(AB_CD)),ja,$(AB_CD)) - -%/defaults/profile/bookmarks.html: bookmarks.inc generic/profile/bookmarks.html.in - $(SYSINSTALL) -D $(dir $@) - $(PYTHON) $(topsrcdir)/config/Preprocessor.py \ - -I $< \ - -DAB_CD=$(NO_JA_JP_MAC_AB_CD) \ - $(srcdir)/generic/profile/bookmarks.html.in \ - > $@ - -libs:: $(FINAL_TARGET)/defaults/profile/bookmarks.html ; - -libs:: $(addprefix generic/profile/,$(PROFILE_FILES)) - $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile - -libs:: $(addprefix $(LOCALE_SRCDIR)/profile/chrome/,$(PROFILE_CHROME)) - $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile/chrome - -install:: $(DESTDIR)$(mozappdir)/defaults/profile/bookmarks.html ; - -install:: $(addprefix generic/profile/,$(PROFILE_FILES)) - $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile - -install:: $(addprefix $(LOCALE_SRCDIR)/profile/chrome/,$(PROFILE_CHROME)) - $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile/chrome - -SEARCH_PLUGINS = $(shell cat $(LOCALE_SRCDIR)/searchplugins/list.txt) - -libs:: $(addsuffix .xml,$(SEARCH_PLUGINS)) - $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/searchplugins - -install:: $(addsuffix .xml,$(SEARCH_PLUGINS)) - $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/searchplugins - -tests: -ifneq (en-US, $(AB_CD)) - @echo "Verifying $(AB_CD) installer variable usage" - @$(PERL) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/check-locales.pl $(LOCALE_SRCDIR)/installer -endif - -clobber-%: - $(RM) -rf $(DIST)/xpi-stage/locale-$* - -libs-%: - $(NSINSTALL) -D $(DIST)/install - @$(MAKE) -C ../../toolkit/locales libs-$* BOTH_MANIFESTS=1 - @$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1 - @$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref BOTH_MANIFESTS=1 -ifdef MOZ_BRANDING_DIRECTORY - @$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1 -endif - @$(MAKE) tests AB_CD=$* - -ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) -MOZ_PKG_MAC_DSSTORE=$(_ABS_DIST)/branding/dsstore -MOZ_PKG_MAC_BACKGROUND=$(_ABS_DIST)/branding/background.png -MOZ_PKG_MAC_ICON=$(_ABS_DIST)/branding/disk.icns -MOZ_PKG_MAC_EXTRA=--symlink "/Applications:/ " -endif - -PACKAGER_NO_LIBS = 1 -include $(topsrcdir)/toolkit/mozapps/installer/packager.mk - -repackage-win32-installer: WIN32_INSTALLER_OUT="$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe" -repackage-win32-installer: $(WIN32_INSTALLER_IN) $(SUBMAKEFILES) - @echo "Repackaging $(WIN32_INSTALLER_IN) into $(WIN32_INSTALLER_OUT)." -ifdef MOZ_BRANDING_DIRECTORY - $(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY) export -else - $(MAKE) -C ../installer/windows export -endif - if test ! -d $(_ABS_DIST)/$(PKG_INST_PATH); then \ - $(NSINSTALL) -D $(_ABS_DIST)/$(PKG_INST_PATH); \ - fi - $(RM) -rf l10n-stage - $(NSINSTALL) -D l10n-stage - $(CYGWIN_WRAPPER) 7z x -ol10n-stage $(WIN32_INSTALLER_IN) - $(RM) -r l10n-stage/localized - $(RM) l10n-stage/setup.exe -# copy xpi-stage over, but not install.rdf and chrome.manifest, -# those are just for language packs - cp -r $(DIST)/xpi-stage/locale-$(AB_CD) l10n-stage/localized - $(RM) l10n-stage/localized/install.rdf l10n-stage/localized/chrome.manifest - $(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen l10ngen/setup.exe l10ngen/7zSD.sfx - cp ../installer/windows/l10ngen/setup.exe l10n-stage - $(NSINSTALL) -D l10n-stage/localized/uninstall - cp ../installer/windows/l10ngen/helper.exe l10n-stage/localized/uninstall - rm -f app.7z - cd l10n-stage && \ - $(CYGWIN_WRAPPER) 7z a -r -t7z ../app.7z -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3 - cat ../installer/windows/l10ngen/7zSD.sfx \ - $(topsrcdir)/browser/installer/windows/app.tag \ - app.7z > $(WIN32_INSTALLER_OUT) - chmod 0755 $(WIN32_INSTALLER_OUT) - -ifeq (WINNT,$(OS_ARCH)) -repackage-win32-installer-%: $(WIN32_INSTALLER_IN) libs-% - @$(MAKE) repackage-win32-installer AB_CD=$* WIN32_INSTALLER_IN=$(WIN32_INSTALLER_IN) -else -repackage-win32-installer-%: ; -endif - -ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) -STAGEDIST = $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/MacOS -else -STAGEDIST = $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_DIR) -endif - -$(STAGEDIST): AB_CD:=en-US -$(STAGEDIST): UNPACKAGE=$(ZIP_IN) -$(STAGEDIST): $(ZIP_IN) -# only mac needs to remove the parent of STAGEDIST... -ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) - if test -d $(DIST)/l10n-stage; then \ - $(RM) -r -v $(DIST)/l10n-stage; \ - fi -else -# ... and windows doesn't like removing STAGEDIST itself, remove all children - if test -d $(DIST)/l10n-stage; then \ - find $(STAGEDIST) -maxdepth 1 -print0 | xargs -0 $(RM) -r ; \ - fi -endif - $(NSINSTALL) -D $(DIST)/l10n-stage - cd $(DIST)/l10n-stage && \ - $(UNMAKE_PACKAGE) - make clobber-zip AB_CD=en-US - -clobber-zip: - $(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \ - $(STAGEDIST)/chrome/$(AB_CD).manifest \ - $(STAGEDIST)/defaults/pref/firefox-l10n.js - $(RM) -rf $(STAGEDIST)/searchplugins \ - $(STAGEDIST)/dictionaries \ - $(STAGEDIST)/defaults/profile \ - $(STAGEDIST)/chrome/$(AB_CD) - -unpack: $(STAGEDIST) - @echo done unpacking - -repackage-zip: ZIP_OUT="$(_ABS_DIST)/$(PACKAGE)" -repackage-zip: UNPACKAGE="$(ZIP_IN)" -repackage-zip: -ifeq (WINNT,$(OS_ARCH)) - $(RM) -r $(STAGEDIST)/uninstall - $(NSINSTALL) -D $(STAGEDIST)/uninstall - cp ../installer/windows/l10ngen/helper.exe $(STAGEDIST)/uninstall -endif -# copy xpi-stage over, but not install.rdf and chrome.manifest, -# those are just for language packs - cd $(DIST)/xpi-stage/locale-$(AB_CD) && \ - tar --exclude=install.rdf --exclude=chrome.manifest $(TAR_CREATE_FLAGS) - * | ( cd $(STAGEDIST) && tar -xf - ) -ifneq (en,$(AB)) -ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) - mv $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/en.lproj $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/$(AB).lproj -endif -endif - $(NSINSTALL) -D $(DIST)/l10n-stage/$(PKG_PATH) - cd $(DIST)/l10n-stage; \ - $(MAKE_PACKAGE) -ifdef MOZ_MAKE_COMPLETE_MAR - $(MAKE) -C $(DEPTH)/tools/update-packaging full-update AB_CD=$(AB_CD) \ - MOZ_PKG_PRETTYNAMES=$(MOZ_PKG_PRETTYNAMES) \ - PACKAGE_BASE_DIR="$(_ABS_DIST)/l10n-stage" \ - DIST="$(_ABS_DIST)" -endif -# packaging done, undo l10n stuff -ifneq (en,$(AB)) -ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) - mv $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/$(AB).lproj $(_ABS_DIST)/l10n-stage/$(MOZ_PKG_APPNAME)/$(_APPNAME)/Contents/Resources/en.lproj -endif -endif - $(MAKE) clobber-zip AB_CD=$(AB_CD) - $(NSINSTALL) -D $(DIST)/$(PKG_PATH) - mv -f "$(DIST)/l10n-stage/$(PACKAGE)" "$(DIST)/$(PACKAGE)" - -repackage-zip-%: $(ZIP_IN) $(STAGEDIST) libs-% - @$(MAKE) repackage-zip AB_CD=$* ZIP_IN=$(ZIP_IN) - -langpack-%: LANGPACK_FILE=$(_ABS_DIST)/$(PKG_LANGPACK_PATH)$(PKG_LANGPACK_BASENAME).xpi -langpack-%: AB_CD=$* -langpack-%: XPI_NAME=locale-$* -langpack-%: libs-% - @echo "Making langpack $(LANGPACK_FILE)" - $(NSINSTALL) -D $(DIST)/$(PKG_LANGPACK_PATH) -# $(PERL) $(topsrcdir)/config/preprocessor.pl $(DEFINES) $(ACDEFINES) -I$(call EXPAND_LOCALE_SRCDIR,toolkit/locales)/defines.inc -I$(LOCALE_SRCDIR)/defines.inc $(srcdir)/generic/install.rdf > $(FINAL_TARGET)/install.rdf - cd $(DIST)/xpi-stage/locale-$(AB_CD) && \ - $(ZIP) -r9D $(LANGPACK_FILE) install.rdf chrome chrome.manifest -x chrome/$(AB_CD).manifest - -langpack: langpack-$(AB_CD) - -# This is a generic target that will make a langpack, repack ZIP (+tarball) -# builds, and repack an installer if applicable. It is called from the -# tinderbox scripts. Alter it with caution. - -installers-%: clobber-% langpack-% repackage-win32-installer-% repackage-zip-% - @echo "repackaging done" - -ifdef MOZ_UPDATER -libs:: $(addprefix $(LOCALE_SRCDIR)/,updater/updater.ini) -ifeq ($(OS_ARCH),WINNT) - cat $< $(srcdir)/../installer/windows/nsis/updater_append.ini | \ - sed -e "s/^InfoText=/Info=/" -e "s/^TitleText=/Title=/" | \ - sed -e "s/%MOZ_APP_DISPLAYNAME%/$(MOZ_APP_DISPLAYNAME)/" > \ - $(FINAL_TARGET)/updater.ini -else - cat $< | \ - sed -e "s/^InfoText=/Info=/" -e "s/^TitleText=/Title=/" | \ - sed -e "s/%MOZ_APP_DISPLAYNAME%/$(MOZ_APP_DISPLAYNAME)/" > \ - $(FINAL_TARGET)/updater.ini -endif -endif - -ifdef MOZ_CRASHREPORTER -libs:: crashreporter-override.ini - $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET) -endif - -# This variable is to allow the wget-en-US target to know which ftp server to download from -ifndef EN_US_BINARY_URL -EN_US_BINARY_URL = $(error You must set EN_US_BINARY_URL) -endif - -# This make target allows us to wget the latest en-US binary from a specified website -# The make installers-% target needs the en-US binary in dist/ -# and for the windows repackages we need the .installer.exe in dist/sea -wget-en-US: -ifndef WGET - $(error Wget not installed) -endif - (cd $(_ABS_DIST) && $(WGET) -nv -N $(EN_US_BINARY_URL)/$(PACKAGE)) - @echo "Downloaded $(EN_US_BINARY_URL)/$(PACKAGE) to $(_ABS_DIST)/$(PACKAGE)" -ifeq ($(OS_ARCH), WINNT) - $(NSINSTALL) -D $(_ABS_DIST)/$(PKG_INST_PATH) - (cd $(_ABS_DIST)/$(PKG_INST_PATH) && $(WGET) -nv -N "$(EN_US_BINARY_URL)/$(PKG_PATH)$(PKG_INST_BASENAME).exe") - @echo "Downloaded $(EN_US_BINARY_URL)/$(PKG_PATH)$(PKG_INST_BASENAME).exe to $(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe" -endif - -ident: - @$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(STAGEDIST)/application.ini App SourceStamp - -#These make targets call prepare-repackages by setting different UPLOAD_DIR -prepare-upload-latest-%: - @$(MAKE) prepare-repackages-$* UPLOAD_DIR=$(DIST)/upload/latest - -prepare-upload-dated-%: - @$(MAKE) prepare-repackages-$* UPLOAD_DIR=$(DIST)/upload/`date "+%Y-%m-%d-%H"`-$(MOZ_PKG_APPNAME)$(MOZ_APP_VERSION)-l10n - -#Each platform uploads their xpi files to different folders -ifeq (Linux, $(OS_ARCH)) -XPI_DESTINATION = linux-xpi -endif -ifeq (Darwin, $(OS_ARCH)) -XPI_DESTINATION = mac-xpi -endif -ifeq (WINNT, $(OS_ARCH)) -XPI_DESTINATION = windows-xpi -endif - -# This target will generate a UPLOAD_DIR folder with -# l10n repackages in the way that we offer l10n nightlies -# 1) ./ the binary -# 2) ./{linux,mac,windows}-xpi/locale.xpi -prepare-repackages-%: -ifndef XPI_DESTINATION - $(error XPI_DESTINATION not defined; \ - This is the folder where the xpi files will be moved to) -endif -ifndef UPLOAD_DIR - $(error UPLOAD_DIR not defined) -endif - $(NSINSTALL) -D $(UPLOAD_DIR) - $(NSINSTALL) -D $(UPLOAD_DIR)/$(XPI_DESTINATION) -# Move the langpack - mv $(DIST)/install/firefox-$(MOZ_APP_VERSION).$*.langpack.xpi \ - $(UPLOAD_DIR)/$(XPI_DESTINATION)/$*.xpi -# Move the repackage - mv $(DIST)/firefox-$(MOZ_APP_VERSION).$*.* \ - $(UPLOAD_DIR)/. -# Move the windows installer -ifeq (WINNT, $(OS_ARCH)) - mv $(DIST)/install/sea/firefox-$(MOZ_APP_VERSION).$*.win32.installer.exe \ - $(UPLOAD_DIR)/. -endif -# Set the permissions that the folders will have in ftp once uploaded - chmod -vR 775 $(UPLOAD_DIR) - -l10n-upload-%: AB_CD=$* -l10n-upload-%: - $(PYTHON) $(topsrcdir)/build/upload.py --base-path $(DIST) "$(DIST)/$(PACKAGE)" $(DIST)/$(LANGPACK) -ifdef MOZ_MAKE_COMPLETE_MAR - $(PYTHON) $(topsrcdir)/build/upload.py --base-path $(DIST) $(DIST)/$(COMPLETE_MAR) -endif -ifeq (WINNT, $(OS_ARCH)) - $(PYTHON) $(topsrcdir)/build/upload.py --base-path $(DIST) "$(INSTALLER_PACKAGE)" -endif - - -merge-%: -ifdef LOCALE_MERGEDIR - $(RM) -rf $(LOCALE_MERGEDIR) - MACOSX_DEPLOYMENT_TARGET= compare-locales -m $(LOCALE_MERGEDIR) $(srcdir)/l10n.ini $(L10NBASEDIR) $* -endif - @echo diff --git a/libre/icecat/firefox-version.patch b/libre/icecat/firefox-version.patch deleted file mode 100644 index 8b2d74896..000000000 --- a/libre/icecat/firefox-version.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur mozilla-release.orig/browser/installer/Makefile.in mozilla-release/browser/installer/Makefile.in ---- mozilla-release.orig/browser/installer/Makefile.in 2011-09-30 08:45:28.858668017 +0000 -+++ mozilla-release/browser/installer/Makefile.in 2011-09-30 08:51:01.548314685 +0000 -@@ -43,6 +43,8 @@ - - include $(DEPTH)/config/autoconf.mk - -+MOZ_APP_VERSION="10.0" -+ - include $(topsrcdir)/config/rules.mk - - MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in diff --git a/libre/icecat/firefox.js b/libre/icecat/firefox.js deleted file mode 100644 index 2300e65ce..000000000 --- a/libre/icecat/firefox.js +++ /dev/null @@ -1,1072 +0,0 @@ -# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 2 or later (the "GPL"), or -# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -// XXX Toolkit-specific preferences should be moved into toolkit.js - -#filter substitution - -# SYNTAX HINTS: dashes are delimiters. Use underscores instead. -# The first character after a period must be alphabetic. - -#ifdef XP_UNIX -#ifndef XP_MACOSX -#define UNIX_BUT_NOT_MAC -#endif -#endif - -pref("general.startup.browser", true); - -pref("browser.chromeURL","chrome://browser/content/"); -pref("browser.hiddenWindowChromeURL", "chrome://browser/content/hiddenWindow.xul"); - -// Enables some extra Extension System Logging (can reduce performance) -pref("extensions.logging.enabled", false); - -// Preferences for AMO integration -pref("extensions.getAddons.cache.enabled", true); -pref("extensions.getAddons.maxResults", 15); -pref("extensions.getAddons.get.url", "http://www.gnu.org/software/gnuzilla/addons.html"); -pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/software/gnuzilla/addons.html"); -pref("extensions.getAddons.search.url", "http://www.gnu.org/software/gnuzilla/addons.html"); -pref("extensions.webservice.discoverURL", "http://www.gnu.org/software/gnuzilla/addons.html"); - -// Blocklist preferences -pref("extensions.blocklist.enabled", true); -pref("extensions.blocklist.interval", 86400); -// Controls what level the blocklist switches from warning about items to forcibly -// blocking them. -pref("extensions.blocklist.level", 2); -pref("extensions.blocklist.url", "https://addons.mozilla.org/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/"); -pref("extensions.blocklist.detailsURL", "https://www.mozilla.com/%LOCALE%/blocklist/"); - -pref("extensions.update.autoUpdateDefault", true); - -// Dictionary download preference -pref("browser.dictionaries.download.url", "http://gnuzilla.gnu.org"); - -// Update Timer Manager preferences -// Interval: When all registered timers should be checked (in milliseconds) -// default=10 minutes -pref("app.update.timer", 600000); - -// App-specific update preferences - -// The interval to check for updates (app.update.interval) is defined in -// firefox-branding.js - -// Alternative windowtype for an application update user interface window. When -// a window with this windowtype is open the application update service won't -// open the normal application update user interface window. -pref("app.update.altwindowtype", "Browser:About"); - -// Enables some extra Application Update Logging (can reduce performance) -pref("app.update.log", false); - -// The number of general background check failures to allow before notifying the -// user of the failure. User initiated update checks always notify the user of -// the failure. -pref("app.update.backgroundMaxErrors", 10); - -// When |app.update.cert.requireBuiltIn| is true or not specified the -// final certificate and all certificates the connection is redirected to before -// the final certificate for the url specified in the |app.update.url| -// preference must be built-in. -pref("app.update.cert.requireBuiltIn", true); - -// When |app.update.cert.checkAttributes| is true or not specified the -// certificate attributes specified in the |app.update.certs.| preference branch -// are checked against the certificate for the url specified by the -// |app.update.url| preference. -pref("app.update.cert.checkAttributes", true); - -// The number of certificate attribute check failures to allow for background -// update checks before notifying the user of the failure. User initiated update -// checks always notify the user of the certificate attribute check failure. -pref("app.update.cert.maxErrors", 5); - -// The |app.update.certs.| preference branch contains branches that are -// sequentially numbered starting at 1 that contain attribute name / value -// pairs for the certificate used by the server that hosts the update xml file -// as specified in the |app.update.url| preference. When these preferences are -// present the following conditions apply for a successful update check: -// 1. the uri scheme must be https -// 2. the preference name must exist as an attribute name on the certificate and -// the value for the name must be the same as the value for the attribute name -// on the certificate. -// If these conditions aren't met it will be treated the same as when there is -// no update available. This validation will not be performed when using the -// |app.update.url.override| preference for update checking. -pref("app.update.certs.1.issuerName", "OU=Equifax Secure Certificate Authority,O=Equifax,C=US"); -pref("app.update.certs.1.commonName", "aus3.mozilla.org"); - -pref("app.update.certs.2.issuerName", "CN=Thawte SSL CA,O=\"Thawte, Inc.\",C=US"); -pref("app.update.certs.2.commonName", "aus3.mozilla.org"); - -// Whether or not app updates are enabled -pref("app.update.enabled", false); - -// This preference turns on app.update.mode and allows automatic download and -// install to take place. We use a separate boolean toggle for this to make -// the UI easier to construct. -pref("app.update.auto", false); - -// Defines how the Application Update Service notifies the user about updates: -// -// AUM Set to: Minor Releases: Major Releases: -// 0 download no prompt download no prompt -// 1 download no prompt download no prompt if no incompatibilities -// 2 download no prompt prompt -// -// See chart in nsUpdateService.js source for more details -// -pref("app.update.mode", 1); - -// If set to true, the Update Service will present no UI for any event. -pref("app.update.silent", false); - -// Update service URL: -pref("app.update.url", "https://aus3.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml"); -// app.update.url.manual is in branding section -// app.update.url.details is in branding section - -// User-settable override to app.update.url for testing purposes. -//pref("app.update.url.override", ""); - -// app.update.interval is in branding section - -// Interval: Time before prompting the user again to restart to install the -// latest download (in seconds) default=1 day -pref("app.update.nagTimer.restart", 86400); - -// Give the user x seconds to react before showing the big UI. default=12 hours -pref("app.update.promptWaitTime", 43200); -// Show the Update Checking/Ready UI when the user was idle for x seconds -pref("app.update.idletime", 60); - -// Whether or not we show a dialog box informing the user that the update was -// successfully applied. This is off in Firefox by default since we show a -// upgrade start page instead! Other apps may wish to show this UI, and supply -// a whatsNewURL field in their brand.properties that contains a link to a page -// which tells users what's new in this new update. -pref("app.update.showInstalledUI", false); - -// 0 = suppress prompting for incompatibilities if there are updates available -// to newer versions of installed addons that resolve them. -// 1 = suppress prompting for incompatibilities only if there are VersionInfo -// updates available to installed addons that resolve them, not newer -// versions. -pref("app.update.incompatible.mode", 0); - -// Symmetric (can be overridden by individual extensions) update preferences. -// e.g. -// extensions.{GUID}.update.enabled -// extensions.{GUID}.update.url -// .. etc .. -// -pref("extensions.update.enabled", true); -pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%"); -pref("extensions.update.interval", 86400); // Check for updates to Extensions and - // Themes every day -// Non-symmetric (not shared by extensions) extension-specific [update] preferences -pref("extensions.getMoreExtensionsURL", "http://www.gnu.org/software/gnuzilla/addons.html#addons"); -pref("extensions.getMoreThemesURL", "http://www.gnu.org/software/gnuzilla/addons.html#themes"); -pref("extensions.dss.enabled", false); // Dynamic Skin Switching -pref("extensions.dss.switchPending", false); // Non-dynamic switch pending after next - // restart. - -pref("extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.name", "chrome://browser/locale/browser.properties"); -pref("extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.description", "chrome://browser/locale/browser.properties"); - -pref("xpinstall.whitelist.add", "addons.mozilla.org"); -pref("xpinstall.whitelist.add.36", "getpersonas.com"); - -pref("lightweightThemes.update.enabled", true); - -pref("keyword.enabled", true); -// Override the default keyword.URL. Empty value means -// "use the search service's default engine" -pref("keyword.URL", ""); - -pref("general.useragent.locale", "@AB_CD@"); -pref("general.skins.selectedSkin", "classic/1.0"); -pref("general.useragent.extra.firefox", "@APP_UA_NAME@/@APP_VERSION@ (like Firefox/@APP_VERSION@)"); -pref("general.smoothScroll", false); -#ifdef UNIX_BUT_NOT_MAC -pref("general.autoScroll", false); -#else -pref("general.autoScroll", true); -#endif - -// Whether or not the application should check at startup each time if it -// is the default browser. -pref("browser.shell.checkDefaultBrowser", true); - -// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session -// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore -pref("browser.startup.page", 1); -pref("browser.startup.homepage", "chrome://branding/locale/browserconfig.properties"); - -// This url, if changed, MUST continue to point to an https url. Pulling arbitrary content to inject into -// this page over http opens us up to a man-in-the-middle attack that we'd rather not face. If you are a downstream -// repackager of this code using an alternate snippet url, please keep your users safe -pref("browser.aboutHomeSnippets.updateUrl", "https://snippets.mozilla.com/%STARTPAGE_VERSION%/%NAME%/%VERSION%/%APPBUILDID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/"); - -pref("browser.enable_automatic_image_resizing", true); -pref("browser.chrome.site_icons", true); -pref("browser.chrome.favicons", true); -// browser.warnOnQuit == false will override all other possible prompts when quitting or restarting -pref("browser.warnOnQuit", true); -pref("browser.warnOnRestart", false); -// browser.showQuitWarning specifically controls the quit warning dialog. We -// might still show the window closing dialog with showQuitWarning == false. -pref("browser.showQuitWarning", false); -pref("browser.fullscreen.autohide", true); -pref("browser.fullscreen.animateUp", 1); -pref("browser.overlink-delay", 70); - -#ifdef UNIX_BUT_NOT_MAC -pref("browser.urlbar.clickSelectsAll", false); -#else -pref("browser.urlbar.clickSelectsAll", true); -#endif -#ifdef UNIX_BUT_NOT_MAC -pref("browser.urlbar.doubleClickSelectsAll", true); -#else -pref("browser.urlbar.doubleClickSelectsAll", false); -#endif -pref("browser.urlbar.autoFill", false); -// 0: Match anywhere (e.g., middle of words) -// 1: Match on word boundaries and then try matching anywhere -// 2: Match only on word boundaries (e.g., after / or .) -// 3: Match at the beginning of the url or title -pref("browser.urlbar.matchBehavior", 1); -pref("browser.urlbar.filter.javascript", true); - -// the maximum number of results to show in autocomplete when doing richResults -pref("browser.urlbar.maxRichResults", 12); -// The amount of time (ms) to wait after the user has stopped typing -// before starting to perform autocomplete. 50 is the default set in -// autocomplete.xml. -pref("browser.urlbar.delay", 50); - -// The special characters below can be typed into the urlbar to either restrict -// the search to visited history, bookmarked, tagged pages; or force a match on -// just the title text or url. -pref("browser.urlbar.restrict.history", "^"); -pref("browser.urlbar.restrict.bookmark", "*"); -pref("browser.urlbar.restrict.tag", "+"); -pref("browser.urlbar.restrict.openpage", "%"); -pref("browser.urlbar.restrict.typed", "~"); -pref("browser.urlbar.match.title", "#"); -pref("browser.urlbar.match.url", "@"); - -// The default behavior for the urlbar can be configured to use any combination -// of the restrict or match filters with each additional filter restricting -// more (intersection). Add the following values to set the behavior as the -// default: 1: history, 2: bookmark, 4: tag, 8: title, 16: url, 32: typed, -// 64: javascript, 128: tabs -// E.g., 0 = show all results (no filtering), 1 = only visited pages in history, -// 2 = only bookmarks, 3 = visited bookmarks, 1+16 = history matching in the url -pref("browser.urlbar.default.behavior", 0); - -// Number of milliseconds to wait for the http headers (and thus -// the Content-Disposition filename) before giving up and falling back to -// picking a filename without that info in hand so that the user sees some -// feedback from their action. -pref("browser.download.saveLinkAsFilenameTimeout", 1000); - -pref("browser.download.useDownloadDir", true); - -#ifdef WINCE -pref("browser.download.folderList", 2); -pref("browser.download.dir", "\\Storage Card"); -#else -pref("browser.download.folderList", 1); -#endif -pref("browser.download.manager.showAlertOnComplete", true); -pref("browser.download.manager.showAlertInterval", 2000); -pref("browser.download.manager.retention", 2); -pref("browser.download.manager.showWhenStarting", true); -pref("browser.download.manager.closeWhenDone", false); -pref("browser.download.manager.focusWhenStarting", false); -pref("browser.download.manager.flashCount", 2); -pref("browser.download.manager.addToRecentDocs", true); -pref("browser.download.manager.quitBehavior", 0); -pref("browser.download.manager.scanWhenDone", true); -pref("browser.download.manager.resumeOnWakeDelay", 10000); - -// search engines URL -pref("browser.search.searchEnginesURL", "http://www.gnu.org/software/gnuzilla/addons.html#search%20engines"); - -// pointer to the default engine name -pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties"); - -// disable logging for the search service by default -pref("browser.search.log", false); - -// Ordering of Search Engines in the Engine list. -pref("browser.search.order.1", "chrome://browser-region/locale/region.properties"); -pref("browser.search.order.2", "chrome://browser-region/locale/region.properties"); -pref("browser.search.order.3", "chrome://browser-region/locale/region.properties"); - -// search bar results always open in a new tab -pref("browser.search.openintab", false); - -// send ping to the server to update -pref("browser.search.update", true); - -// disable logging for the search service update system by default -pref("browser.search.update.log", false); - -// Check whether we need to perform engine updates every 6 hours -pref("browser.search.update.interval", 21600); - -// Whether or not microsummary and generator updates are enabled -pref("browser.microsummary.enabled", true); -pref("browser.microsummary.updateGenerators", true); - -// enable search suggestions by default -pref("browser.search.suggest.enabled", true); - -pref("browser.sessionhistory.max_entries", 50); - -// handle links targeting new windows -// 0=default window, 1=current window/tab, 2=new window, 3=new tab in most recent window -pref("browser.link.open_newwindow", 3); - -// 0: no restrictions - divert everything -// 1: don't divert window.open at all -// 2: don't divert window.open with features -pref("browser.link.open_newwindow.restriction", 2); - -// Tabbed browser -#ifndef WINCE -pref("browser.tabs.autoHide", false); -#else -pref("browser.tabs.autoHide", true); -#endif -pref("browser.tabs.closeWindowWithLastTab", true); -pref("browser.tabs.insertRelatedAfterCurrent", true); -pref("browser.tabs.warnOnClose", true); -pref("browser.tabs.warnOnOpen", true); -pref("browser.tabs.maxOpenBeforeWarn", 15); -pref("browser.tabs.loadInBackground", true); -pref("browser.tabs.opentabfor.middleclick", true); -pref("browser.tabs.loadDivertedInBackground", false); -pref("browser.tabs.loadBookmarksInBackground", false); -pref("browser.tabs.tabClipWidth", 140); -pref("browser.tabs.animate", true); -pref("browser.tabs.drawInTitlebar", true); - -// Where to show tab close buttons: -// 0 on active tab only -// 1 on all tabs until tabClipWidth is reached, then active tab only -// 2 no close buttons at all -// 3 at the end of the tabstrip -pref("browser.tabs.closeButtons", 1); - -// When tabs opened by links in other tabs via a combination of -// browser.link.open_newwindow being set to 3 and target="_blank" etc are -// closed: -// true return to the tab that opened this tab (its owner) -// false return to the adjacent tab (old default) -pref("browser.tabs.selectOwnerOnClose", true); - -pref("browser.allTabs.previews", false); -pref("browser.ctrlTab.previews", false); -pref("browser.ctrlTab.recentlyUsedLimit", 7); - -// By default, do not export HTML at shutdown. -// If true, at shutdown the bookmarks in your menu and toolbar will -// be exported as HTML to the bookmarks.html file. -pref("browser.bookmarks.autoExportHTML", false); - -// The maximum number of daily bookmark backups to -// keep in {PROFILEDIR}/bookmarkbackups. Special values: -// -1: unlimited -// 0: no backups created (and deletes all existing backups) -pref("browser.bookmarks.max_backups", 10); - -// Scripts & Windows prefs -pref("dom.disable_open_during_load", true); -pref("javascript.options.showInConsole", true); -#ifdef DEBUG -pref("general.warnOnAboutConfig", false); -#endif - -#ifdef WINCE -// Set the threshold higher to avoid some slow script warnings -pref("dom.max_script_run_time", 20); -#endif - -// This is the pref to control the location bar, change this to true to -// force this - this makes the origin of popup windows more obvious to avoid -// spoofing. We would rather not do it by default because it affects UE for web -// applications, but without it there isn't a really good way to prevent chrome -// spoofing, see bug 337344 -pref("dom.disable_window_open_feature.location", true); -// prevent JS from setting status messages -pref("dom.disable_window_status_change", true); -// allow JS to move and resize existing windows -pref("dom.disable_window_move_resize", false); -// prevent JS from monkeying with window focus, etc -pref("dom.disable_window_flip", true); - -// popups.policy 1=allow,2=reject -pref("privacy.popups.policy", 1); -pref("privacy.popups.usecustom", true); -pref("privacy.popups.showBrowserMessage", true); - -pref("privacy.item.cookies", false); - -pref("privacy.clearOnShutdown.history", true); -pref("privacy.clearOnShutdown.formdata", true); -pref("privacy.clearOnShutdown.passwords", false); -pref("privacy.clearOnShutdown.downloads", true); -pref("privacy.clearOnShutdown.cookies", true); -pref("privacy.clearOnShutdown.cache", true); -pref("privacy.clearOnShutdown.sessions", true); -pref("privacy.clearOnShutdown.offlineApps", false); -pref("privacy.clearOnShutdown.siteSettings", false); - -pref("privacy.cpd.history", true); -pref("privacy.cpd.formdata", true); -pref("privacy.cpd.passwords", false); -pref("privacy.cpd.downloads", true); -pref("privacy.cpd.cookies", true); -pref("privacy.cpd.cache", true); -pref("privacy.cpd.sessions", true); -pref("privacy.cpd.offlineApps", false); -pref("privacy.cpd.siteSettings", false); - -// What default should we use for the time span in the sanitizer: -// 0 - Clear everything -// 1 - Last Hour -// 2 - Last 2 Hours -// 3 - Last 4 Hours -// 4 - Today -pref("privacy.sanitize.timeSpan", 1); -pref("privacy.sanitize.sanitizeOnShutdown", false); - -pref("privacy.sanitize.migrateFx3Prefs", false); - -pref("network.proxy.share_proxy_settings", false); // use the same proxy settings for all protocols - -// simple gestures support -pref("browser.gesture.swipe.left", "Browser:BackOrBackDuplicate"); -pref("browser.gesture.swipe.right", "Browser:ForwardOrForwardDuplicate"); -pref("browser.gesture.swipe.up", "cmd_scrollTop"); -pref("browser.gesture.swipe.down", "cmd_scrollBottom"); -#ifdef XP_MACOSX -pref("browser.gesture.pinch.latched", true); -pref("browser.gesture.pinch.threshold", 150); -#else -pref("browser.gesture.pinch.latched", false); -pref("browser.gesture.pinch.threshold", 25); -#endif -pref("browser.gesture.pinch.out", ""); -pref("browser.gesture.pinch.in", ""); -pref("browser.gesture.pinch.out.shift", ""); -pref("browser.gesture.pinch.in.shift", ""); -pref("browser.gesture.twist.latched", false); -pref("browser.gesture.twist.threshold", 25); -pref("browser.gesture.twist.right", ""); -pref("browser.gesture.twist.left", ""); -pref("browser.gesture.tap", "cmd_fullZoomReset"); - -// 0=lines, 1=pages, 2=history , 3=text size -#ifdef XP_MACOSX -// On OS X, if the wheel has one axis only, shift+wheel comes through as a -// horizontal scroll event. Thus, we can't assign anything other than normal -// scrolling to shift+wheel. -pref("mousewheel.withshiftkey.action",0); -pref("mousewheel.withshiftkey.sysnumlines",true); -pref("mousewheel.withshiftkey.numlines",1); -pref("mousewheel.withaltkey.action",2); -pref("mousewheel.withaltkey.sysnumlines",false); -pref("mousewheel.withaltkey.numlines",1); -pref("mousewheel.withmetakey.action",0); -pref("mousewheel.withmetakey.sysnumlines",false); -pref("mousewheel.withmetakey.numlines",1); -#else -pref("mousewheel.withshiftkey.action",2); -pref("mousewheel.withshiftkey.sysnumlines",false); -pref("mousewheel.withshiftkey.numlines",1); -pref("mousewheel.withaltkey.action",0); -pref("mousewheel.withaltkey.sysnumlines",false); -pref("mousewheel.withaltkey.numlines",1); -pref("mousewheel.withmetakey.action",0); -pref("mousewheel.withmetakey.sysnumlines",true); -pref("mousewheel.withmetakey.numlines",1); -#endif -pref("mousewheel.withcontrolkey.action",3); -pref("mousewheel.withcontrolkey.sysnumlines",false); -pref("mousewheel.withcontrolkey.numlines",1); - -pref("profile.allow_automigration", false); // setting to false bypasses automigration in the profile code - -// Customizable toolbar stuff -pref("custtoolbar.personal_toolbar_folder", ""); - -// pref to control the alert notification -pref("alerts.slideIncrement", 1); -pref("alerts.slideIncrementTime", 10); -pref("alerts.totalOpenTime", 4000); - -pref("browser.xul.error_pages.enabled", true); -pref("browser.xul.error_pages.expert_bad_cert", false); - -// Work Offline is best manually managed by the user. -pref("network.manage-offline-status", false); - -// We want to make sure mail URLs are handled externally... -pref("network.protocol-handler.external.mailto", true); // for mail -pref("network.protocol-handler.external.news", true); // for news -pref("network.protocol-handler.external.snews", true); // for secure news -pref("network.protocol-handler.external.nntp", true); // also news -// ...without warning dialogs -pref("network.protocol-handler.warn-external.mailto", false); -pref("network.protocol-handler.warn-external.news", false); -pref("network.protocol-handler.warn-external.snews", false); -pref("network.protocol-handler.warn-external.nntp", false); - -// By default, all protocol handlers are exposed. This means that -// the browser will respond to openURL commands for all URL types. -// It will also try to open link clicks inside the browser before -// failing over to the system handlers. -pref("network.protocol-handler.expose-all", true); -pref("network.protocol-handler.expose.mailto", false); -pref("network.protocol-handler.expose.news", false); -pref("network.protocol-handler.expose.snews", false); -pref("network.protocol-handler.expose.nntp", false); - -// Default security warning dialogs to show once. -pref("security.warn_entering_secure.show_once", false); -pref("security.warn_entering_weak.show_once", true); -pref("security.warn_leaving_secure.show_once", false); -pref("security.warn_viewing_mixed.show_once", true); -pref("security.warn_submit_insecure.show_once", false); - -pref("accessibility.typeaheadfind", false); -pref("accessibility.typeaheadfind.timeout", 5000); -pref("accessibility.typeaheadfind.linksonly", false); -pref("accessibility.typeaheadfind.flashBar", 1); - -// plugin finder service url -pref("pfs.datasource.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%"); - -// by default we show an infobar message when pages require plugins the user has not installed, or are outdated -pref("plugins.hide_infobar_for_missing_plugin", false); -pref("plugins.hide_infobar_for_outdated_plugin", false); - -#ifdef XP_MACOSX -pref("plugins.hide_infobar_for_carbon_failure_plugin", false); -#endif - -pref("plugins.update.url", "https://www.mozilla.com/%LOCALE%/plugincheck/"); -pref("plugins.update.notifyUser", false); - -#ifdef XP_WIN -pref("browser.preferences.instantApply", false); -#else -pref("browser.preferences.instantApply", true); -#endif -#ifdef XP_MACOSX -pref("browser.preferences.animateFadeIn", true); -#else -pref("browser.preferences.animateFadeIn", false); -#endif - -pref("browser.download.show_plugins_in_list", true); -pref("browser.download.hide_plugins_without_extensions", true); - -// Backspace and Shift+Backspace behavior -// 0 goes Back/Forward -// 1 act like PgUp/PgDown -// 2 and other values, nothing -#ifdef UNIX_BUT_NOT_MAC -pref("browser.backspace_action", 2); -#else -pref("browser.backspace_action", 0); -#endif - -// this will automatically enable inline spellchecking (if it is available) for -// editable elements in HTML -// 0 = spellcheck nothing -// 1 = check multi-line controls [default] -// 2 = check multi/single line controls -pref("layout.spellcheckDefault", 1); - -pref("browser.send_pings", false); - -/* initial web feed readers list */ -pref("browser.contentHandlers.types.0.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.0.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.0.type", "application/vnd.mozilla.maybe.feed"); -pref("browser.contentHandlers.types.1.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.1.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.1.type", "application/vnd.mozilla.maybe.feed"); -pref("browser.contentHandlers.types.2.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.2.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.2.type", "application/vnd.mozilla.maybe.feed"); -pref("browser.contentHandlers.types.3.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.3.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.3.type", "application/vnd.mozilla.maybe.feed"); -pref("browser.contentHandlers.types.4.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.4.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.4.type", "application/vnd.mozilla.maybe.feed"); -pref("browser.contentHandlers.types.5.title", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.5.uri", "chrome://browser-region/locale/region.properties"); -pref("browser.contentHandlers.types.5.type", "application/vnd.mozilla.maybe.feed"); - -pref("browser.feeds.handler", "ask"); -pref("browser.videoFeeds.handler", "ask"); -pref("browser.audioFeeds.handler", "ask"); - -// At startup, if the handler service notices that the version number in the -// region.properties file is newer than the version number in the handler -// service datastore, it will add any new handlers it finds in the prefs (as -// seeded by this file) to its datastore. -pref("gecko.handlerService.defaultHandlersVersion", "chrome://browser-region/locale/region.properties"); - -// The default set of web-based protocol handlers shown in the application -// selection dialog for webcal: ; I've arbitrarily picked 4 default handlers -// per protocol, but if some locale wants more than that (or defaults for some -// protocol not currently listed here), we should go ahead and add those. - -// webcal -pref("gecko.handlerService.schemes.webcal.0.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.0.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.1.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.1.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.2.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.2.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.3.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.webcal.3.uriTemplate", "chrome://browser-region/locale/region.properties"); - -// mailto -pref("gecko.handlerService.schemes.mailto.0.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.0.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.1.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.1.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.2.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.2.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.3.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.mailto.3.uriTemplate", "chrome://browser-region/locale/region.properties"); - -// irc -pref("gecko.handlerService.schemes.irc.0.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.0.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.1.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.1.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.2.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.2.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.3.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.irc.3.uriTemplate", "chrome://browser-region/locale/region.properties"); - -// ircs -pref("gecko.handlerService.schemes.ircs.0.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.0.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.1.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.1.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.2.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.2.uriTemplate", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.3.name", "chrome://browser-region/locale/region.properties"); -pref("gecko.handlerService.schemes.ircs.3.uriTemplate", "chrome://browser-region/locale/region.properties"); - -// By default, we don't want protocol/content handlers to be registered from a different host, see bug 402287 -pref("gecko.handlerService.allowRegisterFromDifferentHost", false); - -#ifdef MOZ_SAFE_BROWSING -// Safe browsing does nothing unless this pref is set -pref("browser.safebrowsing.enabled", true); - -// Prevent loading of pages identified as malware -pref("browser.safebrowsing.malware.enabled", true); - -// Non-enhanced mode (local url lists) URL list to check for updates -pref("browser.safebrowsing.provider.0.updateURL", "http://safebrowsing.clients.google.com/safebrowsing/downloads?client={moz:client}&appver={moz:version}&pver=2.2"); - -pref("browser.safebrowsing.dataProvider", 0); - -// Does the provider name need to be localizable? -pref("browser.safebrowsing.provider.0.name", "Google"); -pref("browser.safebrowsing.provider.0.keyURL", "https://sb-ssl.google.com/safebrowsing/newkey?client={moz:client}&appver={moz:version}&pver=2.2"); -pref("browser.safebrowsing.provider.0.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/report?"); -pref("browser.safebrowsing.provider.0.gethashURL", "http://safebrowsing.clients.google.com/safebrowsing/gethash?client={moz:client}&appver={moz:version}&pver=2.2"); - -// HTML report pages -pref("browser.safebrowsing.provider.0.reportGenericURL", "http://{moz:locale}.phish-generic.mozilla.com/?hl={moz:locale}"); -pref("browser.safebrowsing.provider.0.reportErrorURL", "http://{moz:locale}.phish-error.mozilla.com/?hl={moz:locale}"); -pref("browser.safebrowsing.provider.0.reportPhishURL", "http://{moz:locale}.phish-report.mozilla.com/?hl={moz:locale}"); -pref("browser.safebrowsing.provider.0.reportMalwareURL", "http://{moz:locale}.malware-report.mozilla.com/?hl={moz:locale}"); -pref("browser.safebrowsing.provider.0.reportMalwareErrorURL", "http://{moz:locale}.malware-error.mozilla.com/?hl={moz:locale}"); - -// FAQ URLs -pref("browser.safebrowsing.warning.infoURL", "http://www.mozilla.com/%LOCALE%/%APP%/phishing-protection/"); -pref("browser.geolocation.warning.infoURL", "http://www.mozilla.com/%LOCALE%/%APP%/geolocation/"); - -// Name of the about: page contributed by safebrowsing to handle display of error -// pages on phishing/malware hits. (bug 399233) -pref("urlclassifier.alternate_error_page", "blocked"); - -// The number of random entries to send with a gethash request. -pref("urlclassifier.gethashnoise", 4); - -// The list of tables that use the gethash request to confirm partial results. -pref("urlclassifier.gethashtables", "goog-phish-shavar,goog-malware-shavar"); - -// If an urlclassifier table has not been updated in this number of seconds, -// a gethash request will be forced to check that the result is still in -// the database. -pref("urlclassifier.confirm-age", 2700); - -#ifdef MOZ_WIDGET_GTK2 -#define RESTRICT_CACHEMAX -#endif -#ifdef XP_OS2 -#define RESTRICT_CACHEMAX -#endif - -// Maximum size of the sqlite3 cache during an update, in bytes -#ifdef RESTRICT_CACHEMAX -pref("urlclassifier.updatecachemax", 104857600); -#else -pref("urlclassifier.updatecachemax", -1); -#endif - -// URL for checking the reason for a malware warning. -pref("browser.safebrowsing.malware.reportURL", "http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site="); - -#endif - -pref("browser.EULA.version", 3); -pref("browser.rights.version", 3); -pref("browser.rights.3.shown", false); - -#ifdef DEBUG -// Don't show the about:rights notification in debug builds. -pref("browser.rights.override", true); -#endif - -#ifdef WINCE -pref("browser.sessionstore.resume_from_crash", false); -#else -pref("browser.sessionstore.resume_from_crash", true); -#endif -pref("browser.sessionstore.resume_session_once", false); - -// minimal interval between two save operations in milliseconds -pref("browser.sessionstore.interval", 15000); -// maximum amount of POSTDATA to be saved in bytes per history entry (-1 = all of it) -// (NB: POSTDATA will be saved either entirely or not at all) -pref("browser.sessionstore.postdata", 0); -// on which sites to save text data, POSTDATA and cookies -// 0 = everywhere, 1 = unencrypted sites, 2 = nowhere -pref("browser.sessionstore.privacy_level", 0); -// the same as browser.sessionstore.privacy_level, but for saving deferred session data -pref("browser.sessionstore.privacy_level_deferred", 1); -// how many tabs can be reopened (per window) -pref("browser.sessionstore.max_tabs_undo", 10); -// how many windows can be reopened (per session) - on non-OS X platforms this -// pref may be ignored when dealing with pop-up windows to ensure proper startup -pref("browser.sessionstore.max_windows_undo", 3); -// number of crashes that can occur before the about:sessionrestore page is displayed -// (this pref has no effect if more than 6 hours have passed since the last crash) -pref("browser.sessionstore.max_resumed_crashes", 1); -// The number of tabs that can restore concurrently: -// < 0 = All tabs can restore at the same time -// 0 = Only the selected tab in each window will be restored -// Other tabs won't be restored until they are selected -// N = The number of tabs to restore at the same time -pref("browser.sessionstore.max_concurrent_tabs", 3); - -// allow META refresh by default -pref("accessibility.blockautorefresh", false); - -// Whether history is enabled or not. -pref("places.history.enabled", true); - -// The percentage of system memory that the Places database can use. Out of the -// allowed cache size it will at most use the size of the database file. -// Changes to this value are effective after an application restart. -// Acceptable values are between 0 and 50. -pref("places.database.cache_to_memory_percentage", 6); - -// the (maximum) number of the recent visits to sample -// when calculating frecency -pref("places.frecency.numVisits", 10); - -// buckets (in days) for frecency calculation -pref("places.frecency.firstBucketCutoff", 4); -pref("places.frecency.secondBucketCutoff", 14); -pref("places.frecency.thirdBucketCutoff", 31); -pref("places.frecency.fourthBucketCutoff", 90); - -// weights for buckets for frecency calculations -pref("places.frecency.firstBucketWeight", 100); -pref("places.frecency.secondBucketWeight", 70); -pref("places.frecency.thirdBucketWeight", 50); -pref("places.frecency.fourthBucketWeight", 30); -pref("places.frecency.defaultBucketWeight", 10); - -// bonus (in percent) for visit transition types for frecency calculations -pref("places.frecency.embedVisitBonus", 0); -pref("places.frecency.framedLinkVisitBonus", 0); -pref("places.frecency.linkVisitBonus", 100); -pref("places.frecency.typedVisitBonus", 2000); -pref("places.frecency.bookmarkVisitBonus", 75); -pref("places.frecency.downloadVisitBonus", 0); -pref("places.frecency.permRedirectVisitBonus", 0); -pref("places.frecency.tempRedirectVisitBonus", 0); -pref("places.frecency.defaultVisitBonus", 0); - -// bonus (in percent) for place types for frecency calculations -pref("places.frecency.unvisitedBookmarkBonus", 140); -pref("places.frecency.unvisitedTypedBonus", 200); - -// Controls behavior of the "Add Exception" dialog launched from SSL error pages -// 0 - don't pre-populate anything -// 1 - pre-populate site URL, but don't fetch certificate -// 2 - pre-populate site URL and pre-fetch certificate -pref("browser.ssl_override_behavior", 2); - -// Controls the display of domain in the identity box for SSL connections. -// 0 - do not show domain -// 1 - show effectiveTLD + 1 (e.g. mozilla.org) -// 2 - show full domain (e.g. bugzilla.mozilla.org) -pref("browser.identity.ssl_domain_display", 1); - -// True if the user should be prompted when a web application supports -// offline apps. -pref("browser.offline-apps.notify", true); - -// if true, use full page zoom instead of text zoom -pref("browser.zoom.full", true); - -// Whether or not to save and restore zoom levels on a per-site basis. -pref("browser.zoom.siteSpecific", true); - -// Whether or not to update background tabs to the current zoom level. -pref("browser.zoom.updateBackgroundTabs", true); - -// The breakpad report server to link to in about:crashes -pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/"); - -// base URL for web-based support pages -pref("app.support.baseURL", "http://support.mozilla.com/1/%APP%/%VERSION%/%OS%/%LOCALE%/"); - -// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror) -pref("security.alternate_certificate_error_page", "certerror"); - -// Whether to start the private browsing mode at application startup -pref("browser.privatebrowsing.autostart", false); - -// Whether we should skip prompting before starting the private browsing mode -pref("browser.privatebrowsing.dont_prompt_on_enter", false); - -// Don't try to alter this pref, it'll be reset the next time you use the -// bookmarking dialog -pref("browser.bookmarks.editDialog.firstEditField", "namePicker"); - -// base url for the wifi geolocation network provider -pref("geo.wifi.uri", "http://geomena.org"); -pref("geo.wifi.protocol", 0); - -#ifdef WINCE - -// tweak awesomebar -- increase the delay until a search happens. -pref("browser.urlbar.delay", 250); - -// disable safe browsing, due to perf hit -pref("browser.safebrowsing.enabled", false); -pref("browser.safebrowsing.malware.enabled", false); - -// don't check for default browser -pref("browser.shell.checkDefaultBrowser", false); - -// disable bfcache for memory -pref("browser.sessionhistory.max_total_viewers", 0); - -pref("browser.sessionhistory.optimize_eviction", false); - -// tweak default content sink prefs -pref("content.sink.interactive_deflect_count", 10); /* default 0 */ -pref("content.sink.perf_deflect_count", 50); /* default 200 */ -pref("content.sink.interactive_parse_time", 5000); /* default 3000 */ -pref("content.sink.perf_parse_time", 150000); /* default 360000 */ -pref("content.sink.pending_event_mode", 0); /* default 1 */ -pref("content.sink.event_probe_rate", 1); /* default 1 */ -pref("content.sink.interactive_time", 750000); /* default 750000 */ -pref("content.sink.initial_perf_time", 500000); /* default 2000000 */ -pref("content.sink.enable_perf_mode", 0); /* default 0; 0 == switch, 1 == stay interactive, 2 == stay perf */ - -// Write sessionstore.js less often -pref("browser.sessionstore.interval", 60000); - -#endif /* WINCE */ - -// Whether to use a panel that looks like an OS X sheet for customization -#ifdef XP_MACOSX -pref("toolbar.customization.usesheet", true); -#else -pref("toolbar.customization.usesheet", false); -#endif - -// The default for this pref reflects whether the build is capable of IPC. -// (Turning it on in a no-IPC build will have no effect.) -#ifdef XP_MACOSX -// i386 ipc preferences -pref("dom.ipc.plugins.enabled.i386", false); -pref("dom.ipc.plugins.enabled.i386.flash player.plugin", true); -pref("dom.ipc.plugins.enabled.i386.javaplugin2_npapi.plugin", true); -// x86_64 ipc preferences -pref("dom.ipc.plugins.enabled.x86_64", true); -#elifdef MOZ_IPC -pref("dom.ipc.plugins.enabled", true); -#else -pref("dom.ipc.plugins.enabled", false); -#endif - -#ifdef XP_WIN -#ifndef WINCE -pref("browser.taskbar.previews.enable", false); -pref("browser.taskbar.previews.max", 20); -pref("browser.taskbar.previews.cachetime", 5); -pref("browser.taskbar.lists.enabled", true); -pref("browser.taskbar.lists.frequent.enabled", true); -pref("browser.taskbar.lists.recent.enabled", false); -pref("browser.taskbar.lists.maxListItemCount", 7); -pref("browser.taskbar.lists.tasks.enabled", true); -pref("browser.taskbar.lists.refreshInSeconds", 120); -#endif -#endif - -#ifdef MOZ_SERVICES_SYNC -// The sync engines to use. -pref("services.sync.registerEngines", "Bookmarks,Form,History,Password,Prefs,Tab"); -// Preferences to be synced by default -pref("services.sync.prefs.sync.accessibility.blockautorefresh", true); -pref("services.sync.prefs.sync.accessibility.browsewithcaret", true); -pref("services.sync.prefs.sync.accessibility.typeaheadfind", true); -pref("services.sync.prefs.sync.accessibility.typeaheadfind.linksonly", true); -pref("services.sync.prefs.sync.app.update.mode", true); -pref("services.sync.prefs.sync.browser.download.manager.closeWhenDone", true); -pref("services.sync.prefs.sync.browser.download.manager.retention", true); -pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", true); -pref("services.sync.prefs.sync.browser.download.manager.showWhenStarting", true); -pref("services.sync.prefs.sync.browser.formfill.enable", true); -pref("services.sync.prefs.sync.browser.link.open_newwindow", true); -pref("services.sync.prefs.sync.browser.offline-apps.notify", true); -pref("services.sync.prefs.sync.browser.safebrowsing.enabled", true); -pref("services.sync.prefs.sync.browser.safebrowsing.malware.enabled", true); -pref("services.sync.prefs.sync.browser.search.selectedEngine", true); -pref("services.sync.prefs.sync.browser.search.update", true); -pref("services.sync.prefs.sync.browser.startup.homepage", true); -pref("services.sync.prefs.sync.browser.startup.page", true); -pref("services.sync.prefs.sync.browser.tabs.autoHide", true); -pref("services.sync.prefs.sync.browser.tabs.closeButtons", true); -pref("services.sync.prefs.sync.browser.tabs.loadInBackground", true); -pref("services.sync.prefs.sync.browser.tabs.warnOnClose", true); -pref("services.sync.prefs.sync.browser.tabs.warnOnOpen", true); -pref("services.sync.prefs.sync.browser.urlbar.autocomplete.enabled", true); -pref("services.sync.prefs.sync.browser.urlbar.autoFill", true); -pref("services.sync.prefs.sync.browser.urlbar.default.behavior", true); -pref("services.sync.prefs.sync.browser.urlbar.maxRichResults", true); -pref("services.sync.prefs.sync.dom.disable_open_during_load", true); -pref("services.sync.prefs.sync.dom.disable_window_flip", true); -pref("services.sync.prefs.sync.dom.disable_window_move_resize", true); -pref("services.sync.prefs.sync.dom.event.contextmenu.enabled", true); -pref("services.sync.prefs.sync.extensions.personas.current", true); -pref("services.sync.prefs.sync.extensions.update.enabled", true); -pref("services.sync.prefs.sync.general.smoothScroll", true); -pref("services.sync.prefs.sync.intl.accept_languages", true); -pref("services.sync.prefs.sync.javascript.enabled", true); -pref("services.sync.prefs.sync.layout.spellcheckDefault", true); -pref("services.sync.prefs.sync.lightweightThemes.isThemeSelected", true); -pref("services.sync.prefs.sync.lightweightThemes.usedThemes", true); -pref("services.sync.prefs.sync.network.cookie.cookieBehavior", true); -pref("services.sync.prefs.sync.network.cookie.lifetimePolicy", true); -pref("services.sync.prefs.sync.permissions.default.image", true); -pref("services.sync.prefs.sync.pref.advanced.images.disable_button.view_image", true); -pref("services.sync.prefs.sync.pref.advanced.javascript.disable_button.advanced", true); -pref("services.sync.prefs.sync.pref.downloads.disable_button.edit_actions", true); -pref("services.sync.prefs.sync.pref.privacy.disable_button.cookie_exceptions", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.cache", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.cookies", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.downloads", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.formdata", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.history", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.offlineApps", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.passwords", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.sessions", true); -pref("services.sync.prefs.sync.privacy.clearOnShutdown.siteSettings", true); -pref("services.sync.prefs.sync.privacy.donottrackheader.enabled", true); -pref("services.sync.prefs.sync.privacy.sanitize.sanitizeOnShutdown", true); -pref("services.sync.prefs.sync.security.OCSP.disable_button.managecrl", true); -pref("services.sync.prefs.sync.security.OCSP.enabled", true); -pref("services.sync.prefs.sync.security.OCSP.require", true); -pref("services.sync.prefs.sync.security.default_personal_cert", true); -pref("services.sync.prefs.sync.security.enable_ssl3", true); -pref("services.sync.prefs.sync.security.enable_tls", true); -pref("services.sync.prefs.sync.security.warn_entering_secure", true); -pref("services.sync.prefs.sync.security.warn_entering_weak", true); -pref("services.sync.prefs.sync.security.warn_leaving_secure", true); -pref("services.sync.prefs.sync.security.warn_submit_insecure", true); -pref("services.sync.prefs.sync.security.warn_viewing_mixed", true); -pref("services.sync.prefs.sync.signon.rememberSignons", true); -pref("services.sync.prefs.sync.spellchecker.dictionary", true); -pref("services.sync.prefs.sync.xpinstall.whitelist.required", true); -#endif - -// Disable the error console and inspector -pref("devtools.errorconsole.enabled", false); -pref("devtools.inspector.enabled", false); - -// The last Web Console height. This is initially 0 which means that the Web -// Console will use the default height next time it shows. -// Change to -1 if you do not want the Web Console to remember its last height. -pref("devtools.hud.height", 0); - -// Whether the character encoding menu is under the main Firefox button. This -// preference is a string so that localizers can alter it. -pref("browser.menu.showCharacterEncoding", "chrome://browser/locale/browser.properties"); - -// Allow using tab-modal prompts when possible. -pref("prompts.tab_modal.enabled", true); -// Whether the Panorama should animate going in/out of tabs -pref("browser.panorama.animate_zoom", true); diff --git a/libre/icecat/mozilla-firefox-1.0-lang.patch b/libre/icecat/mozilla-firefox-1.0-lang.patch deleted file mode 100644 index f0f7325a5..000000000 --- a/libre/icecat/mozilla-firefox-1.0-lang.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- mozilla/browser/app/profile/firefox.js.lang 2005-01-13 15:32:03.509282726 +0100 -+++ mozilla/browser/app/profile/firefox.js 2005-01-13 15:33:40.220914789 +0100 -@@ -253,6 +253,9 @@ - pref("font.language.group", "chrome://global/locale/intl.properties"); - pref("intl.menuitems.alwaysappendaccesskeys","chrome://global/locale/intl.properties"); - -+// Use LANG environment variable to choose locale -+pref("intl.locale.matchOS", true); -+ - // 0=lines, 1=pages, 2=history , 3=text size - pref("mousewheel.withcontrolkey.action",3); - pref("mousewheel.withshiftkey.action",2); diff --git a/libre/icecat/xulrunner-copy-stub.patch b/libre/icecat/xulrunner-copy-stub.patch deleted file mode 100644 index b42bd76c8..000000000 --- a/libre/icecat/xulrunner-copy-stub.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- browser/app/Makefile.in~ 2008-10-02 10:11:42.000000000 +0200 -+++ browser/app/Makefile.in 2008-10-02 10:12:06.000000000 +0200 -@@ -414,7 +414,7 @@ - else - ifdef LIBXUL_SDK - libs:: -- cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/firefox$(BIN_SUFFIX) -+ cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/icecat$(BIN_SUFFIX) - endif - endif - diff --git a/libre/iceweasel-i18n/.gitignore b/libre/iceweasel-i18n/.gitignore new file mode 100644 index 000000000..3e1eb57b5 --- /dev/null +++ b/libre/iceweasel-i18n/.gitignore @@ -0,0 +1,3 @@ +PKGBUILD.list +langpacks.txt +*.diff.gz diff --git a/libre/iceweasel-i18n/Makefile b/libre/iceweasel-i18n/Makefile new file mode 100644 index 000000000..d596111f3 --- /dev/null +++ b/libre/iceweasel-i18n/Makefile @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# Use this script to update the PKGBUILD's list of langpacks. +# This script depends on: +# - coreutils +# - pacman +# - sed + +# Variables: +# This is to get it from Debian Sid +debname=iceweasel-l10n +debver=9.0+debian +debrel=1 +debrepo=http://ftp.debian.org/debian/pool/main/ + +pkgver=9.0 +pkgrel=2.1 + +# Guts: ############################################################## + +default: PHONY all +all: PHONY + $(MAKE) clean + $(MAKE) PKGBUILD +.PRECIOUS: PKGBUILD + +PKGBUILD.list: Makefile + sed \ + -e 's/@DEBNAME@/$(debname)/' \ + -e 's/@DEBVER@/$(debver)/' \ + -e 's/@DEBREL@/$(debrel)/' \ + -e 's%@DEBREPO@%$(debrepo)%' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(phony)/" \ + -e '/CUT HERE/,$$d' \ + PKGBUILD.in > $@ + echo 'package() { exit 0; }' >> $@ + makepkg -gp $@ >> $@ +langpacks.txt: PKGBUILD.list Makefile + makepkg -dp $< + ls src/*/upstream | sed 's/\.xpi//' > $@ +PKGBUILD: PKGBUILD.in langpacks.txt Makefile + sed \ + -e 's/@DEBNAME@/$(debname)/' \ + -e 's/@DEBVER@/$(debver)/' \ + -e 's/@DEBREL@/$(debrel)/' \ + -e 's%@DEBREPO@%$(debrepo)%' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \ + -e '/CUT HERE/d' \ + -e '/md5sums/,$$d' \ + PKGBUILD.in > $@ + makepkg -dg >> $@ + +clean: PHONY + rm -f PKGBUILD.list langpacks.txt + +.PHONY: PHONY FORCE diff --git a/libre/iceweasel-i18n/PKGBUILD b/libre/iceweasel-i18n/PKGBUILD new file mode 100644 index 000000000..0743504ee --- /dev/null +++ b/libre/iceweasel-i18n/PKGBUILD @@ -0,0 +1,142 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Contributor: Figue <ffigue@gmail.com> +# Based on icecat-i18n package, which is in turn based on firefox-i18n + +# When updating to a newer upstream release: +# - Edit variables in in Makefile. +# - (optionally) edit PKGBUILD.in +# - Run 'make'. It will take care of everything else for you. + +_debname=iceweasel +_debver=11.0 +_debrel=2 +_debrepo=http://ftp.debian.org/debian/pool/main/ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_langpacks=(af ak ar as ast be bg bn-BD bn-IN br bs ca csb cs cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW zu) + +pkgbase=iceweasel-i18n +pkgname=($(for lang in ${_langpacks[@]} + do echo $pkgbase-$lang | tr A-Z a-z + done)) +_pkgver=10.0 +pkgver=${_debver}.${_debrel} +pkgrel=1 + +pkgdesc="Language packs for Debian Iceweasel." +arch=('any') +url="http://www.geticeweasel.org/" +license=('MPL') +depends=("iceweasel-libre>=$_pkgver") +source=() +for lang in ${_langpacks[@]} +do + source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel}_all.deb") +done + +build() { + cd "${srcdir}" + for f in *.deb + do + bsdtar xf $f + bsdtar xf data.tar.gz + done +} + +_path="/usr/lib/iceweasel/extensions" + + +for lang in ${_langpacks[@]} +do + eval " +package_iceweasel-i18n-$(echo $lang | tr A-Z a-z)() { + install -Dm644 \"\$srcdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" +} +" +done + +md5sums=('c11d65787c3f2848e0b582115e50c3ca' + 'f579bb571a43c33d6a13fd71f7853331' + '5ec94ba1055f11e8a33674a3ea623fca' + '7598e4409463c98c6f358a49c0e0e864' + 'f3a7156974b43a7829e68e82e6dd749a' + '2cd6d08c82a59cee5454d3da763d9808' + '3b5529e7d1a6c87e9a99b251bb008b9f' + 'f1eb67cbc423a49dd4b4f85e1f50034c' + '76c39cc1134b4074283fe080a1d0b29e' + '1b282bba90202701fa63fc21b44e78d5' + '77f818359b98fdd2a23b40989f9f56c6' + 'cbd8fb3d20a5269ac728c717ebd1d98c' + '83e2314c8b80d0fd551fa083d89cef70' + 'e68bed0670b4a82dbd66512e8ca130c7' + '48ea629311ec141de087474ad95fa122' + '9c1849045f0004e49c240061358b244f' + '72bce5d1aa3e6b21f6b7e7b6f2c8d4f2' + '224a5bb2ee4fdde8cc20e79a70e30eab' + 'e856bf522ad406c3b17e605a922a149f' + 'e522dd90baf0fdc61fbd45a496993fed' + 'adc195bb74d8d84f768ab0077c6c80b2' + 'a8012c48c890655c1ef1826f900f7cd3' + 'fad33e552bd6fb805a5c92325c649eff' + 'cad39ebafc45aad5d32f115fa1839ac0' + '238fa3a6a33cd30ad2712510cc578baa' + '5dadee4c8eca35353e811b93a6602860' + '67c7d7ab47d8cd636d6849f9fda68fe7' + 'b7cf88fe4b118aea853978c7ff43eb57' + 'c0aa19616cf37148a7f33789c9e88deb' + '806a1b78d92c1e6504051f2c6bf2cdcf' + '92ee27275709f2c81f229f40d032da23' + '6f7369cff0c0680f52394d9caee7b136' + '2adba18d2bd10051950f1b37325ddbce' + 'a2e1834d4b28fa8dea5b8d01adcedb7e' + '929bfa11831b267b419a1b09b4d614d4' + 'fe5ea0a2cc3ee9b45618517a2a6cd162' + '45cd4f3e44046bfdc78848d12a0983f9' + '7f7681277e566052e6831377b1bcd479' + 'f136cefdb1b7a8b9fc18cba540414fcc' + 'e714caf6fc74f9978ca5911310f33f10' + '7a745b384d1ee293decce327189d49e8' + '5b22c59215b6ce6d3fd588305a6429f6' + 'b6f1f722168a7e2dc70b02c199e96198' + 'e490e5a65c40cd60ba64e4511f1dcef1' + '640c52cb0b2e4f8ae0d7206fb3db3b33' + 'a42b31f567dcc8032360caa684df1c08' + 'd8da0314598179ac5c3479dd397d7827' + '7e065b66f0673c3801ee7f37ff33344d' + 'c8c5d1646483013fa249b3a839523e53' + 'abf1db7ea2e8014e135f324cf3efc141' + '8a352420c9580fe3c930a4b3c4d3530e' + '465ca43f628d0567b3de36626b54bf40' + '6cc860dae180ed5f80916759da290a9d' + 'b0d97a60501760c78f520ba4151427a7' + '829311af6d4d0d78378fdcfd2cfccc68' + 'b54daae60d32b270a44b891fdb61e3b5' + '39246a00ea31552326d0ea52f8eb1f05' + 'e49074be0a43ebc9810d89c24de75268' + '281f20486ae5b6caadfc5504e7f036ac' + '740c3a38b45788378c6c5db795d31ee1' + '296df42d755d93032b9a3dc619bc502d' + '74b59fa4676d2779f8e1081ac253b122' + 'a92960238a2c942c4b49b0f4187d0a71' + '230fbd4b3e6a65545b4a37ec1549d0e6' + 'e606f5a9db88334a6cb33086340f4ff7' + '0b52b803abe1acb1e137a57fe0497746' + '00ddf2c8c6adfcd51230dd469d01ec75' + '254303860ecc7c25157f08a4d55a4f68' + '70d037f9c5c8f25e2b335c7016f17b58' + 'b3da484dade70c544d4f0e6a829ef806' + '05347b208889b3e4aa86d9a6dccda71d' + 'a2212a06adac1aa6b74bc2f7e9de2af2' + '371d5e9b0a10feec5e05d3fdfd949bc6' + '63611b468b7d41a0470385e19a849a8d' + 'dc691a55cc7f95018e4178e6e794a1a4' + '90723a80c36b85006fa7514641cd2f2a' + '918683079f1d037d05a9a38b05d4ca51' + '77dda2b5fd59bcdb66918b4d13b486ae' + '33c2d8bff6cdf141614457c71fcf5d36' + '08990457e150c081e0f505515c15df09' + '379c5ede369994f016745e7dd83dfe54' + '15062007856eb66b04c26694a7f35727' + '569b1a54a9ca0b8149f151eb4cf57957' + '970928f01c78b094a2c054e58cd85bff') diff --git a/libre/iceweasel-i18n/PKGBUILD.in b/libre/iceweasel-i18n/PKGBUILD.in new file mode 100644 index 000000000..05477caef --- /dev/null +++ b/libre/iceweasel-i18n/PKGBUILD.in @@ -0,0 +1,63 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Contributor: Figue <ffigue@gmail.com> +# Based on icecat-i18n package, which is in turn based on firefox-i18n + +# When updating to a newer upstream release: +# - Edit variables in in Makefile. +# - (optionally) edit PKGBUILD.in +# - Run 'make'. It will take care of everything else for you. + +_debname=@DEBNAME@ +_debver=@DEBVER@ +_debrel=@DEBREL@ +_debrepo=@DEBREPO@ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_langpacks=@LANGPACKS@ + +pkgbase=iceweasel-i18n +pkgname=($(for lang in ${_langpacks[@]} + do echo $pkgbase-$lang | tr A-Z a-z + done)) +_pkgver=@PKGVER@ +pkgver=${_debver}.${_debrel} +pkgrel=@PKGREL@ + +pkgdesc="Language packs for Debian Iceweasel." +arch=('any') +url="http://www.geticeweasel.org/" +license=('MPL') +depends=("iceweasel=$_pkgver") +source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.gz" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.diff.gz" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.dsc") +noextract=($(for lang in ${_langpacks[@]} + do echo $lang.xpi + done)) + +dpkg-source() { + # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc + cd "${_debname}-${_debver}" + patch -p1 -i "${srcdir}/${_debname}_${_debver}-${_debrel}.diff" + cd .. +} + +build() { + cd "${srcdir}" + dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc +} + +_path="/usr/lib/iceweasel-${_pkgver}/extensions" + +# CUT HERE <-- Separates package_*() functions from everything else. + +for lang in ${_langpacks[@]} +do + eval " +package_iceweasel-i18n-$(echo $lang | tr A-Z a-z) () { + install -Dm644 '$srcdir/'*'/upstream/$lang.xpi' \"\$pkgdir\"'$_path/langpack-$lang@firefox.mozilla.org.xpi' +} +" +done + diff --git a/libre/iceweasel-libre/PKGBUILD b/libre/iceweasel-libre/PKGBUILD new file mode 100644 index 000000000..3ef4da470 --- /dev/null +++ b/libre/iceweasel-libre/PKGBUILD @@ -0,0 +1,156 @@ +# Contributor (ConnochaetOS): Henry Jensen <hjensen@connochaetos.org> +# Contributor (Parabola): Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Figue <ffigue at gmail> +# Contributor (Parabola): fauno <fauno@kiwwwi.com.ar> +# Contributor (Parabola): vando <facundo@esdebian.org> +# Contributor (Arch): Jakub Schmidtke <sjakub@gmail.com> +# Thank you very much to the older contributors: +# Contributor: evr <evanroman at gmail> +# Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com> + +_pgo=false + +# We're getting this from Debian Sid +_debname=iceweasel +_debver=11.0 +_debrel=2 +_debrepo=http://ftp.debian.org/debian/pool/main/ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_pkgname=iceweasel +pkgname=iceweasel-libre +pkgver=${_debver}.${_debrel} +pkgrel=1 + +if [ -z "$pkgname" ]; then pkgname=$_pkgname; fi +if $_pgo; then + pkgname+='-pgo' +fi + +pkgdesc="A libre version of Debian Iceweasel, the browser based on Mozilla Firefox." +arch=('i586' 'i686' 'x86_64' 'mips64el') +license=('GPL2' 'MPL' 'LGPL') +depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'hunspell' 'libevent' 'libnotify' 'libvpx' 'libxt' 'mime-types' 'mozilla-common' 'mozilla-searchplugins' 'nss>=3.13.1' 'sqlite3' 'startup-notification') +makedepends=( 'autoconf2.13' 'diffutils' 'imagemagick' 'libidl2' 'librsvg' 'libxslt' 'mesa' 'pkg-config' 'python2' 'quilt' 'unzip' 'wireless_tools' 'yasm' 'zip') +if $_pgo; then + makedepends+=('xorg-server-xvfb') + options=(!ccache) +fi + +url="http://www.geticeweasel.org/" +install=iceweasel.install +source=("${_debrepo}/`debfile ${_debname}`_${_debver}.orig.tar.bz2" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.debian.tar.gz" + "${_debrepo}/`debfile ${_debname}`_${_debver}-${_debrel}.dsc" + mozconfig + mozconfig.pgo + xulrunner-copy-stub.patch + libre.patch + iceweasel-install-dir.patch + region.properties + vendor.js) +md5sums=('01d9d18909ca9fff2483d8fd779a0f89' + '59349da94b095fe0623d09ce75696766' + 'f407208a750cdc9bea3a6a3a3e42dd89' + 'eab149c1994ab14392e55af3abb08e80' + 'ac29b01c189f20abae2f3eef1618ffc0' + 'a485a2b5dc544a8a2bd40c985d2e5813' + 'addd3a3420cebeda152b447705b086e9' + 'e529742c0a425648087bc3ce537fe4c5' + 'f1c76e7e244257856a386ca2de69bdf0' + '0d053487907de4376d67d8f499c5502b') + +if [ "$_pkgname" != "$pkgname" ]; then + provides+=("$_pkgname=$pkgver") + conflicts+=("$_pkgname") +fi + +dpkg-source() { + # This will simulate dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc + export QUILT_PATCHES=debian/patches + export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' + export QUILT_DIFF_ARGS='--no-timestamps' + mv mozilla-release "${_debname}-${_debver}" + mv debian "${_debname}-${_debver}" + cd "${_debname}-${_debver}" + +# Doesn't apply and seems unimportant + rm -v debian/patches/l10n/Place-google-and-gmail-before-yandex.patch || true + + quilt push -a + find .pc -name .timestamp -delete # why isn't "--no-timestamps" doing this? + cd .. +} + +build() { +# Don't run this if we're using -e +if [ $NOEXTRACT -eq 0 ]; then + msg2 "Applying Debian patches..." + cd "${srcdir}" + dpkg-source -x ${_debname}_${_debver}-${_debrel}.dsc + + msg2 "Starting normal build..." + mv "${_debname}-${_debver}" "$srcdir/mozilla-build" + cd "$srcdir/mozilla-build" + + cp "$srcdir/mozconfig" .mozconfig # Load our build config, disable SafeSearch + patch -Np1 -i "$srcdir/iceweasel-install-dir.patch" # install to /usr/lib/$_pkgname + patch -Np1 -i "$srcdir/xulrunner-copy-stub.patch" # small fix + patch -Np1 -i "$srcdir/libre.patch" +fi + + cd "$srcdir/mozilla-build" + cp -f ${srcdir}/region.properties ./browser/locales/en-US/chrome/browser-region/ + + if $_pgo; then + cat "$srcdir/mozconfig.pgo" >> .mozconfig + fi + + # Fix PRE_RELEASE_SUFFIX + sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \ + browser/base/Makefile.in + + export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$_pkgname" + export PYTHON="/usr/bin/python2" + + if $_pgo; then + LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 & + LD_PRELOAD="" DISPLAY=:99 make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="$MAKEFLAGS" + kill $! || true + else + LD_PRELOAD="" make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" + fi +} + +package() { + cd "$srcdir/mozilla-build" + make -j1 -f client.mk DESTDIR="$pkgdir" install + + install -m644 "$srcdir"/vendor.js "$pkgdir/usr/lib/$_pkgname/defaults/pref" + + # I don't even know why we're hitting the objdir, and ConnOS didn't. + _brandingdir=debian/branding + brandingdir=moz-objdir/$_brandingdir + icondir="$pkgdir/usr/share/icons/hicolor" + for i in 16x16 32x32 48x48 64x64; do + install -Dm644 "$brandingdir/default${i/x*/}.png" "$icondir/$i/apps/$_pkgname.png" + done + install -Dm644 "$brandingdir/mozicon128.png" "$icondir/128x128/apps/$_pkgname.png" + install -Dm644 "$_brandingdir/iceweasel_icon.svg" "$icondir/scalable/apps/$_pkgname.svg" + + install -d "$pkgdir/usr/share/applications" + install -m644 debian/iceweasel.desktop "$pkgdir/usr/share/applications" + #install -m644 debian/iceweasel-safe.desktop "$pkgdir/usr/share/applications" + + rm -rf "$pkgdir/usr/lib/$_pkgname/"{dictionaries,hyphenation,searchplugins,plugins} + ln -sf /usr/share/hunspell "$pkgdir/usr/lib/$_pkgname/dictionaries" + ln -sf /usr/share/hyphen "$pkgdir/usr/lib/$_pkgname/hyphenation" + ln -sf /usr/lib/mozilla/plugins "$pkgdir/usr/lib/$_pkgname/plugins" + ln -sf /usr/lib/mozilla/searchplugins "$pkgdir/usr/lib/$_pkgname/searchplugins" + + # We don't want the development stuff + rm -rf "$pkgdir"/usr/{include,lib/$_pkgname-devel,share/idl} + + # Workaround for now: https://bugzilla.mozilla.org/show_bug.cgi?id=658850 + ln -sf $_pkgname "$pkgdir/usr/lib/$_pkgname/$_pkgname-bin" +} diff --git a/libre/iceweasel-libre/iceweasel-install-dir.patch b/libre/iceweasel-libre/iceweasel-install-dir.patch new file mode 100644 index 000000000..f80a3eca9 --- /dev/null +++ b/libre/iceweasel-libre/iceweasel-install-dir.patch @@ -0,0 +1,28 @@ +diff -Nur iceweasel-9.0.1.orig/config/autoconf.mk.in iceweasel-9.0.1/config/autoconf.mk.in +--- iceweasel-9.0.1.orig/config/autoconf.mk.in 2011-12-31 17:07:52.000000000 -0500 ++++ iceweasel-9.0.1/config/autoconf.mk.in 2011-12-31 17:11:18.000000000 -0500 +@@ -68,8 +68,8 @@ + mandir = @mandir@ + idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_BASE_VERSION) + +-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_BASE_VERSION) +-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_BASE_VERSION) ++installdir = $(libdir)/$(MOZ_APP_NAME) ++sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel + + DIST = $(DEPTH)/dist + LIBXUL_SDK = @LIBXUL_SDK@ +diff -Nur iceweasel-9.0.1.orig/js/src/config/autoconf.mk.in iceweasel-9.0.1/js/src/config/autoconf.mk.in +--- iceweasel-9.0.1.orig/js/src/config/autoconf.mk.in 2011-12-20 18:28:21.000000000 -0500 ++++ iceweasel-9.0.1/js/src/config/autoconf.mk.in 2011-12-31 17:11:43.000000000 -0500 +@@ -60,8 +60,8 @@ + datadir = @datadir@ + mandir = @mandir@ + +-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) +-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION) ++installdir = $(libdir)/$(MOZ_APP_NAME) ++sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel + + TOP_DIST = @TOP_DIST@ + ifneq (,$(filter /%,$(TOP_DIST))) diff --git a/libre/iceweasel-libre/iceweasel.install b/libre/iceweasel-libre/iceweasel.install new file mode 100644 index 000000000..c1fe8284a --- /dev/null +++ b/libre/iceweasel-libre/iceweasel.install @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + diff --git a/libre/iceweasel-libre/libre.patch b/libre/iceweasel-libre/libre.patch new file mode 100644 index 000000000..c1bb0a8c7 --- /dev/null +++ b/libre/iceweasel-libre/libre.patch @@ -0,0 +1,242 @@ +diff -urN iceweasel-9.0.1.orig/browser/app/profile/firefox.js iceweasel-9.0.1/browser/app/profile/firefox.js +--- mozilla-build/browser/app/profile/firefox.js.orig 2012-03-20 01:04:55.890545738 -0300 ++++ mozilla-build/browser/app/profile/firefox.js 2012-03-20 01:05:03.330545430 -0300 +@@ -64,11 +64,11 @@ + // Preferences for AMO integration + pref("extensions.getAddons.cache.enabled", true); + pref("extensions.getAddons.maxResults", 15); +-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%"); +-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%"); +-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%"); +-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox"); +-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%"); +++pref("extensions.getAddons.get.url", ""); +++pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.search.url", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.webservice.discoverURL", "http://www.gnu.org/s/gnuzilla/addons.html"); + + // Blocklist preferences + pref("extensions.blocklist.enabled", true); +@@ -80,7 +80,7 @@ + pref("extensions.autoDisableScopes", 15); + + // Dictionary download preference +-pref("browser.dictionaries.download.url", "https://addons.mozilla.org/%LOCALE%/firefox/dictionaries/"); ++pref("browser.dictionaries.download.url", ""); + + // The minimum delay in seconds for the timer to fire. + // default=2 minutes +@@ -200,7 +200,7 @@ + pref("extensions.update.interval", 86400); // Check for updates to Extensions and + // Themes every day + // Non-symmetric (not shared by extensions) extension-specific [update] preferences +-pref("extensions.getMoreThemesURL", "https://addons.mozilla.org/%LOCALE%/firefox/getpersonas"); ++pref("extensions.getMoreThemesURL", "http://www.gnu.org/software/gnuzilla/addons.html#themes"); + pref("extensions.dss.enabled", false); // Dynamic Skin Switching + pref("extensions.dss.switchPending", false); // Non-dynamic switch pending after next + // restart. +@@ -234,7 +234,7 @@ + // 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session + // The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore + pref("browser.startup.page", 1); +-pref("browser.startup.homepage", "chrome://branding/locale/browserconfig.properties"); ++pref("browser.startup.homepage", "about:home"); + + // This url, if changed, MUST continue to point to an https url. Pulling arbitrary content to inject into + // this page over http opens us up to a man-in-the-middle attack that we'd rather not face. If you are a downstream +@@ -324,7 +324,7 @@ + pref("browser.download.manager.resumeOnWakeDelay", 10000); + + // search engines URL +-pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/firefox/search-engines/"); ++pref("browser.search.searchEnginesURL", "http://www.gnu.org/software/gnuzilla/addons.html"); + + // pointer to the default engine name + pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties"); +@@ -563,7 +563,7 @@ + pref("accessibility.typeaheadfind.flashBar", 1); + + // plugin finder service url +-pref("pfs.datasource.url", "https://pfs.mozilla.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%"); ++pref("pfs.datasource.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%&appID=%APP_ID%&appVersion=%APP_VERSION%&clientOS=%CLIENT_OS%&chromeLocale=%CHROME_LOCALE%&appRelease=%APP_RELEASE%"); + + // by default we show an infobar message when pages require plugins the user has not installed, or are outdated + pref("plugins.hide_infobar_for_missing_plugin", false); +diff -urN iceweasel-9.0.1.orig/browser/base/content/syncSetup.js iceweasel-9.0.1/browser/base/content/syncSetup.js +--- iceweasel-9.0.1.orig/browser/base/content/syncSetup.js 2011-12-16 20:29:12.000000000 +0000 ++++ iceweasel-9.0.1/browser/base/content/syncSetup.js 2011-12-21 10:05:15.888062669 +0000 +@@ -59,7 +59,7 @@ + // Broader than we'd like, but after this changed from api-secure.recaptcha.net + // we had no choice. At least we only do this for the duration of setup. + // See discussion in Bugs 508112 and 653307. +-const RECAPTCHA_DOMAIN = "https://www.google.com"; ++const RECAPTCHA_DOMAIN = "https://www.duckduckgo.com"; + + Cu.import("resource://services-sync/main.js"); + Cu.import("resource://gre/modules/XPCOMUtils.jsm"); +diff -urN iceweasel-9.0.1.orig/browser/locales/en-US/chrome/browser-region/region.properties iceweasel-9.0.1/browser/locales/en-US/chrome/browser-region/region.properties +--- iceweasel-9.0.1.orig/browser/locales/en-US/chrome/browser-region/region.properties 2011-12-16 20:29:13.000000000 +0000 ++++ iceweasel-9.0.1/browser/locales/en-US/chrome/browser-region/region.properties 2011-12-21 09:55:31.032062468 +0000 +@@ -1,8 +1,8 @@ + # Default search engine +-browser.search.defaultenginename=Google ++browser.search.defaultenginename=DuckDuckGo + + # Search engine order (order displayed in the search bar dropdown)s +-browser.search.order.1=Google ++browser.search.order.1=DuckDuckGo + browser.search.order.2=Yahoo + browser.search.order.3=Bing + +@@ -17,7 +17,7 @@ + # TRANSLATION NOTE: {moz:domain} and {searchTerms} are placeholders for the site + # to be searched and the user's search query. Place them in the appropriate location + # for your locale's URL but do not translate them. +-browser.search.siteSearchURL=http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&q=site%3A{moz:domain}+{searchTerms} ++browser.search.siteSearchURL=http://duckduck.go.com/?q={searchTerms} + + # increment this number when anything gets changed in the list below. This will + # cause Firefox to re-read these prefs and inject any new handlers into the +diff -urN iceweasel-9.0.1.orig/build/pgo/blueprint/elements.html iceweasel-9.0.1/build/pgo/blueprint/elements.html +--- iceweasel-9.0.1.orig/build/pgo/blueprint/elements.html 2011-12-16 20:29:13.000000000 +0000 ++++ iceweasel-9.0.1/build/pgo/blueprint/elements.html 2011-12-21 10:04:42.988062659 +0000 +@@ -143,7 +143,7 @@ + </p> + <p> + <a><a> anchor</a><br> +- <a href="http://www.google.com"><a> a + href</a> ++ <a href="http://www.duckduckgo.com"><a> a + href</a> + </p> + <p> + <abbr title="extended abbr text should show when mouse over"><abbr> abbr - extended text when mouseover.</abbr><br> +diff -urN iceweasel-9.0.1.orig/dom/ipc/test.xul iceweasel-9.0.1/dom/ipc/test.xul +--- iceweasel-9.0.1.orig/dom/ipc/test.xul 2011-12-16 20:29:17.000000000 +0000 ++++ iceweasel-9.0.1/dom/ipc/test.xul 2011-12-21 10:03:33.224062635 +0000 +@@ -301,6 +301,6 @@ + oncommand="document.getElementById('page').QueryInterface(Components.interfaces.nsIFrameLoaderOwner).frameLoader.delayRemoteDialogs = this.checked;"/> + </toolbar> + +- <browser type="content" src="http://www.google.com/" flex="1" id="page" remote="true"/> ++ <browser type="content" src="http://www.duckduckgo.com/" flex="1" id="page" remote="true"/> + <label id="messageLog" value="" crop="center"/> + </window> +diff -urN iceweasel-9.0.1.orig/layout/ipc/test-ipcbrowser.xul iceweasel-9.0.1/layout/ipc/test-ipcbrowser.xul +--- iceweasel-9.0.1.orig/layout/ipc/test-ipcbrowser.xul 2011-12-16 20:29:28.000000000 +0000 ++++ iceweasel-9.0.1/layout/ipc/test-ipcbrowser.xul 2011-12-21 10:03:06.408062626 +0000 +@@ -69,6 +69,6 @@ + label="setViewportScale"/> + </toolbar> + +- <browser type="content" src="http://www.google.com/" flex="1" id="content" ++ <browser type="content" src="http://www.duckduckgo.com/" flex="1" id="content" + remote="true"/> + </window> +diff -urN iceweasel-9.0.1.orig/mobile/xul/app/mobile.js iceweasel-9.0.1/mobile/xul/app/mobile.js +--- mozilla-build/mobile/xul/app/mobile.js.orig 2012-03-20 01:02:30.300551777 -0300 ++++ mozilla-build/mobile/xul/app/mobile.js 2012-03-20 01:02:40.820551342 -0300 +@@ -218,13 +218,12 @@ + /* preferences for the Get Add-ons pane */ + pref("extensions.getAddons.cache.enabled", true); + pref("extensions.getAddons.maxResults", 15); +-pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/recommended/"); +-pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/list/featured/all/%MAX_RESULTS%/%OS%/%VERSION%"); +-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/search?q=%TERMS%"); +-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%"); +-pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/%LOCALE%/mobile/"); +-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/guid:%IDS%?src=mobile&appOS=%OS%&appVersion=%VERSION%"); +-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/guid:%IDS%?src=mobile&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%"); +++pref("extensions.getAddons.recommended.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.recommended.url", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.search.url", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.browseAddons", "http://www.gnu.org/s/gnuzilla/addons.html"); +++pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html"); + + /* preference for the locale picker */ + pref("extensions.getLocales.get.url", ""); +@@ -239,7 +240,7 @@ + pref("privacy.popups.showBrowserMessage", true); + + pref("keyword.enabled", true); +-pref("keyword.URL", "http://www.google.com/m?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q="); ++pref("keyword.URL", "http://duckduckgo.com/?q="); + + pref("accessibility.typeaheadfind", false); + pref("accessibility.typeaheadfind.timeout", 5000); +diff -urN iceweasel-9.0.1.orig/mobile/locales/en-US/chrome/region.properties iceweasel-9.0.1/mobile/locales/en-US/chrome/region.properties +--- iceweasel-9.0.1.orig/mobile/locales/en-US/chrome/region.properties 2011-12-16 20:29:36.000000000 +0000 ++++ iceweasel-9.0.1/mobile/locales/en-US/chrome/region.properties 2011-12-21 09:54:17.560062443 +0000 +@@ -1,8 +1,8 @@ + # Default search engine +-browser.search.defaultenginename=Google ++browser.search.defaultenginename=DuckDuckGo + + # Search engine order (order displayed in the search bar dropdown)s +-browser.search.order.1=Google ++browser.search.order.1=DuckDuckGo + + # This is the default set of web based feed handlers shown in the reader + # selection UI +@@ -12,7 +12,7 @@ + browser.contentHandlers.types.1.uri=http://fusion.google.com/add?feedurl=%s + + # Keyword URL (for location bar searches) +-keyword.URL=http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= ++keyword.URL=http://duckduckgo.com/?q= + + # increment this number when anything gets changed in the list below. This will + # cause Firefox to re-read these prefs and inject any new handlers into the +diff -urN iceweasel-9.0.1.orig/modules/libpref/src/init/all.js iceweasel-9.0.1/modules/libpref/src/init/all.js +--- iceweasel-9.0.1.orig/modules/libpref/src/init/all.js 2011-12-21 09:07:20.000000000 +0000 ++++ iceweasel-9.0.1/modules/libpref/src/init/all.js 2011-12-21 10:09:17.136062754 +0000 +@@ -47,7 +47,7 @@ + // SYNTAX HINTS: dashes are delimiters. Use underscores instead. + // The first character after a period must be alphabetic. + +-pref("keyword.URL", "http://www.google.com/search?ie=UTF-8&oe=utf-8&q="); ++pref("keyword.URL", "http://duckduckgo.com/?q="); + pref("keyword.enabled", false); + pref("general.useragent.locale", "chrome://global/locale/intl.properties"); + pref("general.useragent.compatMode.firefox", false); +diff -urN iceweasel-9.0.1.orig/toolkit/locales/en-US/chrome/global-region/region.properties iceweasel-9.0.1/toolkit/locales/en-US/chrome/global-region/region.properties +--- iceweasel-9.0.1.orig/toolkit/locales/en-US/chrome/global-region/region.properties 2011-12-16 20:29:43.000000000 +0000 ++++ iceweasel-9.0.1/toolkit/locales/en-US/chrome/global-region/region.properties 2011-12-21 12:51:31.188066096 +0000 +@@ -4,10 +4,10 @@ + pluginStartupMessage=Starting Plugin for type + + # plug-ins URLs +-more_plugins_label=mozilla.org +-more_plugins_url=https://pfs.mozilla.org/plugins/ +-pluginupdates_label=mozilla.com/plugincheck +-pluginupdates_url=http://www.mozilla.com/plugincheck/ +-plugindoc_label=plugindoc.mozdev.org +-plugindoc_url=http://plugindoc.mozdev.org/ ++more_plugins_label=gnuzilla.gnu.org ++more_plugins_url=http://www.gnu.org/s/gnuzilla/addons.html ++pluginupdates_label=gnuzilla.gnu.org ++pluginupdates_url=http://www.gnu.org/s/gnuzilla/addons.html ++plugindoc_label=gnuzilla.gnu.org ++plugindoc_url=http://www.gnu.org/s/gnuzilla/addons.html + +--- iceweasel-10.0.orig/browser/locales/generic/profile/bookmarks.html.in 2012-02-07 15:40:34.279657460 -0300 ++++ iceweasel-10.0/browser/locales/generic/profile/bookmarks.html.in 2012-02-07 15:40:19.226324812 -0300 +@@ -11,13 +11,13 @@ + <DT><H3 PERSONAL_TOOLBAR_FOLDER="true" ID="rdf:#$FvPhC3">@bookmarks_toolbarfolder@</H3> + <DD>@bookmarks_toolbarfolder_description@ + <DL><p> +- <DT><A HREF="http://www.mozilla.com/@AB_CD@/firefox/central/" ID="rdf:#$GvPhC3">@getting_started@</A> ++ <DT><A HREF="http://www.connochaetos.org/">ConnochaetOS</A> ++ <DT><A HREF="https://parabolagnulinux.org/">Parabola</A> + </DL><p> + <DT><H3 ID="rdf:#$ZvPhC3">@firefox_heading@</H3> + <DL><p> +- <DT><A HREF="http://www.mozilla.com/@AB_CD@/firefox/help/" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==" ID="rdf:#$22iCK1">@firefox_help@</A> +- <DT><A HREF="http://www.mozilla.com/@AB_CD@/firefox/customize/" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==" ID="rdf:#$32iCK1">@firefox_customize@</A> +- <DT><A HREF="http://www.mozilla.com/@AB_CD@/firefox/community/" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==" ID="rdf:#$42iCK1">@firefox_community@</A> +- <DT><A HREF="http://www.mozilla.com/@AB_CD@/about/" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==" ID="rdf:#$52iCK1">@firefox_about@</A> ++ <DT><A HREF="http://www.fsf.org/">Free Software Foundation</A> ++ <DT><A HREF="http://libreplanet.org/">LibrePlanet</A> ++ <DT><a href="http://www.gnu.org/software/gnuzilla/addons.html">Free addons</A> + </DL><p> + </DL><p> diff --git a/libre/iceweasel-libre/mozconfig b/libre/iceweasel-libre/mozconfig new file mode 100644 index 000000000..e79896323 --- /dev/null +++ b/libre/iceweasel-libre/mozconfig @@ -0,0 +1,55 @@ +. $topsrcdir/browser/config/mozconfig + +ac_add_options --prefix=/usr +ac_add_options --libdir=/usr/lib + +# System libraries +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --with-system-jpeg +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2 +ac_add_options --with-system-png +ac_add_options --with-system-libevent +ac_add_options --with-system-libvpx +ac_add_options --enable-system-hunspell +ac_add_options --enable-system-sqlite +ac_add_options --enable-system-ffi +ac_add_options --enable-system-cairo +ac_add_options --enable-system-pixman +ac_add_options --with-pthreads + +# Features +ac_add_options --enable-startup-notification +ac_add_options --enable-gio + +ac_add_options --disable-gnomevfs +ac_add_options --disable-crashreporter +ac_add_options --disable-updater +ac_add_options --disable-tests +ac_add_options --disable-mochitest +ac_add_options --disable-installer + +# Optimization +ac_add_options --enable-optimize + +export MOZILLA_OFFICIAL=1 +mk_add_options MOZILLA_OFFICIAL=1 +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/moz-objdir + +# Iceweasel +ac_add_options --disable-official-branding +ac_add_options --with-branding=debian/branding + +# ConnochaetOS +#ac_add_options --build=i586-pc-linux-gnu +#ac_add_options --host=i586-pc-linux-gnu +#export USE_SHORT_LIBNAME=1 +#mk_add_options USE_SHORT_LIBNAME=1 + +# Parabola +ac_add_options --disable-safe-browsing +export BUILD_OFFICIAL=1 +mk_add_options BUILD_OFFICIAL=1 + +# Build-generated diff --git a/libre/iceweasel-libre/mozconfig.pgo b/libre/iceweasel-libre/mozconfig.pgo new file mode 100644 index 000000000..b0c249ebf --- /dev/null +++ b/libre/iceweasel-libre/mozconfig.pgo @@ -0,0 +1,4 @@ +# PGO +ac_add_options --enable-profile-guided-optimization +mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py' +mk_add_options PYTHONPATH='$(OBJDIR)/_profile/pgo' diff --git a/libre/icecat/region.properties b/libre/iceweasel-libre/region.properties index 2e980987e..2e980987e 100644 --- a/libre/icecat/region.properties +++ b/libre/iceweasel-libre/region.properties diff --git a/libre/iceweasel-libre/vendor.js b/libre/iceweasel-libre/vendor.js new file mode 100644 index 000000000..d8d606bc1 --- /dev/null +++ b/libre/iceweasel-libre/vendor.js @@ -0,0 +1,9 @@ +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default browser checking. +pref("browser.shell.checkDefaultBrowser", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); diff --git a/libre/iceweasel-libre/xulrunner-copy-stub.patch b/libre/iceweasel-libre/xulrunner-copy-stub.patch new file mode 100644 index 000000000..e3b8e9376 --- /dev/null +++ b/libre/iceweasel-libre/xulrunner-copy-stub.patch @@ -0,0 +1,11 @@ +--- iceweasel-9.0.1/browser/app/Makefile.in~ 2011-12-25 16:19:29.000000000 -0500 ++++ iceweasel-9.0.1/browser/app/Makefile.in 2011-12-25 16:19:55.000000000 -0500 +@@ -257,7 +257,7 @@ + else + ifdef LIBXUL_SDK + libs:: +- cp $(LIBXUL_DIST)/bin/$(XULRUNNER_STUB_NAME)$(BIN_SUFFIX) $(DIST)/bin/firefox$(BIN_SUFFIX) ++ cp $(LIBXUL_DIST)/bin/$(XULRUNNER_STUB_NAME)$(BIN_SUFFIX) $(DIST)/bin/iceweasel$(BIN_SUFFIX) + endif + endif + diff --git a/libre/mozilla-searchplugins/PKGBUILD b/libre/mozilla-searchplugins/PKGBUILD new file mode 100644 index 000000000..c86c9514a --- /dev/null +++ b/libre/mozilla-searchplugins/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net +# Contributor: Figue <ffigue at gmail> +# Contributor: Figue <ffigue at gmail> +# Contributor (Parabola): fauno <fauno@kiwwwi.com.ar> +# Contributor (Parabola): vando <facundo@esdebian.org> +# Thank you very much to the older contributors: +# Contributor: evr <evanroman at gmail> +# Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com> + +pkgname=mozilla-searchplugins +pkgver=1.0 +pkgrel=1 +pkgdesc="System-wide OpenSearch plugins common for Mozilla based browsers." +arch=('any') +license=('MPL' 'GPL' 'LGPL') +url="https://parabolagnulinux.org/" +source=( + duck-duck-go-lite.xml + duck-duck-go-ssl.xml + internet-archive.xml + jamendo-en.xml + logless-search.xml + scroogle-ssl-english.xml + wikipedia.xml + yacy.xml +) + +package() { + install -m755 -d "${pkgdir}/usr/lib/mozilla/searchplugins" + install -m644 "${srcdir}"/*.xml "${pkgdir}/usr/lib/mozilla/searchplugins" +} + +md5sums=('e1bda0854de7d764f7401c81bb82b5ef' + 'c5f00b6b24222aacd5a749d1f59c4d24' + '462c68585461f8cdc23c93c46f6ee4cf' + '2d492295c4308f9bba9ece28d8b3af2d' + '937ac0e5392b060d93bd33e761fbfa51' + 'cf97082e77e3ef5f1bd74b1db9329965' + 'c35f4971feff8387e0570d7a165eb6fa' + '24528ca3f7f1e1a0ba735231aa3ac1de') diff --git a/libre/icecat/duck-duck-go-lite.xml b/libre/mozilla-searchplugins/duck-duck-go-lite.xml index 3142d3410..3142d3410 100644 --- a/libre/icecat/duck-duck-go-lite.xml +++ b/libre/mozilla-searchplugins/duck-duck-go-lite.xml diff --git a/libre/icecat/duck-duck-go-ssl.xml b/libre/mozilla-searchplugins/duck-duck-go-ssl.xml index 4fb1391ab..4fb1391ab 100644 --- a/libre/icecat/duck-duck-go-ssl.xml +++ b/libre/mozilla-searchplugins/duck-duck-go-ssl.xml diff --git a/libre/icecat/internet-archive.xml b/libre/mozilla-searchplugins/internet-archive.xml index 1556a2d8c..1556a2d8c 100644 --- a/libre/icecat/internet-archive.xml +++ b/libre/mozilla-searchplugins/internet-archive.xml diff --git a/libre/icecat/jamendo-en.xml b/libre/mozilla-searchplugins/jamendo-en.xml index 91d6df6e4..91d6df6e4 100644 --- a/libre/icecat/jamendo-en.xml +++ b/libre/mozilla-searchplugins/jamendo-en.xml diff --git a/libre/icecat/logless-search.xml b/libre/mozilla-searchplugins/logless-search.xml index 1538d1ef0..1538d1ef0 100644 --- a/libre/icecat/logless-search.xml +++ b/libre/mozilla-searchplugins/logless-search.xml diff --git a/libre/icecat/scroogle-ssl-english.xml b/libre/mozilla-searchplugins/scroogle-ssl-english.xml index f817dce40..f817dce40 100644 --- a/libre/icecat/scroogle-ssl-english.xml +++ b/libre/mozilla-searchplugins/scroogle-ssl-english.xml diff --git a/libre/mozilla-searchplugins/wikipedia.xml b/libre/mozilla-searchplugins/wikipedia.xml new file mode 100644 index 000000000..36b8ed494 --- /dev/null +++ b/libre/mozilla-searchplugins/wikipedia.xml @@ -0,0 +1,15 @@ +<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"> +<ShortName>Wikipedia (en)</ShortName> +<Description>Wikipedia, the free encyclopedia</Description> +<InputEncoding>UTF-8</InputEncoding> +<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9%2FAAZGBkAmJiYANjZ2ABXWFcAent6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB%2FWvXoYiIiIfEZfWBSIiIEGi%2FfoqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF%2BiDe0GoRa7D6GPbjcu1yIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</Image> +<Url type="application/x-suggestions+json" method="GET" template="http://en.wikipedia.org/w/api.php"> + <Param name="action" value="opensearch"/> + <Param name="search" value="{searchTerms}"/> +</Url> +<Url type="text/html" method="GET" template="http://en.wikipedia.org/wiki/Special:Search"> + <Param name="search" value="{searchTerms}"/> + <Param name="sourceid" value="Mozilla-search"/> +</Url> +<SearchForm>http://en.wikipedia.org/wiki/Special:Search</SearchForm> +</SearchPlugin> diff --git a/libre/icecat/yacy.xml b/libre/mozilla-searchplugins/yacy.xml index 61201ad20..61201ad20 100644 --- a/libre/icecat/yacy.xml +++ b/libre/mozilla-searchplugins/yacy.xml |