Merge commit 'v3.3b2' into diablo-package
authorSteven Luo <steven+maemo@steven676.net>
Sat, 28 Aug 2010 11:51:07 +0000 (04:51 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Sat, 28 Aug 2010 11:51:07 +0000 (04:51 -0700)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/preinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..ebc1ebf
--- /dev/null
@@ -0,0 +1,187 @@
+browser-switchboard (3.3~b1-1) extras-devel; urgency=low
+
+  * New "upstream" development release.
+  * Upstream changes:
+    - add support for Opera Mobile
+    - fall back to the built-in default if the user's configured default
+      browser isn't installed
+    - introduce a command-line config utility; this is mainly intended to give
+      browser vendors a way to set their browser as the default
+    - provide a description for users who don't know what MicroB is; thanks
+      Emanuele Cassioli for pointing out the need
+    - major rewrite of configuration loading/saving code
+  * Cherry-pick addb0ed9... ("Add command-line utility to Makefile install
+    target").
+  * Packaging changes:
+    - Build and install the new command-line config utility.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Sun, 30 May 2010 02:52:31 -0700 
+
+browser-switchboard (3.2-2) extras-devel; urgency=low
+
+  * Cherry-pick ebfd6218... ("Add preliminary support for Opera Mobile").
+  * Update package description to mention Opera Mobile.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Fri, 28 May 2010 01:35:22 -0700 
+
+browser-switchboard (3.2-1) extras-devel; urgency=low
+
+  * New "upstream" stable release.
+  * Upstream changes:
+    - make the "Web" menu entry and /usr/bin/browser open the default browser,
+      and provide a new "MicroB" menu entry and /usr/bin/microb script for
+      launching MicroB; the previous behavior was counterintuitive and
+      difficult to discover
+    - Fremantle: fix launching and closing MicroB on Fremantle; thanks Faheem
+      Pervez and Uwe Kaminski for extensive testing
+    - Fremantle: force the Ovi Store bookmark to open in MicroB, since Ovi
+      Store doesn't load in other browsers; thanks ToJa92 of t.m.o for
+      reporting
+    - add ability to send debug output to syslog and new config setting
+      ("logging") to control where debug output goes; thanks Faheem Pervez for
+      the suggestion
+    - close stdin/stdout/stderr in child processes before the exec(), to make
+      debug output on stdout less noisy
+    - fix some abuses of the D-Bus API in launcher.c:launch_tear()
+    - make sure a running browserd is detected correctly on all devices so that
+      we don't try to launch another one; thanks Faheem Pervez for reporting
+    - ensure that only one browser-switchboard is active at any time
+    - update build system; we now have "diablo" and "fremantle" targets that
+      build binaries for the selected OS release
+    - link binaries with -Wl,--as-needed to eliminate unnecessary dependencies
+  * Packaging changes:
+    - Build with Thumb by default and provide a "nothumb" build option to turn
+      it off, instead of building with Thumb only when requested; the
+      autobuilders aren't requesting Thumb, but we want it by default.
+    - Update debian/rules for the new upstream build system.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Mon, 22 Feb 2010 02:14:19 -0800 
+
+browser-switchboard (3.1-2) extras-devel; urgency=low
+
+  * Drop the dependency on tablet-browser-ui for Diablo until maemo.org
+    Bugzilla #8806 gets fixed; this was preventing 3.1-1 from reaching
+    extras.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Fri, 05 Feb 2010 00:05:27 -0800 
+
+browser-switchboard (3.1-1) extras-devel; urgency=low
+
+  * New "upstream" stable release.
+  * Upstream changes:
+    - add a new, more finger-friendly GUI for Fremantle, based on work by
+      Faheem Pervez (build UI with EXTRA_CPPFLAGS=-DFREMANTLE)
+    - make sure reconfig signal (SIGHUP) doesn't interrupt dispatch of a
+      request when continuous mode is off
+    - disable autocapitalization and predictive text features for the
+      other_browser_cmd entry in the UI
+    - add support for EXTRA_CPPFLAGS in Makefiles, to allow package builds to
+      pass feature/configuration defines; add EXTRA_LDFLAGS too, just in case
+
+ -- Steven Luo <steven+maemo@steven676.net>  Fri, 15 Jan 2010 01:54:56 -0800
+
+browser-switchboard (3.0-1) extras-devel; urgency=low
+
+  * New "upstream" stable release.
+  * Upstream changes:
+    - fix the UI so that it looks for C browser-switchboard processes to send
+      SIGHUP to, not Python browser-switchboards
+    - add support for EXTRA_CFLAGS in Makefiles, to allow package builds to
+      pass additional optimization flags
+    - replace calls to `pkg-config dbus-1` in config-ui/Makefile with calls to
+      `pkg-config libosso` instead; asking for dbus-1 was incorrect and
+      covering up a problem that caused maemo extras-devel autobuilds to fail
+  * Packaging changes:
+    - Use EXTRA_CFLAGS to generate N8x0 optimized builds, and use Thumb if
+      DEB_BUILD_OPTIONS requests it.
+    - Bump Standards-Version to 3.8.0; no changes required.
+    - 323bf8... ("config-ui: Teach UI how to HUP C browser-switchboards")
+      merged upstream, remove from diff.
+    - Remove unneeded file debian/dirs.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Wed, 23 Dec 2009 03:48:02 -0800
+
+browser-switchboard (3.0~rc1-2) extras-devel; urgency=low
+
+  * Actually upload to extras-devel.
+  * Replace the dependency on libdbus-1-dev and the call to pkg-config for
+    dbus-1 with libosso-dev and libosso, respectively, as that's the package
+    the control panel plugin interface actually needs.  Fixes autobuild.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Fri, 18 Dec 2009 19:07:25 -0800
+
+browser-switchboard (3.0~rc1-1) extras-devel; urgency=low
+
+  * New "upstream" prerelease.
+  * Upstream changes:
+    - move to an all-C implementation for better performance and memory usage
+    - add a configuration hildon-control-panel plugin
+    - make MicroB the default default browser
+  * Packaging changes:
+    - Accommodate the move to C:
+      + Package is now Arch: any.
+      + Revise Build-Depends and Depends appropriately.
+      + debian/postrm now kills off both Python and C browser-switchboards.
+      + debian/rules: build an Arch: any package, use the new Makefile-based
+        build and install, dh_strip the binaries, make shlibdeps.
+  * Cherry-pick 323bf8...
+    ("config-ui: Teach UI how to HUP C browser-switchboards") from Git master.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Fri, 18 Dec 2009 03:48:03 -0800
+
+browser-switchboard (2.2-1) extras-devel; urgency=low
+
+  * New "upstream" release.
+  * Upstream changes:
+    - rename the package to browser-switchboard
+    - move the config file to $HOME/.config/browser-switchboard, and fall back
+      to the old location if no config file is found
+    - if no config file is found and Tear isn't installed, launch MicroB;
+      this avoids breaking link opening on a system with a freshly installed
+      browser-switchboard package and Tear not installed
+    - substantial documentation update
+  * Packaging changes:
+    - Rename the package to browser-switchboard; Conflict with browser-proxy
+      to make sure that users don't try to install over it.  browser-proxy
+      needs to be uninstalled before installing browser-switchboard.
+    - Drop the Depends on tear, now that installing browser-switchboard
+      doesn't break link opening when Tear isn't installed.  Recommend
+      tear | fennec | midori instead.
+    - Add a friendly display name for the application manager in
+      debian/control.
+    - Update the package description.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Mon, 14 Dec 2009 03:39:04 -0800
+
+browser-proxy (2.1-1) extras-devel; urgency=low
+
+  * New "upstream" release.
+  * Upstream changes:
+    - I'm now the upstream maintainer.
+    - License is clarified (GPLv2+).
+    - Use a config file ($HOME/.config/browser-proxy) for settings, if it
+      exists.
+    - Add support for launching Fennec and Midori out of the box.
+    - Introduce a config option default_browser for selecting the default
+      browser.
+    - Add support for launching an arbitrary browser using the
+      other_browser_cmd config option.
+    - Run maemo-invoker directly instead of /usr/bin/browser to avoid a loop
+      when /usr/bin/browser is a wrapper invoking browser-proxy.
+    - Add a new, private D-Bus method for a /usr/bin/browser wrapper to use.
+  * Packaging changes:
+    - Ship a /usr/bin/browser wrapper script which ensures that launching
+      MicroB with /usr/bin/browser works when browser-proxy is installed.
+    - Update copyright to reflect licensing changes.
+    - Conflict with Mozilla's fennec-dbus-proxy (see Mozilla Bugzilla
+      #499904); both provide the com.nokia.osso_browser service and the two
+      probably shouldn't be co-installed.
+
+ -- Steven Luo <steven+maemo@steven676.net>  Wed, 09 Dec 2009 17:54:16 -0800
+
+browser-proxy (2.0-1) extras-devel; urgency=low
+
+  * Initial release. 
+
+ -- Steven Luo <steven+maemo@steven676.net>  Wed,  2 Dec 2009 17:56:24 -0800
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..10a79a3
--- /dev/null
@@ -0,0 +1,22 @@
+Source: browser-switchboard
+Section: user/network
+Priority: extra
+Maintainer: Steven Luo <steven+maemo@steven676.net>
+Build-Depends: debhelper (>= 5), libdbus-glib-1-dev, libgtk2.0-dev, libhildon1-dev, libosso-dev, hildon-control-panel-dev
+Standards-Version: 3.8.0
+
+Package: browser-switchboard
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, dbus
+Recommends: tear | fennec | midori
+Provides: browser-proxy
+Conflicts: browser-proxy, fennec-dbus-client
+Description: allows any web browser to be used as the default
+ Browser Switchboard is a program which allows you to choose
+ which browser to use as the default browser.  It supports
+ MicroB, Tear, Mobile Firefox, Opera Mobile, and Midori out of
+ the box, and can easily be extended to support other
+ browsers.  A Control Panel applet to choose the default
+ browser is provided.
+XB-Maemo-Display-Name: Browser Switchboard
+Homepage: http://browser-switch.garage.maemo.org/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..0c55033
--- /dev/null
@@ -0,0 +1,33 @@
+This package was debianized by Steven Luo <steven+maemo@steven676.net> on
+Wed,  2 Dec 2009 17:56:24 -0800.
+
+It was downloaded from https://garage.maemo.org/frs/?group_id=1159 .
+
+Upstream Authors: Steven Luo, Jason Simpson
+
+Copyright:
+
+# Copyright (C) 2009 Jason Simpson
+# Copyright (C) 2009 Steven Luo
+
+License:
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# On Maemo systems, a copy of the GPL can be found in
+# /usr/share/common-licenses/GPL .
+
+The Debian packaging is copyright 2009 Steven Luo <steven+maemo@steven676.net>
+and is licensed under the GNU GPL, version 2 or later.
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..767a4ce
--- /dev/null
@@ -0,0 +1,71 @@
+#!/bin/sh
+# postrm script for browser-switchboard
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+kill_old_proxies() {
+       # Kill off old python browser-switchboards, if any
+       # This would be so much nicer with pgrep/pkill ...
+       proxy_pids=`busybox ps | fgrep "python /usr/bin/browser-switchboard" | fgrep -v grep | awk '{ print $1 }'`
+       if [ ! -z "$proxy_pids" ]; then
+               kill $proxy_pids
+       fi
+       # Kill off C browser-switchboards
+       proxy_pids=`pidof browser-switchboard || true`
+       if [ ! -z "$proxy_pids" ]; then
+               kill $proxy_pids
+       fi
+}
+
+case "$1" in
+    remove)
+       dpkg-divert --remove --package browser-switchboard --rename \
+           --divert /usr/bin/browser.tablet-browser-ui \
+           /usr/bin/browser
+       dpkg-divert --remove --package browser-switchboard --rename \
+           --divert /usr/share/dbus-1/services/com.nokia.osso_browser.tablet-browser-ui \
+           /usr/share/dbus-1/services/com.nokia.osso_browser.service
+       # Try to make dbus-daemon pick up the change in services file
+       kill -HUP `pidof dbus-daemon`
+
+       # Kill off any running browser-switchboard to make sure that the
+       # default browser gets launched
+       kill_old_proxies
+       ;;
+    upgrade|disappear)
+       # Kill off any running browser-switchboard to make sure that the new
+       # version gets launched the next time a D-Bus request is made
+       kill_old_proxies
+       ;;
+    purge|failed-upgrade|abort-install|abort-upgrade)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/preinst b/debian/preinst
new file mode 100644 (file)
index 0000000..9194c2f
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+# preinst script for browser-switchboard
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+       dpkg-divert --add --package browser-switchboard --rename \
+           --divert /usr/share/dbus-1/services/com.nokia.osso_browser.tablet-browser-ui \
+           /usr/share/dbus-1/services/com.nokia.osso_browser.service
+       dpkg-divert --add --package browser-switchboard --rename \
+           --divert /usr/bin/browser.tablet-browser-ui \
+           /usr/bin/browser
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..60f0ec8
--- /dev/null
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Optimize for N8x0 CPUs if building for armel
+ifeq ($(DEB_HOST_ARCH),armel)
+       EXTRA_CFLAGS += -mcpu=arm1136jf-s
+       # Use Thumb for smaller binaries unless otherwise requested
+       ifeq (,$(filter nothumb,$(DEB_BUILD_OPTIONS)))
+               EXTRA_CFLAGS += -mthumb
+       endif
+endif
+
+configure: configure-stamp
+configure-stamp:
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo
+       make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo-plugin util
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       make clean
+       make -C config-ui clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into
+       # debian/browser-switchboard.
+       make DESTDIR=debian/browser-switchboard install
+       make -C config-ui DESTDIR=../debian/browser-switchboard install
+
+
+binary-indep: build install
+# arch: any package, nothing to do here
+
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+#      dh_installman
+#      dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure