~ubuntu-branches/ubuntu/karmic/seamonkey/karmic

« back to all changes in this revision

Viewing changes to debian/about_debian.js

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin, Fabien Tassin
  • Date: 2007-12-02 19:27:42 UTC
  • Revision ID: james.westby@ubuntu.com-20071202192742-llg1mzf5cg021i7y
Tags: 1.1.6+nobinonly-0ubuntu1
[ Fabien Tassin ]
* Remove unused patches:
  - drop debian/patches/20_visibility.dpatch,
    debian/patches/28_ppc64_build.dpatch,
    debian/patches/38_unsupported_arch_build.dpatch,
    debian/patches/80_calendar_locale.dpatch,
    debian/patches/82_prefs_ubuntu.dpatch
* Migrate from dpatch to quilt
  - update debian/control: build-depends on quilt
  - debian/rules: update patching rules
  - drop debian/patches/80_config.dpatch: done by quilt
  - rename and update debian/patches/00list => debian/patches/series
  - rename and update debian/patches/*.dpatch => debian/patches/*.patch
* Fix unclean distclean leaving dist/ behind
  - update debian/patches/60_distclean.patch
* Migrate to CDBS
  - update debian/rules and debian/control
* Revert the Iceape unbranding to Seamonkey
  - drop debian/patches/80_app_name.patch and update
    debian/patches/series
  - update debian/patches/82_prefs.patch and
    debian/patches/99_configure.patch
  - drop iceape's icons:
    - update debian/rules
    - drop debian/extras/iceape* and debian/extras/Throbber*
    - drop debian/extras/license.txt
    - update wording
    - update debian/copyright  
  - rename packages to seamonkey-*
    - update debian/control
    - rename debian/iceape-*.{dirs,install,links,postinst,postrm,preinst}
      to debian/seamonkey-*.{dirs,install,links,postinst,postrm,preinst}
    - rename debian/iceape-*.{menu,mime,manpages}
      to debian/seamonkey-*.{menu,mime,manpages}
  - rename and update debian/menu_dir/iceape-*.desktop to
    debian/menu_dir/seamonkey-*.desktop
  - rename and update debian/{iceape.cfg,iceaperc,iceape-runner} to
    debian/{seamonkey.cfg,seamonkeyrc,seamonkey-runner}
  - update debian/about_debian.js, debian/base.js and debian/homepagereset.js
* Drop leftovers from calendar
  - drop debian/iceape-calendar.*
  - drop debian/extras/calendar.svg
  - drop debian/menu_dir/iceape-calendar.desktop
  - update debian/control
* Clean-up
  - drop debian/README.source (no longer useful)
  - drop debian/mozconfig (leftover from previous commit)
* Drop debian/patches/81_free_art_improvements.patch (was part of
  the unbranding)
  - update debian/patches/series
* Make seamonkey build at last
  - fix FTBFS with new libnss (since bz399589 landed)
    - add debian/patches/11_bz399589_fix_missing_symbol_with_new_nss.patch
    - update debian/patches/series
  - fix another FTBFS with libnss (caused by bad linking order with libcrmf)
    - add debian/patches/12_fix_ftbfs_with_nss.patch
    - update debian/patches/99_configure.patch
    - update debian/patches/series
  - fix bad syntax for --enable-extensions
    - update debian/rules
  - fix FTBFS with dh_install needing DEB_DH_INSTALL_SOURCEDIR
    - update debian/rules
  - fix install of additionnal searchplugins
    - update debian/rules
  - don't install hicolor icons (we don't have any)
    - update debian/seamonkey-browser.install
* Install libnssckbi.so in seamonkey-browser and drop other libnss links
  - update debian/rules and debian/seamonkey-browser.links
* Fix broken chrome.d files and clean-up install rules
  - update debian/rules
  - update debian/seamonkey-browser.{install,dirs}
  - update debian/seamonkey-chatzilla.install
  - update debian/seamonkey-dom-inspector.install
  - update debian/seamonkey-mailnews.install
* Update bug link and README to point Seamonkey toward Ubuntu 
  - update debian/about_debian.js
  - debian/README.Debian
* Fix FTBFS on amd64 (don't depend on arch indep rules for binary
  packages
  - update debian/rules
  - update debian/seamonkey-browser.install
  - update debian/seamonkey-chatzilla.install
  - update debian/seamonkey-dom-inspector.install
  - update debian/seamonkey-mailnews.install
* Update to upstream release 1.1.6 (from 1.1.4)
  - update debian/control
  - Security fixes provided by 1.1.5:
    MFSA 2007-36, MFSA 2007-35, MFSA 2007-34, MFSA 2007-33, MFSA 2007-32,
    MFSA 2007-31, MFSA 2007-30, MFSA 2007-29 and MFSA 2007-28.
* Update diverged patches:
  - update debian/patches/35_theme_switch.patch
  - debian/patches/38_kbsd.patch
  - debian/patches/68_mips_performance.patch
  - debian/patches/99_configure.patch
* Update Maintainer to Ubuntu Mozilla Team
  - update debian/control
* Conflicts/Replaces iceape
  - update debian/control
* Fix nss links not installed where CDBS would have done it
  - update debian/rules
* Remove bin-only files from upstream tarball using debian/remove.binonly.sh.
  Add a nobinonly target in debian/rules to clean up the current tarball,
  preserve logs in mozilla/REMOVED+nobinonly.txt.
  - rename and update debian/remove.nonfree => debian/remove.binonly.sh
  - update debian/rules
* Fix desktop files to make desktop-file-validate happy
  - update debian/menu_dir/*.desktop
* Disable all desktop files except seamonkey.desktop, using the icon
  from branding (instead of the old style Mozilla one)
  - update debian/menu_dir/*.desktop
  - update debian/rules
* Add dummy packages for migration of iceape and mozilla packages:
  mozilla, mozilla-browser, mozilla-dev, mozilla-mailnews, mozilla-chatzilla,
  mozilla-psm, mozilla-dom-inspector, mozilla-js-debugger, mozilla-calendar,
  iceape, iceape-browser, iceape-gnome-support, iceape-dev, iceape-dbg,
  iceape-mailnews, iceape-chatzilla, iceape-calendar and iceape-dom-inspector
  - update debian/control
* Merge DSP settings from previously installed /etc/iceape/iceaperc or
  /etc/mozilla/mozillarc into /etc/seamonkey/seamonkeyrc
  - update debian/seamonkey-browser.preinst
* Remove leftovers from iceape packages
  - add debian/iceape-browser.postrm
  - add debian/iceape-browser.preinst
* Re-install /etc/seamonkey files previously disabled
  - update debian/seamonkey-browser.install
* Add missing 'upgrade' target to preinst script
  - update debian/iceape-browser.preinst
* Exclude CVS stuff when doing nobinonly tarballs
  - update debian/rules
* Fix a recent FTBFS in hardy where gtk+ is no longer bringing
  some X libs in build-deps
  - add debian/patches/13_bz344818_att264996.patch
  - update debian/patches/99_configure.patch
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 *   Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
3
 *
 
4
 * The contents of this file are subject to the Mozilla Public License Version
 
5
 * 1.1 (the "License"); you may not use this file except in compliance with
 
6
 * the License. You may obtain a copy of the License at
 
7
 * http://www.mozilla.org/MPL/
 
8
 * 
 
9
 * Software distributed under the License is distributed on an "AS IS" basis,
 
10
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
11
 * for the specific language governing rights and limitations under the
 
12
 * License.
 
13
 *
 
14
 * The Original Code is AboutDebian.
 
15
 *
 
16
 * The Initial Developer of the Original Code is
 
17
 * Mike Hommey.
 
18
 * Portions created by the Initial Developer are Copyright (C) 2007
 
19
 * the Initial Developer. All Rights Reserved.
 
20
 *
 
21
 * Contributor(s):
 
22
 *
 
23
 * Alternatively, the contents of this file may be used under the terms of
 
24
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
25
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
26
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
27
 * of those above. If you wish to allow use of your version of this file only
 
28
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
29
 * use your version of this file under the terms of the MPL, indicate your
 
30
 * decision by deleting the provisions above and replace them with the notice
 
31
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
32
 * the provisions above, a recipient may use your version of this file under
 
33
 * the terms of any one of the MPL, the GPL or the LGPL.
 
34
 * 
 
35
 * ***** END LICENSE BLOCK ***** */
 
