Index: debian/bitlbee-plugin-skype.docs
===================================================================
--- debian/bitlbee-plugin-skype.docs	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
+++ debian/bitlbee-plugin-skype.docs	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -0,0 +1,2 @@
+protocols/skype/NEWS
+protocols/skype/README
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 9e7a566e5c98d697636cf9e96cd38cb32d18a6d7)
+++ debian/changelog	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -1,2 +1,12 @@
+bitlbee (3.0.4-0) unstable; urgency=low
+
+  * New upstream release.
+  * Added bitlbee-plugin-skype and skyped packages, now part of BitlBee
+    instead of a separate package.
+  * Fixed dependencies of bitlbee-plugin-otr package to not break with
+    binary MTUs. (Closes: #651612)
+
+ -- Wilmer van der Gaast <wilmer@gaast.net>  Sat, 10 Dec 2011 22:42:08 +0000
+
 bitlbee (3.0.3-1) unstable; urgency=low
 
Index: debian/control
===================================================================
--- debian/control	(revision 9e7a566e5c98d697636cf9e96cd38cb32d18a6d7)
+++ debian/control	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -61,5 +61,5 @@
 Package: bitlbee-plugin-otr
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}, bitlbee (= ${bee:Version}) | bitlbee-libpurple (= ${bee:Version}), bitlbee-common (= ${bee:Version})
+Depends: ${misc:Depends}, ${shlibs:Depends}, bitlbee (>= ${bee:Version}) | bitlbee-libpurple (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~) | bitlbee-libpurple (<< ${bee:Version}.1~)
 Description: An IRC to other chat networks gateway (OTR plugin)
  This program can be used as an IRC server which forwards everything you
@@ -69,2 +69,25 @@
  This package contains a plugin that adds support for Off-The-Record
  encryption of instant messages.
+
+Package: bitlbee-plugin-skype
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, bitlbee (>= ${bee:Version}) | bitlbee-libpurple (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~) | bitlbee-libpurple (<< ${bee:Version}.1~)
+Recommends: skyped
+Description: An IRC to other chat networks gateway (Skype plugin)
+ This program can be used as an IRC server which forwards everything you
+ say to people on other chat networks: Jabber (which includes Google Talk
+ and Facebook Chat), ICQ, AIM, MSN, Yahoo! and Twitter/Identica/Status.net.
+ .
+ This package contains a plugin that adds support for the Skype IM network.
+ You need to download and install the Skype client for this to work.
+
+Package: skyped
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.5), python-gnutls, python-skype (>=0.9.28.7)
+Recommends: skype
+Description: Daemon to control Skype remotely
+ Daemon to control the GUI Skype client. Currently required to control Skype
+ from the BitlBee IRC2IM gateway. Skyped and Skype can run on a different
+ host than the BitlBee server, the communication is encrypted.
+ .
+ You need to download and install the Skype client for this to work.
Index: debian/rules
===================================================================
--- debian/rules	(revision 9e7a566e5c98d697636cf9e96cd38cb32d18a6d7)
+++ debian/rules	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -11,4 +11,5 @@
 BITLBEE_LIBPURPLE ?= 1
 BITLBEE_OTR ?= plugin
+BITLBEE_SKYPE ?= plugin
 BITLBEE_CONFIGURE_FLAGS ?=
 DEBUG ?= 0
@@ -27,4 +28,8 @@
 endif
 
+ifneq ($(BITLBEE_SKYPE),plugin)
+DH_OPTIONS += -Nbitlbee-plugin-skype -Nskyped
+endif
+
 build: build-stamp
 build-stamp:
@@ -32,5 +37,5 @@
 
 	mkdir -p debian/build-native
-	ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent --otr=$(BITLBEE_OTR) $(BITLBEE_CONFIGURE_FLAGS)
+	ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent --otr=$(BITLBEE_OTR) --skype=$(BITLBEE_SKYPE) $(BITLBEE_CONFIGURE_FLAGS)
 	$(MAKE) -C debian/build-native
 
@@ -64,5 +69,9 @@
 	$(MAKE) -C debian/build-native install-etc install-doc DESTDIR=`pwd`/debian/bitlbee-common
 	$(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
-	$(MAKE) -C debian/build-native install-plugins DESTDIR=`pwd`/debian/bitlbee-plugin-otr
+	$(MAKE) -C debian/build-native install-plugin-otr DESTDIR=`pwd`/debian/bitlbee-plugin-otr
+	$(MAKE) -C debian/build-native install-plugin-skype DESTDIR=`pwd`/debian/skyped
+
+	mkdir -p debian/bitlbee-plugin-skype/usr
+	mv debian/skyped/usr/lib debian/bitlbee-plugin-skype/usr
 
 ifeq ($(BITLBEE_LIBPURPLE),1)
Index: debian/skyped.README.Debian
===================================================================
--- debian/skyped.README.Debian	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
+++ debian/skyped.README.Debian	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -0,0 +1,18 @@
+bitlbee-skype for Debian
+------------------------
+
+The upstream package installs global configuration files in /etc. Since 
+configuration cannot be used by multiple users, however, the default for 
+Debian packages is in ~/.skyped/. Please copy the configuration files 
+from ./examples to ~/.skyped/. 
+
+You will also need to change the configuration values in skyped.conf 
+and skyped.cnf to suit your needs and create the keys. More information
+in the respective files as well as the README.gz.
+
+Without these measures, skyped will NOT work. 
+
+You need to download the official skype client for this to be of any
+use. Go to http://www.skype.com/.
+
+ -- David Spreen <netzwurm@debian.org>, Thu,  2 Apr 2009 15:01:25 -0700
Index: debian/skyped.docs
===================================================================
--- debian/skyped.docs	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
+++ debian/skyped.docs	(revision 57da9609d3b24014813ec39af844c70c466bcd9c)
@@ -0,0 +1,2 @@
+protocols/skype/NEWS
+protocols/skype/README
