debian/0000755000000000000000000000000012046302526007166 5ustar debian/watch0000644000000000000000000000015412046302526010217 0ustar version=3 http://search.cpan.org/dist/Net-XMPP/ .+/Net-XMPP-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/compat0000644000000000000000000000000212046302526010364 0ustar 8 debian/changelog0000644000000000000000000000731112046302526011042 0ustar libnet-xmpp-perl (1.02-3) unstable; urgency=low * Team upload. * Add 626897_check-definedness-of-hash-key-before-use.patch to silence an irritating warning in current versions of Perl (closes: #626897). -- Florian Schlichting Sun, 04 Nov 2012 21:30:22 +0100 libnet-xmpp-perl (1.02-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). * debian/control: Added: ${misc:Depends} to Depends: field. * Remove Florian Ragwitz from Uploaders (closes: #523255). [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * Update test patch to work with Perl 5.14: skip tests in "use Test::More" (taken from libnet-jabber-perl and Dominic's changes there). (Closes: #636393) * Switch to source format 3.0 (quilt); remove quilt framework. * Update patch headers. * Use debhelper 8 and tiny debian/rules file. Don't install README anymore. * debian/copyright: use DEP5 formatting. * Set Standards-Version to 3.9.2 (no changes). * Add patch to use Digest::SHA instead of Digest::SHA1 (cf. #594273); remove libdigest-sha1-perl from debian/control. * Add a new patch to fix some spelling mistakes. -- gregor herrmann Mon, 08 Aug 2011 20:16:43 +0200 libnet-xmpp-perl (1.02-1) unstable; urgency=low [ gregor herrmann ] * Take over for the Debian Perl Group with maintainer's permission (http://lists.debian.org/debian-perl/2008/06/msg00039.html) * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Changed: Maintainer set to Debian Perl Group (was: Florian Ragwitz ); Florian Ragwitz moved to Uploaders. * Add debian/watch. * Switch patch system from dpatch to quilt. [ Damyan Ivanov ] * New upstream release [ gregor herrmann ] * debian/copyright: use author-independent upstream URL; point to correct file in /usr/share/common-licenses/; add copyright/license information for files in t/Lib/Test/*. * Set Standards-Version to 3.8.0; add debian/README.source to document quilt usage. * Add /me to Uploaders. * Refresh debian/rules, no functional changes. * Add libmodule-build-perl to Build-Depends. * Remove debian/docs, let debian/rules install the README. -- gregor herrmann Wed, 09 Jul 2008 19:42:00 +0200 libnet-xmpp-perl (1.0-2.1) unstable; urgency=low * Non-maintainer upload. * Fix FTBFS with Perl 5.10. Closes: #467874 -- Mark Hymers Sat, 05 Apr 2008 21:09:09 +0100 libnet-xmpp-perl (1.0-2) unstable; urgency=medium * Use my @debian.org address in the Maintainer field. * Clean up debian/rules. * Use DH_COMPAT 5. * Build depend on dpatch. * Remov adn's hack which moves t/2_* and t/3_* out of the way before running make test and replace it with a dpatch which skips those tests properly. -- Florian Ragwitz Sun, 6 Aug 2006 18:30:15 +0200 libnet-xmpp-perl (1.0-1.1) unstable; urgency=low * Non-maintainer upload. * Hack to disable t/2_client_jabberd1.4.t and t/3_client_jabberd2.t tests that try to connect the network and causes FTBFS. (Closes: #380269) * Bump Standards-Version to 3.7.2 - update FSF address -- Mohammed Adnène Trojette Sat, 5 Aug 2006 21:54:45 +0200 libnet-xmpp-perl (1.0-1) unstable; urgency=low * Initial Release (Closes: #272845). -- Florian Ragwitz Wed, 22 Sep 2004 13:03:02 +0200 debian/source/0000755000000000000000000000000012046302526010466 5ustar debian/source/format0000644000000000000000000000001412046302526011674 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000327012046302526011123 0ustar Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=135 Maintainer: Eric Hacker Source: http://search.cpan.org/dist/Net-XMPP/ Name: Net-XMPP Files: * Copyright: 1998-2004, Jabber Software Foundation http://jabber.org/ License: LGPL-2+ Files: t/Lib/Test/* Copyright: 2001, Michael G Schwern License: Artistic or GPL-1+ Files: debian/* Copyright: 2004-2006, Florian Ragwitz 2006, Mohammed Adnène Trojette 2008, 2011, gregor herrmann 2008, Mark Hymers License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ 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 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: LGPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU Library General Public License can be found in `/usr/share/common-licenses/LGPL-2'. debian/rules0000755000000000000000000000003512046302526010244 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000170612046302526010575 0ustar Source: libnet-xmpp-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: gregor herrmann Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libxml-stream-perl, libauthen-sasl-perl Standards-Version: 3.9.2 Homepage: http://search.cpan.org/dist/Net-XMPP/ Vcs-Git: git://git.debian.org/pkg-perl/packages/libnet-xmpp-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnet-xmpp-perl.git Package: libnet-xmpp-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libxml-stream-perl, libauthen-sasl-perl Description: XMPP Perl library Net::XMPP is a convenient tool to use for any perl script that would like to utilize the XMPP Instant Messaging protocol. While not a client in and of itself, it provides all of the necessary back-end functions to make a CGI client or command-line perl client feasible and easy to use. debian/libnet-xmpp-perl.examples0000644000000000000000000000001312046302526014117 0ustar examples/* debian/patches/0000755000000000000000000000000012046302526010615 5ustar debian/patches/626897_check-definedness-of-hash-key-before-use.patch0000644000000000000000000000144112046302526022210 0ustar Description: Check definedness of hash key before use An annoying warning is emitted since Perl 5.12, revealing sloppy coding. Origin: http://github.com/dap/Net-XMPP/commit/2d1164d7c50d7c034f3d1efb03ad9319b24dfd24 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=58333 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626897 Reviewed-by: Florian Schlichting --- a/lib/Net/XMPP/Debug.pm +++ b/lib/Net/XMPP/Debug.pm @@ -151,7 +151,7 @@ my %args; while($#_ >= 0) { $args{ lc pop(@_) } = pop(@_); } - delete($args{file}) if (lc($args{file}) eq "stdout"); + delete($args{file}) if (defined $args{file} && lc($args{file}) eq "stdout"); $args{time} = 0 if !exists($args{time}); $args{setdefault} = 0 if !exists($args{setdefault}); debian/patches/spelling.patch0000644000000000000000000000355412046302526013462 0ustar Description: fix some spelling mistakes Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2011-08-08 --- a/lib/Net/XMPP.pm +++ b/lib/Net/XMPP.pm @@ -68,7 +68,7 @@ directly in your code. Instead you will instantiate objects that call functions from this module to do work. The three main objects that you will work with are the Message, Presence, and IQ modules. Each one - corresponds to the Jabber equivilant and allows you get and set all + corresponds to the Jabber equivalent and allows you get and set all parts of those packets. There are a few functions that are the same across all of the objects: --- a/lib/Net/XMPP/Namespaces.pm +++ b/lib/Net/XMPP/Namespaces.pm @@ -118,7 +118,7 @@ In jabber:iq:roster, the tag can be repeated multiple times, and is sort of like a mini-namespace in itself. To that end, we treat - it like a seperate namespace and defined a __netxmpp__:iq:roster:item + it like a separate namespace and defined a __netxmpp__:iq:roster:item namespace to hold it. What happens is this, in my code I define that the s tag is "item" and anything with that tag name is to create a new Net::XMPP::Stanza object with the namespace --- a/lib/Net/XMPP/Protocol.pm +++ b/lib/Net/XMPP/Protocol.pm @@ -283,7 +283,7 @@ send=>function, , , and receive=>function, . If a packet is received update=>function) with an ID which is found in the - registerd ID list (see RegisterID + registered ID list (see RegisterID below) then it is not sent to these functions, instead it is inserted into a LIST and can debian/patches/disable_networking_tests.patch0000644000000000000000000000117012046302526016731 0ustar Description: Disable tests which require a network connection Forwarded: not-needed Author: Florian Ragwitz Reviewed-by: gregor herrmann Last-Update: 2011-08-08 --- a/t/2_client_jabberd1.4.t +++ b/t/2_client_jabberd1.4.t @@ -1,5 +1,5 @@ use lib "t/lib"; -use Test::More tests=>5; +use Test::More skip_all => 'Disabled for the Debian build'; BEGIN{ use_ok( "Net::XMPP" ); } --- a/t/3_client_jabberd2.t +++ b/t/3_client_jabberd2.t @@ -1,5 +1,5 @@ use lib "t/lib"; -use Test::More tests=>5; +use Test::More skip_all => 'Disabled for the Debian build'; BEGIN{ use_ok( "Net::XMPP" ); } debian/patches/digest-sha.patch0000644000000000000000000000361112046302526013667 0ustar Description: use Digest::SHA instead of Digest::SHA1 Origin: vendor Bug: https://rt.cpan.org/Ticket/Display.html?id=68181 Forwarded: no Author: gregor herrmann Last-Update: 2011-08-08 --- a/Build.PL +++ b/Build.PL @@ -10,7 +10,7 @@ dist_version_from => 'lib/Net/XMPP.pm', requires => { 'XML::Stream' => 1.22, - 'Digest::SHA1' => 1.02, + 'Digest::SHA' => 0, }, create_makefile_pl => 'passthrough', ); --- a/lib/Net/XMPP/Protocol.pm +++ b/lib/Net/XMPP/Protocol.pm @@ -1880,12 +1880,12 @@ #-------------------------------------------------------------------------- if ($authType eq "zerok") { - my $hashA = Digest::SHA1::sha1_hex(delete($args{password})); - $args{hash} = Digest::SHA1::sha1_hex($hashA.$token); + my $hashA = Digest::SHA::sha1_hex(delete($args{password})); + $args{hash} = Digest::SHA::sha1_hex($hashA.$token); for (1..$sequence) { - $args{hash} = Digest::SHA1::sha1_hex($args{hash}); + $args{hash} = Digest::SHA::sha1_hex($args{hash}); } } @@ -1900,7 +1900,7 @@ if ($authType eq "digest") { my $password = delete($args{password}); - $args{digest} = Digest::SHA1::sha1_hex($self->GetStreamID().$password); + $args{digest} = Digest::SHA::sha1_hex($self->GetStreamID().$password); } #-------------------------------------------------------------------------- --- a/META.yml +++ b/META.yml @@ -9,7 +9,7 @@ license: |- http://opensource.org/licenses/artistic-license.php requires: - Digest::SHA1: 1.02 + Digest::SHA: 0 XML::Stream: 1.22 provides: Net::XMPP: --- a/lib/Net/XMPP.pm +++ b/lib/Net/XMPP.pm @@ -219,7 +219,7 @@ use XML::Stream 1.22 qw( Node ); use Time::Local; use Carp; -use Digest::SHA1; +use Digest::SHA; use Authen::SASL; use MIME::Base64; use POSIX; debian/patches/series0000644000000000000000000000016512046302526012034 0ustar disable_networking_tests.patch digest-sha.patch spelling.patch 626897_check-definedness-of-hash-key-before-use.patch