--- telepathy-idle-0.1.6.orig/debian/update-patches.mk
+++ telepathy-idle-0.1.6/debian/update-patches.mk
@@ -0,0 +1,10 @@
+update-patches:
+	mkdir -p $(CURDIR)/debian/patches
+	rm -f $(CURDIR)/debian/patches/*.patch
+	git-format-patch -o $(CURDIR)/debian/patches debian-patches ^upstream
+	for patch in $$(ls $(CURDIR)/debian/patches/*.patch) ; \
+	do \
+		lines=$$(cat $$patch | wc -l) ; \
+		head -n $$(($$lines - 3)) $$patch > $${patch}.chomped ; \
+			mv $${patch}.chomped $$patch ; \
+	done
--- telepathy-idle-0.1.6.orig/debian/README.source
+++ telepathy-idle-0.1.6/debian/README.source
@@ -0,0 +1,59 @@
+Patches
+=======
+
+This package occasionally uses cdbs simple-patch-system to store
+modifications to the upstream source, although in most uploads no patches
+are needed.
+
+To get the fully patched source: make -f debian/rules patch
+
+To revert to what's in git: make -f debian/rules unpatch
+
+To add a patch: obtain a diff and put it in debian/patches, or see below
+
+To remove an existing patch: delete it from debian/patches
+
+Packaging using git
+===================
+
+The repository contains an appropriate debian/gbp.conf to build this package
+using git-buildpackage. The debian branch contains the latest upstream versions
+(for unstable, or experimental while a freeze is in progress). The debian-lenny
+branch contains versions targeted for lenny, etc.
+
+Here's how to build it:
+
+    git clone git://git.debian.org/git/pkg-telepathy/telepathy-idle
+    cd telepathy-idle
+    git checkout debian
+    git-buildpackage -us -uc
+
+or for testing/stable branches like debian-lenny:
+
+    git clone git://git.debian.org/git/pkg-telepathy/telepathy-idle
+    cd telepathy-idle
+    git checkout debian-lenny
+    git-buildpackage -us -uc --git-debian-branch=debian-lenny
+
+The branch 'upstream' is a copy of the contents of upstream tarballs. To import
+upstream tarballs use:
+
+    git checkout debian
+    git-import-orig ~/telepathy-idle-0.x.tar.gz
+
+The branch 'debian-patches' is 'upstream' plus any patches needed for Debian.
+It should be rebased on 'upstream' after each upstream release:
+
+    git checkout debian-patches
+    git rebase upstream
+
+The preferred way of adding patches is to cherry pick from an upstream
+repository:
+
+    git remote add collabora \
+        git+ssh://git.collabora.co.uk/git/telepathy-idle.git
+    git fetch
+    git checkout debian-patches
+    git cherry-pick xxxxxxxxxxxxxx
+    git checkout debian
+    fakeroot debian/rules update-patches
--- telepathy-idle-0.1.6.orig/debian/watch
+++ telepathy-idle-0.1.6/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://telepathy.freedesktop.org/releases/telepathy-idle/telepathy\-idle\-(.*)\.tar\.gz
--- telepathy-idle-0.1.6.orig/debian/changelog
+++ telepathy-idle-0.1.6/debian/changelog
@@ -0,0 +1,137 @@
+telepathy-idle (0.1.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control: Upped tp-glib build-dep to 0.8.0.
+
+ -- Jonny Lamb <jonny@debian.org>  Fri, 19 Feb 2010 13:58:33 +0000
+
+telepathy-idle (0.1.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/rules: Pass --disable-silent-rules to get more verbose build logs.
+  * debian/control: Upped Standards-Version. (no changes)
+
+ -- Jonny Lamb <jonny@debian.org>  Mon, 14 Sep 2009 14:46:37 +0100
+
+telepathy-idle (0.1.3-1) unstable; urgency=low
+
+  [ Simon McVittie ]
+  * Set libexecdir to /usr/lib/telepathy/ in debian/rules - future upstream
+    releases will install to libexecdir, and for Debian we've decided to put
+    all Telepathy D-Bus services in the same directory, since each source
+    package generally only installs one service
+  * Set bindir to /usr/lib/telepathy too, so the current version gets moved
+    to that directory too
+  * Provide a man page
+  * Use debian.org email addresses for me and Laurent
+  * Move packaging to git
+
+  [ Laurent Bigonville ]
+  * Remove debian/telepathy-idle.8 on clean
+  * Use new Homepage field instead of old pseudo-field
+  * Use now official Vcs-* field
+
+  [ Jonny Lamb ]
+  * New upstream release.
+  * debian/gbp.conf: Removed no-create-orig field.
+  * debian/control:
+    + Added myself to Uploaders.
+    + Upped Standards-Version to 3.8.0.
+    + Upped build-dep on libtelepathy-glib-dev to >= 0.7.15.
+    + Removed duplicate Section field.
+  * debian/rules: Corrected s/class/rules/ typo in including
+    simple-patchsys.mk.
+  * debian/copyright: Link to LGPL-2.1 instead of LGPL in common-licenses.
+
+ -- Jonny Lamb <jonny@debian.org>  Fri, 20 Feb 2009 19:05:44 +0000
+
+telepathy-idle (0.1.2-1) unstable; urgency=low
+
+  [ Laurent Bigonville ]
+  * Adding watch file
+  * Add XS-Vcs-Bzr to control file
+  * Add myself as an Uploaders
+
+  [ Simon McVittie ]
+  * New upstream version 0.1.2 (build-system-only release)
+    - drop build dependency on libtelepathy-glib-unstable static library,
+      we now use an internal copy of the Renaming interface
+    - one of the build system improvements Closes: 442746
+  * Include Collabora copyright in copyright file, update years
+  * Use http://wiki.debian.org/Proposals/CopyrightFormat for copyright file
+  * Fix "dpkg-genchanges: warning: missing Section for source files"
+
+  [ Sjoerd Simons ]
+  * Add build-depend on xsltproc
+  * Wrap the build-depends and uploaders fields
+  * Add build-depend on python
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Sat, 29 Sep 2007 12:42:20 +0200
+
+telepathy-idle (0.1.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Wed, 13 Jun 2007 08:29:32 +0200
+
+telepathy-idle (0.1.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Set the pkg-telepathy team as the maintainer, with the usual suspects as
+    uploaders
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Thu, 10 May 2007 10:58:33 +0200
+
+telepathy-idle (0.0.5-1) unstable; urgency=low
+
+  [ Simon McVittie ]
+  * New upstream release.
+
+  [ Sjoerd Simons ]
+  * Set myself as the maintainer for now and add Simon McVittie and Dafydd
+    Harries as uploaders.
+  * Correct Olli Salli's mail address
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Thu, 12 Apr 2007 20:02:33 +0200
+
+telepathy-idle (0.0.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added myself as Uploaders:
+
+ -- Riccardo Setti <giskard@debian.org>  Tue, 30 Jan 2007 10:55:45 +0100
+
+telepathy-idle (0.0.3-1) unstable; urgency=low
+
+  [ Daniel Holbach ]
+  * debian/control:
+    - telepathy-idle provides telepathy-connection-manager.
+
+  [ Sjoerd Simons ]
+  * New upstream release
+
+ -- Sjoerd Simons <sjoerd@debian.org>  Thu, 25 Jan 2007 13:02:28 +0100
+
+telepathy-idle (0.0.2.1-1ubuntu1) edgy; urgency=low
+
+  * Fix build dependencies
+
+ -- Christophe Sauthier <christophe.sauthier@gmail.com>  Tue, 21 Sep 2006 12:08:27 +0200
+
+telepathy-idle (0.0.2.1-1) unstable; urgency=low
+
+  * Fix autotools
+
+ -- Olli Salli <olli.salli@collabora.co.uk>  Tue, 19 Sep 2006 22:05:27 +0300
+
+telepathy-idle (0.0.2-1) unstable; urgency=low
+
+  * Support for Telepathy spec version 0.13.4
+
+ -- Olli Salli <olli.salli@collabora.co.uk>  Tue, 19 Sep 2006 18:24:04 +0300
+
+telepathy-idle (0.0.1-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Olli Salli <olli.salli@collabora.co.uk>  Tue, 19 Sep 2006 16:50:28 +0300
--- telepathy-idle-0.1.6.orig/debian/control
+++ telepathy-idle-0.1.6/debian/control
@@ -0,0 +1,29 @@
+Source: telepathy-idle
+Section: net
+Priority: optional
+Maintainer: Debian Telepathy maintainers <pkg-telepathy-maintainers@lists.alioth.debian.org>
+Uploaders: Dafydd Harries <daf@debian.org>,
+           Riccardo Setti <giskard@debian.org>,
+           Simon McVittie <smcv@debian.org>,
+           Sjoerd Simons <sjoerd@debian.org>,
+           Laurent Bigonville <bigon@debian.org>,
+           Jonny Lamb <jonny@debian.org>
+Build-Depends: debhelper (>= 5),
+               cdbs,
+               libglib2.0-dev (>= 2.4),
+               libdbus-glib-1-dev (>= 0.51),
+               libssl-dev,
+               libtelepathy-glib-dev (>= 0.8.0),
+               xsltproc,
+               python
+Standards-Version: 3.8.3
+Vcs-Git: git://git.debian.org/git/pkg-telepathy/telepathy-idle.git
+Vcs-Browser: http://git.debian.org/?p=pkg-telepathy/telepathy-idle.git
+Homepage: http://sourceforge.net/projects/telepathy-idle
+
+Package: telepathy-idle
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: telepathy-connection-manager
+Description: IRC connection manager for Telepathy
+ A full-featured IRC connection manager for the Telepathy project.
--- telepathy-idle-0.1.6.orig/debian/gbp.conf
+++ telepathy-idle-0.1.6/debian/gbp.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+debian-branch = debian
+upstream-branch = upstream
+pristine-tar = True
+
+[git-buildpackage]
+tarball-dir = ../tarballs/
+export-dir = ../build-area/
--- telepathy-idle-0.1.6.orig/debian/telepathy-idle.8.in
+++ telepathy-idle-0.1.6/debian/telepathy-idle.8.in
@@ -0,0 +1,28 @@
+.TH TELEPATHY-IDLE "8" "October 2007" "Telepathy" "D-Bus services"
+\" This man page was written by Simon McVittie for the Debian project,
+\" but may be used by others.
+\" Copyright © 2007 Collabora Ltd. <http://www.collabora.co.uk/>
+\" It may be distributed under the same terms as telepathy-idle itself.
+.SH NAME
+telepathy-idle \- Telepathy connection manager for IRC
+.SH SYNOPSIS
+\fB@libexecdir@/telepathy\-idle\fR
+.SH DESCRIPTION
+Idle implements the Telepathy D-Bus specification for Internet Relay Chat,
+allowing Telepathy clients like
+.BR empathy (1)
+to connect to IRC servers.
+.PP
+It is a D-Bus service which runs on the session bus, and should usually be
+started automatically by D-Bus activation. However, it might be useful to
+start it manually for debugging.
+.SH OPTIONS
+There are no command-line options.
+.SH ENVIRONMENT
+.TP
+\fBIDLE_DEBUG\fR=\fItype\fR
+May be set to "all" for full debug output, or various undocumented options
+(which may change from release to release) to filter the output.
+.SH SEE ALSO
+.IR http://telepathy.freedesktop.org/ ,
+.BR empathy (1)
--- telepathy-idle-0.1.6.orig/debian/copyright
+++ telepathy-idle-0.1.6/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Olli Salli <olli.salli@collabora.co.uk>
+
+Upstream authors:
+	Author:
+	Olli Salli          <olli.salli@collabora.co.uk>
+
+	Nokia contact:
+	Jussi Laako         <jussi.laako@nokia.com>
+
+Files: *
+Copyright: © 2006-2007 Collabora Limited
+           © 2006-2007 Nokia Corporation
+License: LGPL-2.1
+    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.
+    .
+    On Debian systems, the complete text of the GNU Lesser General Public
+    License can be found in /usr/share/common-licenses/LGPL-2.1.
--- telepathy-idle-0.1.6.orig/debian/rules
+++ telepathy-idle-0.1.6/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+# List any files which are not installed
+include /usr/share/cdbs/1/rules/utils.mk
+common-binary-post-install-arch:: list-missing
+
+# Man page
+common-post-build-arch::
+	sed -e s!@libexecdir@!/usr/lib/telepathy! \
+		< debian/telepathy-idle.8.in \
+		> debian/telepathy-idle.8
+DEB_INSTALL_MANPAGES_telepathy-idle := debian/telepathy-idle.8
+
+clean::
+	-rm debian/telepathy-idle.8
+
+# Upstream releases are going to move CMs to libexecdir soon...
+DEB_CONFIGURE_LIBEXECDIR := "\$${prefix}/lib/telepathy"
+# but haven't done so yet, so let's give Debian a head start
+DEB_CONFIGURE_EXTRA_FLAGS := --bindir=$(DEB_CONFIGURE_LIBEXECDIR) --disable-silent-rules
+
+include $(CURDIR)/debian/update-patches.mk
--- telepathy-idle-0.1.6.orig/debian/compat
+++ telepathy-idle-0.1.6/debian/compat
@@ -0,0 +1 @@
+5
