Package: firefox-gnome-support
Version: 1.5.dfsg-4
Severity: wishlist
Tags: patch

        Hi,

 It would be nice if the firefox-gnome-support package could register a
 gnome-www-browser alternative as firefox does for www-browser.  This
 would permit the extension of the "sensible-browser" logic to work
 under GNOME too.

 It would also be nice if the firefox-gnome-support package could
 provide a gnome-www-browser virtual package so that application can
 depend on epiphany-browser | gnome-www-browser.

 There was some discussion on the subject in #348775, if you're
 interested on the "why?".

 The attached patch adds these two things, and adds a trailing newline
 to debian/control (no idea why it's missing, seems weird to me).

   Cheers,

-- 
Loïc Minier <[EMAIL PROTECTED]>
Current Earth status:   NOT DESTROYED
--- firefox-1.5.dfsg/debian/control
+++ firefox-1.5.dfsg/debian/control
@@ -31,6 +31,7 @@
 Package: firefox-gnome-support
 Architecture: any
 Depends: ${shlibs:Depends}, firefox (= ${Source-Version})
+Provides: gnome-www-browser
 Description: Support for Gnome in Mozilla Firefox
  This is an extension to Firefox that allows it to use protocol
  handlers from Gnome-VFS, such as smb or sftp, and other Gnome
@@ -67 +68 @@
- package has been installed.
\ No newline at end of file
+ package has been installed.
--- firefox-1.5.dfsg/debian/changelog
+++ firefox-1.5.dfsg/debian/changelog
@@ -1,3 +1,13 @@
+firefox (1.5.dfsg-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Let the firefox-gnome-support package provide gnome-www-browser and handle
+    a gnome-www-browser alternative.
+    [debian/control, debian/firefox-gnome-support.postinst,
+     debian/firefox-gnome-support.prerm]
+
+ -- Loic Minier <[EMAIL PROTECTED]>  Tue, 31 Jan 2006 21:21:52 +0100
+
 firefox (1.5.dfsg-4) unstable; urgency=low
 
   [ Eric Dorland ]
--- firefox-1.5.dfsg.orig/debian/firefox-gnome-support.prerm
+++ firefox-1.5.dfsg/debian/firefox-gnome-support.prerm
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" -o "$1" = "deconfigure" ] ; then
+    update-alternatives --remove gnome-www-browser /usr/bin/firefox
+fi
+
--- firefox-1.5.dfsg.orig/debian/firefox-gnome-support.postinst
+++ firefox-1.5.dfsg/debian/firefox-gnome-support.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
+    update-alternatives --install /usr/bin/gnome-www-browser \
+        gnome-www-browser /usr/bin/firefox 70 \
+        --slave /usr/share/man/man1/gnome-www-browser.1.gz \
+        gnome-www-browser.1.gz /usr/share/man/man1/firefox.1.gz
+fi
+

Reply via email to