36
 
 
37
/* Used Javascript XPCOM component generator from
 
38
   http://ted.mielczarek.org/code/mozilla/jscomponentwiz/ to get a skeleton */
 
39
 
 
40
const nsISupports = Components.interfaces.nsISupports;
 
41
const nsIAboutModule = Components.interfaces.nsIAboutModule;
 
42
 
 
43
// You can change these if you like
 
44
const CLASS_ID = Components.ID("1359a506-95b6-4fec-9f03-3d81ce131fc0");
 
45
const CLASS_NAME = "about: handler for Debian and package related information";
 
46
const CONTRACT_ID_PREFIX = "@mozilla.org/network/protocol/about;1?what=";
 
47
 
 
48
// This is your constructor.
 
49
// You can do stuff here.
 
50
function AboutDebian() {
 
51
  // you can cheat and use this
 
52
  // while testing without
 
53
  // writing your own interface
 
54
  this.wrappedJSObject = this;
 
55
}
 
56
 
 
57
// This is the implementation of your component.
 
58
AboutDebian.prototype = {
 
59
  // for nsISupports
 
60
  QueryInterface: function(aIID)
 
61
  {
 
62
    // add any other interfaces you support here
 
63
    if (!aIID.equals(nsISupports) && !aIID.equals(nsIAboutModule))
 
64
        throw Components.results.NS_ERROR_NO_INTERFACE;
 
65
    return this;
 
66
  },
 
67
 
 
68
  newChannel: function(uri)
 
69
  {
 
70
    var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService();
 
71
    ioService = ioService.QueryInterface(Components.interfaces.nsIIOService);
 
72
    var request = uri.path.toLowerCase();
 
73
    var redirect;
 
74
    if (request == "readme.debian") {
 
75
      redirect = "file:///usr/share/doc/seamonkey-browser/README.Debian";
 
76
    } else if (request == "bugs") {
 
77
      redirect = "https://bugs.launchpad.net/seamonkey/";
 
78
    } else {
 
79
      redirect = "http://debian.org/";
 
80
    }
 
81
    var uri = ioService.newURI(redirect, null, null);
 
82
    return ioService.newChannelFromURI(uri);
 
83
  }
 
84
}
 
