--- smuxi-0.6.4.1.orig/debian/compat
+++ smuxi-0.6.4.1/debian/compat
@@ -0,0 +1 @@
+7
--- smuxi-0.6.4.1.orig/debian/smuxi-frontend-gnome-irc.install
+++ smuxi-0.6.4.1/debian/smuxi-frontend-gnome-irc.install
@@ -0,0 +1,2 @@
+usr/lib/smuxi/smuxi-frontend-gnome-irc.dll*
+#usr/share/locale/*/LC_MESSAGES/smuxi-frontend-gnome-irc.mo
--- smuxi-0.6.4.1.orig/debian/control
+++ smuxi-0.6.4.1/debian/control
@@ -0,0 +1,150 @@
+Source: smuxi
+Section: gnome
+Priority: optional
+Maintainer: Mirco Bauer <meebey@debian.org>
+Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7~)
+Build-Depends-Indep: cli-common-dev (>= 0.5.7),
+ pkg-config,
+ mono-gmcs (>= 1.9.1),
+ libmono-dev (>= 1.9.1),
+ libmono2.0-cil,
+ libmono-cairo2.0-cil,
+ libmono-system-runtime2.0-cil,
+ libsmartirc4net0.4-cil (>= 0.4.5.1),
+ libnini1.1-cil,
+ liblog4net1.2-cil,
+ libgtk2.0-cil (>= 2.8),
+ libgnome2.0-cil (>= 2.8),
+ libgconf2.0-cil (>= 2.8),
+ libglade2.0-cil (>= 2.8),
+ libglib2.0-cil (>= 2.8),
+ lsb-release,
+ gettext,
+ intltool,
+ libtool,
+ autoconf,
+ automake,
+ autotools-dev
+Standards-Version: 3.8.3
+Homepage: http://www.smuxi.org/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-cli-apps/packages/smuxi/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-cli-apps/packages/smuxi/trunk/
+
+Package: smuxi
+Architecture: all
+Suggests: smuxi-server
+Depends: smuxi-frontend-gnome-irc (= ${source:Version})
+Description: IRC client for sophisticated users
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This is a metapackage which depends on the default flavor of Smuxi, which is
+ the GNOME frontend with enhanced IRC support.
+
+Package: smuxi-engine
+Architecture: all
+Replaces: smuxi (<< 0.5.25)
+Recommends: smuxi-engine-irc
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}
+Description: Engine library for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains the Smuxi engine, needed by Smuxi frontends or the
+ standalone server.
+
+Package: smuxi-engine-irc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, smuxi-engine (= ${source:Version})
+Description: IRC support for Engine library for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains IRC support for the Smuxi engine.
+
+Package: smuxi-server
+Architecture: all
+Replaces: smuxi (<< 0.5.25)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, smuxi-engine (= ${source:Version})
+Description: Server application for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains the standalone server of Smuxi, it doesn't need any GUI.
+ The Smuxi frontends can connect to a running server via the network.
+
+Package: smuxi-frontend
+Architecture: all
+Replaces: smuxi (<< 0.5.25)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, smuxi-engine (= ${source:Version})
+Description: Frontend library for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains the base library for all Smuxi frontends.
+
+Package: smuxi-frontend-gnome
+Architecture: all
+Replaces: smuxi (<< 0.5.25)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, smuxi-engine (= ${source:Version}),
+ smuxi-frontend (= ${source:Version})
+Description: GNOME frontend for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains the GNOME frontend of Smuxi, it can run either standalone
+ using a local engine or connect to a running remote engine (server).
+
+Package: smuxi-frontend-gnome-irc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, smuxi-engine (= ${source:Version}),
+ smuxi-engine-irc (= ${source:Version}),
+ smuxi-frontend (= ${source:Version}),
+ smuxi-frontend-gnome (= ${source:Version})
+Description: IRC support for GNOME frontend for Smuxi
+ Smuxi is an irssi-inspired, flexible, user-friendly and cross-platform IRC
+ client for sophisticated users, targeting the GNOME desktop.
+ .
+ The special feature of Smuxi is that it can be used like the typical
+ irssi+screen combo. The IRC session can run on a server (using
+ `smuxi-server') and a frontend (like `smuxi-frontend-gnome') then can
+ connect to that. The frontend can then be detached and re-attached at some
+ later point without losing any IRC connections or messages. 
+ .
+ This package contains enhanced IRC support for the GNOME frontend of Smuxi.
--- smuxi-0.6.4.1.orig/debian/README.source
+++ smuxi-0.6.4.1/debian/README.source
@@ -0,0 +1,57 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
--- smuxi-0.6.4.1.orig/debian/smuxi-frontend-gnome.install
+++ smuxi-0.6.4.1/debian/smuxi-frontend-gnome.install
@@ -0,0 +1,5 @@
+usr/bin/smuxi-frontend-gnome
+usr/lib/smuxi/smuxi-frontend-gnome.exe*
+usr/share/applications/smuxi-frontend-gnome.desktop
+usr/share/pixmaps/smuxi-frontend-gnome.svg
+usr/share/locale/*/LC_MESSAGES/smuxi-frontend-gnome.mo
--- smuxi-0.6.4.1.orig/debian/smuxi-engine-irc.install
+++ smuxi-0.6.4.1/debian/smuxi-engine-irc.install
@@ -0,0 +1,2 @@
+usr/lib/smuxi/smuxi-engine-irc.dll*
+usr/share/locale/*/LC_MESSAGES/smuxi-engine-irc.mo
--- smuxi-0.6.4.1.orig/debian/changelog
+++ smuxi-0.6.4.1/debian/changelog
@@ -0,0 +1,177 @@
+smuxi (0.6.4.1-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+  * debian/control
+    debian/rules:
+    + Replaced mono-devel build-dep with mono-gmcs and removed compiler
+      override.
+    + Lowered versioned mono build-deps to >= 1.9.1
+    + Replaced libgnome2.24-cil build-dep with libgnome2.0-cil.
+
+ -- Mirco Bauer <meebey@debian.org>  Thu, 15 Oct 2009 23:07:41 +0200
+
+smuxi (0.6.4.1-1) unstable; urgency=medium
+
+  [ Mirco Bauer ]
+  * New upstream (bugfix) release.
+    + Upstream switched from automake 1.10 to 1.11 which fixes the FTBFS
+      when using dash as /bin/sh. (Closes: #545619)
+
+  [ Stefan Ebner ]
+  * debian/patches: Convert everything to quilt
+  * debian/rules: Rewrote to use quilt instead of dpatch
+  * debian/control: Replace dpatch build dependecy with versioned quilt one
+  * Add debian/README.source as we are using quilt now
+
+ -- Mirco Bauer <meebey@debian.org>  Wed, 14 Oct 2009 01:47:41 +0200
+
+smuxi (0.6.4-1) unstable; urgency=low
+
+  [ Mirco Bauer]
+  * New upstream release.
+  * debian/patches/fix_infinite_build_po_loop.dpatch:
+    + Dropped, as already applied upstream.
+  * debian/control:
+    + Bumped mono-devel build-dep to >= 2.4.2.3
+    + Updated package descriptions.
+  * debian/rules:
+    + Replaced %: with .DEFAULT: else the dh target is always run.
+    + Removed unneeded re-autogen.
+    + Fixed distro detection.
+    + Use mono-csc instead of csc.
+
+  [ Stefan Ebner ]
+  * debian/control: 
+    + Remove dependency on libgconf2.24-cil since it's not
+      needed anymore.
+    + Bump Standards-Version to 3.8.3
+
+ -- Mirco Bauer <meebey@debian.org>  Mon, 24 Aug 2009 19:02:30 +0200
+
+smuxi (0.6.3-5) unstable; urgency=low
+
+  * debian/control:
+    + Added lsb-release to build-deps as it's used in debian/rules.
+    + Bumped debhelper build-dep to >= 7.0.50 as we use the rules target
+      override feature.
+  * debian/rules:
+    + Fixed the debian/patches/00list file generation by using a target.
+    + Migrated from dh sequence injection interface to override targets.
+    + Added missing .PHONY target.
+  * debian/patches/fix_infinite_build_po_loop.dpatch:
+    + Fixes endless build loops when building on xfs or tmpfs filesystems.
+      (patch taken from upstream's git repo)
+
+ -- Mirco Bauer <meebey@debian.org>  Sun, 05 Apr 2009 23:23:11 +0200
+
+smuxi (0.6.3-4) unstable; urgency=low
+
+  [ Jo Shields ]
+  * debian/control:
+    + Fix Vcs-* fields
+    + Add optional build-dependency on libgconf2.24-cil, to help broken
+      GConf# ABI breakage in Ubuntu
+
+  [ Stefan Ebner ]
+  * Update libgnome2.0-cil build-dependency to libgnome2.24-cil for the
+    GNOME# 2.24 transition.
+  * Bump Standards version to 3.8.1 
+
+  [ Mirco Bauer ]
+  * debian/rules
+    debian/patches/ubuntu_default_settings.dpatch
+    debian/patches/00list:
+    + Only apply debian_default_settings on debian systems and
+      ubuntu_default_settings on ubuntu systems, as the defaults don't make
+      sense otherwise.
+  * debian/rules:
+    + Really override compiler command in configure call.
+
+ -- Mirco Bauer <meebey@debian.org>  Wed, 01 Apr 2009 00:56:58 +0200
+
+smuxi (0.6.3-3) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Mirco Bauer <meebey@debian.org>  Sun, 01 Mar 2009 18:59:25 +0100
+
+smuxi (0.6.3-2) experimental; urgency=low
+
+  * debian/smuxi-frontend-gnome.menu
+    debian/smuxi-frontend-gnome.install:
+    + Added smuxi-frontend-gnome.svg. (Closes: #510470)
+  * debian/patches/build_with_csc.dpatch:
+    + Disabled, already applied upstream.
+  * debian/rules:
+    + Pass GMCS to configure.
+  * debian/patches/debian_default_settings.dpatch:
+    + Added #debian channel to to defaults.
+
+ -- Mirco Bauer <meebey@debian.org>  Wed, 07 Jan 2009 21:21:39 +0100
+
+smuxi (0.6.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Mirco Bauer <meebey@debian.org>  Fri, 02 Jan 2009 02:15:20 +0100
+
+smuxi (0.6.2-4) experimental; urgency=low
+
+  * debian/control:
+    + Replaced mono-gmcs build-dep with mono-devel, as part of the Mono 2.0
+      transition.
+  * debian/patches/build_with_csc.dpatch:   
+    + Enabled again.
+
+ -- Mirco Bauer <meebey@debian.org>  Fri, 12 Dec 2008 22:45:55 +0100
+
+smuxi (0.6.2-3) unstable; urgency=low
+
+  * The "upsy, -2 was ment for experimental not unstable" release
+  * debian/patches/build_with_csc.dpatch:
+    + Disabled
+  * debian/control:
+    + Replaced mono-devel build-dep with mono-gmcs.
+
+ -- Mirco Bauer <meebey@debian.org>  Thu, 11 Dec 2008 23:40:59 +0100
+
+smuxi (0.6.2-2) unstable; urgency=low
+
+  * debian/*.install:
+    + Added translations.
+  * debian/control:
+    + Added Homepage and Vcs-* fields.
+    + Replaced mono-gmcs build-dep with mono-devel, as part of the Mono 2.0
+      transition.
+    + Added  libtool, autoconf, automake, autotools-dev to build-deps as we
+      patch .am files and need to update the build-system.
+  * debian/rules:
+    + Updating the build-system now using the autofoo tools.
+  * debian/patches/build_with_csc.dpatch:
+    + Use csc instead of gmcs for the build.
+
+ -- Mirco Bauer <meebey@debian.org>  Thu, 04 Dec 2008 22:59:27 +0100
+
+smuxi (0.6.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Mirco Bauer <meebey@debian.org>  Tue, 26 Aug 2008 01:06:33 +0200
+
+smuxi (0.6.1-2) unstable; urgency=low
+
+  * debian/smuxi-frontend-gnome.menu:
+    + Fixed command file name.
+    + Fixed package name.
+    + Updated section from Apps/Net to Applications/Network/Communication.
+  * debian/control:
+    + Changed "meta package" to "metapackage" in package description.
+      (I didn't know metapackage is an english term, I believe lintian though)
+
+ -- Mirco Bauer <meebey@debian.org>  Sun, 03 Aug 2008 23:39:47 +0200
+
+smuxi (0.6.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #310836)
+
+ -- Mirco Bauer <meebey@debian.org>  Sat, 02 Aug 2008 22:51:01 +0200
--- smuxi-0.6.4.1.orig/debian/docs
+++ smuxi-0.6.4.1/debian/docs
@@ -0,0 +1,5 @@
+CREDITS
+FEATURES
+README
+TODO
+BUGS
--- smuxi-0.6.4.1.orig/debian/smuxi-engine.install
+++ smuxi-0.6.4.1/debian/smuxi-engine.install
@@ -0,0 +1,3 @@
+usr/lib/smuxi/smuxi-common.dll*
+usr/lib/smuxi/smuxi-engine.dll*
+usr/share/locale/*/LC_MESSAGES/smuxi-engine.mo
--- smuxi-0.6.4.1.orig/debian/smuxi-frontend.install
+++ smuxi-0.6.4.1/debian/smuxi-frontend.install
@@ -0,0 +1 @@
+usr/lib/smuxi/smuxi-frontend.dll*
--- smuxi-0.6.4.1.orig/debian/smuxi-frontend-gnome.menu
+++ smuxi-0.6.4.1/debian/smuxi-frontend-gnome.menu
@@ -0,0 +1,3 @@
+?package(smuxi-frontend-gnome):needs="X11" section="Applications/Network/Communication"\
+  title="Smuxi" command="/usr/bin/smuxi-frontend-gnome"\
+  icon="/usr/share/pixmaps/smuxi-frontend-gnome.svg"
--- smuxi-0.6.4.1.orig/debian/smuxi-server.install
+++ smuxi-0.6.4.1/debian/smuxi-server.install
@@ -0,0 +1,2 @@
+usr/bin/smuxi-server
+usr/lib/smuxi/smuxi-server.exe*
--- smuxi-0.6.4.1.orig/debian/watch
+++ smuxi-0.6.4.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://smuxi.meebey.net/jaws/?page/Download .+/smuxi-([\d.]+)\.tar\.gz
--- smuxi-0.6.4.1.orig/debian/copyright
+++ smuxi-0.6.4.1/debian/copyright
@@ -0,0 +1,16 @@
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143
+Upstream-Name: Smuxi
+Upstream-Source: http://smuxi.meebey.net/jaws/?page/Download
+
+Files: *
+Copyright: Copyright 2005-2008, Mirco Bauer <meebey@meebey.net>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License can be
+ found in the /usr/share/common-licenses/GPL' file.
+
+Files: debian/*
+Copyright: Copyright 2008, Mirco Bauer <meebey@debian.org>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License can be
+ found in the /usr/share/common-licenses/GPL' file.
--- smuxi-0.6.4.1.orig/debian/rules
+++ smuxi-0.6.4.1/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+export DH_VERBOSE=1
+
+include /usr/share/cli-common/cli.make
+include /usr/share/quilt/quilt.make
+
+DISTRO = "$(shell lsb_release -si)"
+PATCH_LIST_FILE = $(CURDIR)/debian/patches/series
+
+$(PATCH_LIST_FILE):
+	egrep -v '(ubuntu|debian)_default_settings' $(PATCH_LIST_FILE) > $(PATCH_LIST_FILE) || true
+	if [ "$(DISTRO)" = "Ubuntu" ]; then \
+		echo ubuntu_default_settings.patch >> $(PATCH_LIST_FILE); \
+	else \
+		echo debian_default_settings.patch >> $(PATCH_LIST_FILE); \
+	fi
+
+override_dh_auto_configure: $(PATCH_LIST_FILE) patch
+	dh_auto_configure -- --enable-engine-irc --enable-frontend-gnome
+
+
+.DEFAULT:
+	dh --with-quilt $@
+
+.PHONY: $(PATCH_LIST_FILE)
--- smuxi-0.6.4.1.orig/debian/patches/debian_default_settings.patch
+++ smuxi-0.6.4.1/debian/patches/debian_default_settings.patch
@@ -0,0 +1,13 @@
+Index: smuxi-0.6.3/src/Engine/Config/Config.cs
+===================================================================
+diff -urNad smuxi-0.6.3~/src/Engine/Config/Config.cs smuxi-0.6.3/src/Engine/Config/Config.cs
+--- smuxi-0.6.3~/src/Engine/Config/Config.cs	2008-12-28 23:01:43.000000000 +0100
++++ smuxi-0.6.3/src/Engine/Config/Config.cs	2009-01-07 21:21:08.000000000 +0100
+@@ -257,6 +257,7 @@
+             Get(prefix + "OnConnectCommands",
+                 new string[] {
+                     "/join #smuxi",
++                    "/join #debian",
+                 }
+             );
+             
--- smuxi-0.6.4.1.orig/debian/patches/series
+++ smuxi-0.6.4.1/debian/patches/series
@@ -0,0 +1 @@
+debian_default_settings.patch
--- smuxi-0.6.4.1.orig/debian/patches/ubuntu_default_settings.patch
+++ smuxi-0.6.4.1/debian/patches/ubuntu_default_settings.patch
@@ -0,0 +1,18 @@
+Index: smuxi-0.6.3/src/Engine/Config/Config.cs
+===================================================================
+diff -urNad smuxi-0.6.3~/src/Engine/Config/Config.cs smuxi-0.6.3/src/Engine/Config/Config.cs
+--- smuxi-0.6.3~/src/Engine/Config/Config.cs	2008-12-28 23:01:43.000000000 +0100
++++ smuxi-0.6.3/src/Engine/Config/Config.cs	2009-03-29 18:08:03.000000000 +0200
+@@ -279,6 +279,12 @@
+             Get(prefix + "Hostname", "irc.freenode.net");
+             Get(prefix + "Port", 6667);
+             Get(prefix + "Network", "freenode");
++            Get(prefix + "OnStartupConnect", true);
++            Get(prefix + "OnConnectCommands",
++                new string[] {
++                    "/join #ubuntu",
++                }
++            );
+             
+             prefix = "Engine/Users/";
+             Get(prefix+"Users", new string[] { "local" });
