--- gtk-vnc-0.3.6.orig/debian/changelog
+++ gtk-vnc-0.3.6/debian/changelog
@@ -0,0 +1,166 @@
+gtk-vnc (0.3.6-2~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+  * [e4f60e9] don't build the mozilla plugin
+  * [a5593fa] fix build with older gtk
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 02 Aug 2008 16:24:17 +0200
+
+gtk-vnc (0.3.6-2) unstable; urgency=low
+
+  * add libgtk-vnc debug package
+  * don't build depend on libxul-dev  (Closes: #480810) - thanks to Mike
+    Hommey for the patch
+
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 15 May 2008 14:48:42 +0200
+
+gtk-vnc (0.3.6-1) unstable; urgency=low
+
+  * Add gvncviewer package
+  * New Upstream version 0.3.6 (Closes: #480158)
+  * Reenable scaling now that #477199 is fixed
+  * update shlibs
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 11 May 2008 23:00:55 +0200
+
+gtk-vnc (0.3.5-3) unstable; urgency=low
+
+  * disable scaling support, works around #477199 until the problem is fixed 
+    in libgtkglext.
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 22 Apr 2008 16:55:52 +0200
+
+gtk-vnc (0.3.5-2) unstable; urgency=low
+
+  * fix typo in dependencies  (Closes: #475647)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 12 Apr 2008 12:44:28 +0200
+
+gtk-vnc (0.3.5-1) unstable; urgency=low
+
+  * new upstream version
+  * build-depend on libtool  (Closes: #474475)
+  * drop scaling-crash.diff - in new upstream version
+  * drop endianess-conversion.diff - in new upstream version  
+    (Closes: #474647)
+  * build-conflict on libffi4-dev since it also provides libffi-dev
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 11 Apr 2008 12:49:45 +0200
+
+gtk-vnc (0.3.4-2) experimental; urgency=low
+
+  * pull scaling crash fix from mailing list
+  * add endianess conversion from upstream
+  * bump standards version
+  * build depend on libffi-dev (Closes: #472152)
+  * enable the browser plugin
+  * enable scaling
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 25 Mar 2008 17:39:43 +0100
+
+gtk-vnc (0.3.4-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 17 Mar 2008 18:50:27 +0100
+
+gtk-vnc (0.3.4-1) unstable; urgency=low
+
+  * New Upstream Version
+  * drop from_upstream_grab_focus.patch included in new upstream version
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 11 Mar 2008 20:49:59 +0100
+
+gtk-vnc (0.3.3-2) unstable; urgency=low
+
+  * fix keyboard grab, many thanks to Emilio Pozuelo Monfort for
+    forwarding this
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 18 Feb 2008 21:39:06 +0100
+
+gtk-vnc (0.3.3-1) unstable; urgency=low
+
+  * New Upstream Version
+  * lower the build-dependencies of libgnutils-dev and python-gtk2-dev
+    as to what is specified in configure.ac
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 10 Feb 2008 21:10:28 +0100
+
+gtk-vnc (0.3.2-1) unstable; urgency=low
+
+  * New Upstream Version
+
+ -- Guido Guenther <agx@sigxcpu.org>  Wed, 02 Jan 2008 11:33:53 +0100
+
+gtk-vnc (0.3.1-2~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for Etch backports.
+  * lower build-dependency on libgnutils-dev and python-gtk2-dev as to what is
+    specified in configure.ac
+
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 27 Dec 2007 16:07:03 +0100
+
+gtk-vnc (0.3.1-2) unstable; urgency=low
+
+  * update the shlibs (Closes: #456912) - Thanks to Sebastian Bacher
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 18 Dec 2007 16:40:54 +0100
+
+gtk-vnc (0.3.1-1) unstable; urgency=low
+
+  * New Upstream Version
+  * add versioned dependencies (Closes: #454975)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 17 Dec 2007 15:36:36 +0100
+
+gtk-vnc (0.2.0-2) unstable; urgency=low
+
+  * add missing dependencies to the -dev package (Closes: #454975)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 08 Dec 2007 15:42:22 +0100
+
+gtk-vnc (0.2.0-1) unstable; urgency=low
+
+  * Upload to Debian (Closes: #452512)
+  * drop most of the versioned build dependencies since even etch has recent
+    enough versions
+  * Thanks to the Ubuntu maintainers!
+
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 22 Nov 2007 18:54:13 +0100
+
+gtk-vnc (0.2.0-0ubuntu3) hardy; urgency=low
+
+  * Sponsor the package from Fernando Ribeiro
+  * debian/control:
+    - use correct XSBC-Original-Maintainer
+    - the -dev package depends on the library
+    - updated -dev package name to match the library one
+    - updated short description to mention the differences between binaries
+  * debian/copyright:
+    - the license is under LGPL 2.1
+
+ -- Sebastien Bacher <seb128@canonical.com>  Tue, 13 Nov 2007 20:33:03 +0100
+
+gtk-vnc (0.2.0-0ubuntu2) gutsy; urgency=low
+
+  * News upstream release
+
+ -- Fernando Ribeiro <fernando@staff.nerdgroup.org>  Fri, 14 Sep 2007 10:17:52 -0300
+
+gtk-vnc (0.1.0-0ubuntu2) gutsy; urgency=low
+
+  * debian/copyright:
+    - Fixed license to LGPL-2.1 instead GPL
+  * debian/rules:
+    - Dropped python dbg
+  * debian/control:
+    - Dropped python-gtk-vnc-dbg
+    - Fixed Maintainer to MOTU
+
+ -- Fernando Ribeiro <fernando@staff.nerdgroup.org>  Thu, 13 Sep 2007 11:01:23 -0300
+
+gtk-vnc (0.1.0-0ubuntu1) gutsy; urgency=low
+
+  * Initial release.
+
+ -- Fernando Ribeiro <fernando@staff.nerdgroup.org>  Fri, 24 Aug 2007 15:06:13 -0300
--- gtk-vnc-0.3.6.orig/debian/compat
+++ gtk-vnc-0.3.6/debian/compat
@@ -0,0 +1 @@
+5
--- gtk-vnc-0.3.6.orig/debian/control
+++ gtk-vnc-0.3.6/debian/control
@@ -0,0 +1,89 @@
+Source: gtk-vnc
+Section: gnome
+Priority: optional
+XS-Python-Version: >= 2.4
+Maintainer: Guido Guenther <agx@sigxcpu.org>
+Standards-Version: 3.7.3
+Build-Depends: cdbs, debhelper, python-central, libgtk2.0-dev,
+ python-all-dev, libgnutls-dev (>= 1.4.0), python-gtk2-dev (>= 2.0),
+ autotools-dev, quilt, automake, autoconf, libtool
+Build-Conflicts: libffi4-dev
+
+Package: libgtk-vnc-1.0-0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A VNC viewer widget for GTK+ (runtime libraries)
+ It is built using coroutines, allowing it to be completely asynchronous while
+ remaining single threaded. It supports RFB protocols 3.3 through 3.8 and the 
+ VeNCrypt authentication extension providing SSL/TLS encryption with x509 
+ certificate authentication.
+ .
+ The core library is written in C and a binding for Python using PyGTK is
+ available. The networking layer supports connections over both IPv4 and IPv6.
+ .
+ This package contains the shared library.
+
+Package: libgtk-vnc-1.0-0-dbg
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}, libgtk-vnc-1.0-0 (=${binary:Version})
+Priority: extra
+Description: A VNC viewer widget for GTK+ (runtime libraries)
+ It is built using coroutines, allowing it to be completely asynchronous while
+ remaining single threaded. It supports RFB protocols 3.3 through 3.8 and the 
+ VeNCrypt authentication extension providing SSL/TLS encryption with x509 
+ certificate authentication.
+ .
+ The core library is written in C and a binding for Python using PyGTK is
+ available. The networking layer supports connections over both IPv4 and IPv6.
+ .
+ This package contains the debugging symbols.
+
+Package: libgtk-vnc-1.0-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends}, libgtk-vnc-1.0-0 (= ${binary:Version}),
+ libgtk2.0-dev (>= 2.0), libgnutls-dev (>= 1.4.0)
+Description: A VNC viewer widget for GTK+ (development files)
+ It is built using coroutines, allowing it to be completely asynchronous while
+ remaining single threaded. It supports RFB protocols 3.3 through 3.8 and the 
+ VeNCrypt authentication extension providing SSL/TLS encryption with x509 
+ certificate authentication.
+ .
+ The core library is written in C and a binding for Python using PyGTK is
+ available. The networking layer supports connections over both IPv4 and IPv6.
+ .
+ This package contains the development headers.
+
+Package: python-gtk-vnc
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-gtk2 (>= 2.0)
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: A VNC viewer widget for GTK+ (Python binding)
+ It is built using coroutines, allowing it to be completely asynchronous while
+ remaining single threaded. It supports RFB protocols 3.3 through 3.8 and the 
+ VeNCrypt authentication extension providing SSL/TLS encryption with x509 
+ certificate authentication.
+ .
+ The core library is written in C and a binding for Python using PyGTK is
+ available. The networking layer supports connections over both IPv4 and IPv6.
+ .
+ This package contains the Python binding.
+
+Package: gvncviewer
+Architecture: any
+Section: x11
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: VNC viewer using gtk-vnc
+ It is built using coroutines, allowing it to be completely asynchronous while
+ remaining single threaded. It supports RFB protocols 3.3 through 3.8 and the 
+ VeNCrypt authentication extension providing SSL/TLS encryption with x509 
+ certificate authentication.
+ .
+ The core library is written in C and a binding for Python using PyGTK is
+ available. The networking layer supports connections over both IPv4 and IPv6.
+ .
+ This package contains the VNC viewer.
--- gtk-vnc-0.3.6.orig/debian/copyright
+++ gtk-vnc-0.3.6/debian/copyright
@@ -0,0 +1,66 @@
+This package was debianized by Fernando Ribeiro <fernando@staff.nerdgroup.org> on
+Fri, 24 Aug 2007 15:44:36 -0300.
+
+It was downloaded from http://sourceforge.net/projects/gtk-vnc
+
+Upstream Authors: Anthony Liguori <anthony-at-codemonkey-dot-ws>
+   		  Daniel Berrange <dan-at-berrange-dot-com>
+		  John Wendell <jwendell-at-gnome-dot-org>
+
+Copyright:
+
+Copyright (C) 2000-2004 The Free Software Foundation
+Copyright (C) 1999 AT&T Laboratories Cambridge
+Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge
+Copyright (C) 2006  Anthony Liguori <anthony@codemonkey.ws>
+
+License:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License version 2.1 as published by the Free Software Foundation;
+
+    This library 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+    On Debian Systems, the full text of the license can be found on
+    /usr/share/common-licenses/LGPL-2.1
+
+
+The code of D3DES has the following copyright notice:
+
+    This is D3DES (V5.09) by Richard Outerbridge with the double and
+    triple-length support removed for use in VNC.  Also the bytebit[] array
+    has been reversed so that the most significant bit in each byte of the
+    key is ignored, not the least significant.
+    
+    These changes are:
+     Copyright (C) 1999 AT&T Laboratories Cambridge.  All Rights Reserved.
+    
+    This software 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.
+    
+    
+    D3DES (V5.09) -
+    
+    A portable, public domain, version of the Data Encryption Standard.
+    
+    Written with Symantec's THINK (Lightspeed) C by Richard Outerbridge.
+    Thanks to: Dan Hoey for his excellent Initial and Inverse permutation
+    code;  Jim Gillogly & Phil Karn for the DES key schedule code; Dennis
+    Ferguson, Eric Young and Dana How for comparing notes; and Ray Lau,
+    for humouring me on.
+    
+    Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge.
+    (GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992.
+
+
+
+
--- gtk-vnc-0.3.6.orig/debian/libgtk-vnc-1.0-0.install
+++ gtk-vnc-0.3.6/debian/libgtk-vnc-1.0-0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*.so.*
--- gtk-vnc-0.3.6.orig/debian/libgtk-vnc-1.0-dev.install
+++ gtk-vnc-0.3.6/debian/libgtk-vnc-1.0-dev.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/*.a
+debian/tmp/usr/lib/*.so
+debian/tmp/usr/include
+debian/tmp/usr/lib/pkgconfig
--- gtk-vnc-0.3.6.orig/debian/rules
+++ gtk-vnc-0.3.6/debian/rules
@@ -0,0 +1,22 @@
+#! /usr/bin/make -f 
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+
+DEB_BUILDDIR := build
+DEB_CONFIGURE_EXTRA_FLAGS += --with-python --without-gtkglext --with-examples --enable-plugin=no
+
+DEB_DBG_PACKAGES = libgtk-vnc-1.0-0-dbg
+DEB_DBG_PACKAGE_libgtk-vnc-1.0-0 = libgtk-vnc-1.0-0-dbg
+
+DEB_DH_MAKESHLIBS_ARGS_libgtk-vnc-1.0-0 += -V 'libgtk-vnc-1.0-0 (>= 0.3.6)'
+DEB_DH_MAKESHLIBS_ARGS_mozilla-gtk-vnc += --noscripts
+
+binary-install/python-gtk-vnc::
+	dh_pycentral
+
+post-patches::
+	autoreconf
--- gtk-vnc-0.3.6.orig/debian/watch
+++ gtk-vnc-0.3.6/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/gtk-vnc/gtk-vnc-([\d\.]+)\.tar\.gz debian
--- gtk-vnc-0.3.6.orig/debian/gvncviewer.install
+++ gtk-vnc-0.3.6/debian/gvncviewer.install
@@ -0,0 +1 @@
+debian/tmp/usr/bin/gvncviewer
--- gtk-vnc-0.3.6.orig/debian/mozilla-gtk-vnc.docs
+++ gtk-vnc-0.3.6/debian/mozilla-gtk-vnc.docs
@@ -0,0 +1 @@
+plugin/README
--- gtk-vnc-0.3.6.orig/debian/python-gtk-vnc.install
+++ gtk-vnc-0.3.6/debian/python-gtk-vnc.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/python*/site-packages/gtkvnc.so
--- gtk-vnc-0.3.6.orig/debian/mozilla-gtk-vnc.install
+++ gtk-vnc-0.3.6/debian/mozilla-gtk-vnc.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/mozilla/plugins/*.so usr/lib/gtk-vnc/plugins/
--- gtk-vnc-0.3.6.orig/debian/mozilla-gtk-vnc.links
+++ gtk-vnc-0.3.6/debian/mozilla-gtk-vnc.links
@@ -0,0 +1,2 @@
+/usr/lib/gtk-vnc/plugins/gtk-vnc-plugin.so /usr/lib/iceweasel/plugins/gtk-vnc-plugin.so
+/usr/lib/gtk-vnc/plugins/gtk-vnc-plugin.so /usr/lib/iceape/plugins/gtk-vnc-plugin.so
--- gtk-vnc-0.3.6.orig/debian/patches/series
+++ gtk-vnc-0.3.6/debian/patches/series
@@ -0,0 +1,2 @@
+xulrunner-not-mozilla.diff
+older-gtk.diff
--- gtk-vnc-0.3.6.orig/debian/patches/older-gtk.diff
+++ gtk-vnc-0.3.6/debian/patches/older-gtk.diff
@@ -0,0 +1,26 @@
+diff --git a/configure.ac b/configure.ac
+index a0816a4..2bf4557 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
+ AC_INIT([gtk-vnc], [0.3.6], [anthony@codemonkey.ws])
+ AC_CONFIG_SRCDIR([src/gvnc.c])
+ 
+-GTK_REQUIRED=2.10.0
++GTK_REQUIRED=2.8.0
+ AC_SUBST(GTK_REQUIRED)
+ GNUTLS_REQUIRED=1.4.0
+ AC_SUBST(GNUTLS_REQUIRED)
+diff --git a/examples/gvncviewer.c b/examples/gvncviewer.c
+index 62fdfd1..590c6f1 100644
+--- a/examples/gvncviewer.c
++++ b/examples/gvncviewer.c
+@@ -370,7 +370,7 @@ int main(int argc, char **argv)
+ 	vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);
+ 	vnc_display_set_pointer_grab(VNC_DISPLAY(vnc), TRUE);
+ 
+-	if (!gtk_widget_is_composited(window)) {
++	if (0) {
+ 		vnc_display_set_scaling(VNC_DISPLAY(vnc), TRUE);
+ 		gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(scaling), TRUE);
+ 	}
--- gtk-vnc-0.3.6.orig/debian/patches/xulrunner-not-mozilla.diff
+++ gtk-vnc-0.3.6/debian/patches/xulrunner-not-mozilla.diff
@@ -0,0 +1,22 @@
+diff --git a/configure.ac b/configure.ac
+index 6871585..96b9e6f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,7 +18,7 @@
+
+ NSPR_REQUIRED=4.0.0
+ FIREFOX_PLUGIN_REQUIRED=2.0.0
+-MOZILLA_PLUGIN_REQUIRED=1.8
++MOZILLA_PLUGIN_REQUIRED=1.0
+
+
+ AC_CONFIG_HEADERS([config.h:config.hin])
+@@ -216,7 +216,7 @@ if test "x$enable_plugin" = "xyes"; then
+     PKG_CHECK_MODULES(FIREFOX_PLUGIN,
+                      firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED, ,[
+         PKG_CHECK_MODULES(MOZILLA_PLUGIN,
+-                          mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED)
++                          iceape-plugin >= $MOZILLA_PLUGIN_REQUIRED)
+         FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS"
+         FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS"
+     ])