85
 
 
86
//=================================================
 
87
// Note: You probably don't want to edit anything
 
88
// below this unless you know what you're doing.
 
89
//
 
90
// Factory
 
91
var AboutDebianFactory = {
 
92
  createInstance: function (aOuter, aIID)
 
93
  {
 
94
    if (aOuter != null)
 
95
      throw Components.results.NS_ERROR_NO_AGGREGATION;
 
96
    return (new AboutDebian()).QueryInterface(aIID);
 
97
  }
 
98
};
 
99
 
 
100
// Module
 
101
var AboutDebianModule = {
 
102
  registerSelf: function(aCompMgr, aFileSpec, aLocation, aType)
 
103
  {
 
104
    aCompMgr = aCompMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);
 
105
    aCompMgr.registerFactoryLocation(CLASS_ID, CLASS_NAME, CONTRACT_ID_PREFIX + "readme.debian", aFileSpec, aLocation, aType);
 
106
    aCompMgr.registerFactoryLocation(CLASS_ID, CLASS_NAME, CONTRACT_ID_PREFIX + "bugs", aFileSpec, aLocation, aType);
 
107
    aCompMgr.registerFactoryLocation(CLASS_ID, CLASS_NAME, CONTRACT_ID_PREFIX + "debian", aFileSpec, aLocation, aType);
 
108
  },
 
109
 
 
110
  unregisterSelf: function(aCompMgr, aLocation, aType)
 
111
  {
 
112
    aCompMgr = aCompMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);
 
113
    aCompMgr.unregisterFactoryLocation(CLASS_ID_PREFIX + "readme.debian", aLocation);        
 
114
    aCompMgr.unregisterFactoryLocation(CLASS_ID_PREFIX + "bugs", aLocation);
 
115
    aCompMgr.unregisterFactoryLocation(CLASS_ID_PREFIX + "debian", aLocation);        
 
116
  },
 
117
  
 
118
  getClassObject: function(aCompMgr, aCID, aIID)
 
119
  {
 
120
    if (!aIID.equals(Components.interfaces.nsIFactory))
 
121
      throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
 
122
 
 
123
    if (aCID.equals(CLASS_ID))
 
124
      return AboutDebianFactory;
 
125
 
 
126
    throw Components.results.NS_ERROR_NO_INTERFACE;
 
127
  },
 
128
 
 
129
  canUnload: function(aCompMgr) { return true; }
 
130
};
 
131
 
 
132
//module initialization
 
133
function NSGetModule(aCompMgr, aFileSpec) { return AboutDebianModule; }