r15924 - in /trunk/libpoe-component-client-dns-perl: CHANGES DNS.pm META.yml Makefile.PL debian/changelog debian/compat debian/control debian/copyright debian/docs debian/rules t/06_hosts.t

tincho-guest at users.alioth.debian.org tincho-guest at users.alioth.debian.org
Thu Feb 28 22:42:21 UTC 2008


Author: tincho-guest
Date: Thu Feb 28 22:42:20 2008
New Revision: 15924

URL: http://svn.debian.org/wsvn/?sc=1&rev=15924
Log:
* New upstream release (Closes: #467595 from CPAN#21190).
* debian/control:
  - Remove unneeded versioned dependency on perl.
  - Properly separate B-D-I from B-D.
  - Update Net::DNS dependency.
  - Bumped Standards-Version: no changes.
  - Use epoch on versioned POE dependency.
  - Use debhelper version 5.
  - Added myself to Uploaders.
* debian/copyright: new format and updated data.
* debian/rules: done from scratch.

Removed:
    trunk/libpoe-component-client-dns-perl/debian/docs
Modified:
    trunk/libpoe-component-client-dns-perl/CHANGES
    trunk/libpoe-component-client-dns-perl/DNS.pm
    trunk/libpoe-component-client-dns-perl/META.yml
    trunk/libpoe-component-client-dns-perl/Makefile.PL
    trunk/libpoe-component-client-dns-perl/debian/changelog
    trunk/libpoe-component-client-dns-perl/debian/compat
    trunk/libpoe-component-client-dns-perl/debian/control
    trunk/libpoe-component-client-dns-perl/debian/copyright
    trunk/libpoe-component-client-dns-perl/debian/rules
    trunk/libpoe-component-client-dns-perl/t/06_hosts.t

Modified: trunk/libpoe-component-client-dns-perl/CHANGES
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/CHANGES?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/CHANGES (original)
+++ trunk/libpoe-component-client-dns-perl/CHANGES Thu Feb 28 22:42:20 2008
@@ -1,3 +1,32 @@
+======================================
+9999-99-99 99:99:99.999999Z (untagged)
+======================================
+
+  2007-01-06 18:12:47 (r64) by rcaputo; DNS.pm M
+
+    By the power of PAUSEskull, this is a fine morning! Release 1.00! 
+
+  2007-01-06 18:11:52 (r63) by rcaputo; DNS.pm M
+
+    Expose the underlying Net::DNS::Resolver with a get_resolver()
+    accessor. Thanks to Chris Williams for kinda suggesting it. :) 
+
+  2006-11-06 19:23:35 (r62) by rcaputo; Makefile.PL M
+
+    Set a LICENSE. Cheap kwalitee points!
+
+  2006-10-17 16:35:24 (r61) by rcaputo; t/06_hosts.t M
+
+    Don't try to call a method on a failed request. Resolves rt.cpan.org
+    21190 by Alexandr Ciornii. 
+
+  2006-10-17 15:05:34 (r60) by rcaputo; Makefile.PL M
+
+    Some rt.cpan.org tickets refer to issues in Net::DNS. Require the
+    latest version of that dependency in the hopes that some things are
+    fixed. Too bad I don't have test cases for those issues... there's no
+    way for me to tell if anything's fixed by this simple change. 
+
 =========================
 2006-05-21 20:45:46 v0_99
 =========================
@@ -24,69 +53,6 @@
 
     Belatedly bump up the version. 
 
-===========================
-2005-12-05 18:36:03 v0_9803
-===========================
-
-  2005-12-05 18:34:05 (r53) by rcaputo; t/04_errors.t M
-
-    Add the CATCH_EXCEPTIONS toggle that lets me catch my own damn
-    errors. Sweet! Also expanded the common test code so that line
-    numbers would be properly reported. 
-
-===========================
-2005-08-07 22:37:35 v0_9802
-===========================
-
-  2005-08-01 17:07:05 (r51) by rcaputo; DNS.pm M
-
-    Make the hosts file size significant when checking for changes. 
-
-  2005-08-01 17:06:41 (r50) by rcaputo; t/06_hosts.t M
-
-    Force an inode change in the tests, although this doesn't really have
-    an effect. 
-
-  2005-08-01 17:02:16 (r49) by rcaputo; Makefile.PL M
-
-    Update dependencies to match newest modules. 
-
-===========================
-2005-07-29 15:49:17 v0_9801
-===========================
-
-  2005-07-29 15:41:12 (r47) by rcaputo; DNS.pm M
-
-    Bump version for release. 
-
-  2005-07-28 05:59:31 (r46) by rcaputo; DNS.pm M
-
-    Some systems include IPv4 and IPv6 addresses for "localhost". OS X is
-    one of them. This commit causes the component to prefer IPv4
-    addresses when there's a choice. It's a bad fix, but it'll have to do
-    for now. We really should check whether the request is for an A or
-    AAAA record and use the appropriate address. 
-
-  2005-07-07 22:07:27 (r45) by rcaputo
-  DNS.pm M; MANIFEST M; t/06_hosts.t A
-
-    Cache /etc/hosts (or its equivalent) in memory. This should save some
-    CPU and disk access, even though the module must stat() /etc/hosts
-    for each request. This closes rt.cpan.org ticket 7916.
-    
-    Let the user supply an /etc/hosts (or equivalent) file at component
-    creation time. This lets them find hosts files in obscure locations,
-    plus it lets us write a test that verifies the caching logic by using
-    specific hosts files. This closes rt.cpan.org ticket 13581. 
-
-  2005-06-21 13:38:43 (r44) by rcaputo; MANIFEST M; Makefile.PL M
-
-    Remove META.yml from MANIFEST. It seems that "make dist" inserts it
-    and creates a META.yml file in the distribution but not in the
-    working copy.
-    
-    Change cvs-log.perl to svn-log.perl in Makefile.PL. 
-
 ==============
 End of Excerpt
 ==============

Modified: trunk/libpoe-component-client-dns-perl/DNS.pm
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/DNS.pm?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/DNS.pm (original)
+++ trunk/libpoe-component-client-dns-perl/DNS.pm Thu Feb 28 22:42:20 2008
@@ -1,4 +1,4 @@
-# $Id: DNS.pm 58 2006-05-21 20:45:11Z rcaputo $
+# $Id: DNS.pm 64 2007-01-06 18:12:47Z rcaputo $
 # License and documentation are after __END__.
 
 package POE::Component::Client::DNS;
@@ -6,7 +6,7 @@
 use strict;
 
 use vars qw($VERSION);
-$VERSION = '0.99';
+$VERSION = '1.00';
 
 use Carp qw(croak);
 
@@ -520,6 +520,13 @@
   return $self->[SF_HOSTS_CACHE]{$host};
 }
 
+### NOT A POE EVENT HANDLER
+
+sub get_resolver {
+  my $self = shift;
+  return $self->[SF_RESOLVER];
+}
+
 1;
 
 __END__
@@ -673,6 +680,16 @@
 shutdown() causes the component to terminate gracefully. It will finish
 serving pending requests then close down.
 
+=item get_resolver
+
+POE::Component::Client::DNS uses a Net::DNS::Resolver object
+internally.  get_resolver() returns that object so it may be
+interrogated or modified.  See L<Net::DNS::Resolver> for options.
+
+Set the resolver to check on nonstandard port 1153:
+
+  $poco_client_dns->resolver()->port(1153);
+
 =head1 RESPONSE MESSAGES
 
 POE::Component::Client::DNS responds in one of two ways.  Its

Modified: trunk/libpoe-component-client-dns-perl/META.yml
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/META.yml?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/META.yml (original)
+++ trunk/libpoe-component-client-dns-perl/META.yml Thu Feb 28 22:42:20 2008
@@ -1,15 +1,16 @@
 --- #YAML:1.0
 name:                POE-Component-Client-DNS
-version:             0.99
+version:             1.00
 abstract:            Non-blocking/concurrent DNS queries using Net::DNS and POE
-license:             unknown
-generated_by:        ExtUtils::MakeMaker version 6.30_01
-author:              Rocco Caputo <rcaputo at cpan.org>
+license:             perl
+generated_by:        ExtUtils::MakeMaker version 6.31
 distribution_type:   module
 requires:     
-    Net::DNS:                      0.53
+    Net::DNS:                      0.59
     POE:                           0.31
     Test::More:                    0
 meta-spec:
-    url: <http://module-build.sourceforge.net/META-spec-new.html>;
-    version: 1.1
+    url:     http://module-build.sourceforge.net/META-spec-v1.2.html
+    version: 1.2
+author:
+    - Rocco Caputo <rcaputo at cpan.org>

Modified: trunk/libpoe-component-client-dns-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/Makefile.PL?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/Makefile.PL (original)
+++ trunk/libpoe-component-client-dns-perl/Makefile.PL Thu Feb 28 22:42:20 2008
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: Makefile.PL 49 2005-08-01 17:02:16Z rcaputo $
+# $Id: Makefile.PL 62 2006-11-06 19:23:35Z rcaputo $
 
 use ExtUtils::MakeMaker;
 
@@ -10,11 +10,12 @@
   NAME         => 'POE::Component::Client::DNS',
   AUTHOR       => 'Rocco Caputo <rcaputo at cpan.org>',
   ABSTRACT     => 'Non-blocking/concurrent DNS queries using Net::DNS and POE',
+  LICENSE      => 'perl',
   VERSION_FROM => 'DNS.pm',
   PM           => { 'DNS.pm' => '$(INST_LIBDIR)/DNS.pm' },
   PREREQ_PM    => {
     'POE'        => 0.31,
-    'Net::DNS'   => 0.53,
+    'Net::DNS'   => 0.59,
     'Test::More' => 0,
   },
   dist         => {

Modified: trunk/libpoe-component-client-dns-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/changelog?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/changelog (original)
+++ trunk/libpoe-component-client-dns-perl/debian/changelog Thu Feb 28 22:42:20 2008
@@ -1,5 +1,6 @@
-libpoe-component-client-dns-perl (1:0.99-2) UNRELEASED; urgency=low
+libpoe-component-client-dns-perl (1:1.00-1) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   * Take over for the Debian Perl Group on maintainer's request; cf.
     http://lists.debian.org/debian-perl/2008/02/msg00053.html
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
@@ -8,6 +9,19 @@
     maintainers at lists.alioth.debian.org> (was: Steve Kowalik
     <stevenk at debian.org>).
   * Add debian/watch.
+
+  [ Martín Ferrari ]
+  * New upstream release (Closes: #467595 from CPAN#21190).
+  * debian/control:
+    - Remove unneeded versioned dependency on perl.
+    - Properly separate B-D-I from B-D.
+    - Update Net::DNS dependency.
+    - Bumped Standards-Version: no changes.
+    - Use epoch on versioned POE dependency.
+    - Use debhelper version 5.
+    - Added myself to Uploaders.
+  * debian/copyright: new format and updated data.
+  * debian/rules: done from scratch.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 13 Feb 2008 21:41:23 +0100
 

Modified: trunk/libpoe-component-client-dns-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/compat?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/compat (original)
+++ trunk/libpoe-component-client-dns-perl/debian/compat Thu Feb 28 22:42:20 2008
@@ -1,1 +1,1 @@
-4
+5

Modified: trunk/libpoe-component-client-dns-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/control?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/control (original)
+++ trunk/libpoe-component-client-dns-perl/debian/control Thu Feb 28 22:42:20 2008
@@ -1,16 +1,19 @@
 Source: libpoe-component-client-dns-perl
 Section: perl
 Priority: extra
-Build-Depends-Indep: debhelper (>= 4.0.0), perl (>= 5.6.0-17), libpoe-perl (>= 0.31), libnet-dns-perl, netbase
+Build-Depends: debhelper (>= 5)
+Build-Depends-Indep: perl, libpoe-perl (>= 2:0.31), libnet-dns-perl (>= 0.59),
+ netbase
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Standards-Version: 3.6.1
+Uploaders: Martín Ferrari <martin.ferrari at gmail.com>
+Standards-Version: 3.7.3
 Homepage: http://search.cpan.org/dist/POE-Component-Client-DNS/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libpoe-component-client-dns-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libpoe-component-client-dns-perl/
 
 Package: libpoe-component-client-dns-perl
 Architecture: all
-Depends: ${perl:Depends}, libpoe-perl (>= 0.31), libnet-dns-perl
+Depends: ${perl:Depends}, libpoe-perl (>= 2:0.31), libnet-dns-perl (>= 0.59)
 Description: a DNS client component for POE
  POE::Component::Client::DNS is a wrapper for non-blocking Net::DNS.
  It lets other tasks to run while something is waiting for a nameserver

Modified: trunk/libpoe-component-client-dns-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/copyright?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/copyright (original)
+++ trunk/libpoe-component-client-dns-perl/debian/copyright Thu Feb 28 22:42:20 2008
@@ -1,16 +1,26 @@
 This package was debianized by Steve Kowalik <stevenk at debian.org> on
 Sun,  15 Jul 2001 12:24:15 +1000.
+It was downloaded from: http://search.cpan.org/dist/POE-Component-Client-DNS/
+Upstream Author: Rocco Caputo <rcaputo at cpan.org>.
 
-It was downloaded from: ftp://ftp.cpan.org/pub/CPAN/authors/id/R/RC/RCAPUTO/ 
+Files: *
+Copyright: © 1999-2008 Rocco Caputo. All rights are reserved.
+License: Artistic | GPL-1+
+ (Copyright years were obviously outdated)
+ .
+ POE::Component::Client::DNS is Copyright 1999-2004 by Rocco Caputo.
+ All rights are reserved.  POE::Component::Client::DNS is free
+ software; you may redistribute it and/or modify it under the same
+ terms as Perl itself.
 
-Upstream Author: Rocco Caputo <troc at netrus.net>
-
-Copyright:
-
-Except where otherwise noted, POE::Component::Client::DNS is Copyright 
-1998-2001 Rocco Caputo. All rights reserved.  POE::Component::Client::DNS  
-is free software; you may redistribute it and/or modify it under the same 
-terms as Perl itself.
+Files: debian/*
+Copyright: © 2008 Debian Perl Group
+                  <pkg-perl-maintainers at lists.alioth.debian.org>
+           © 2006 Michael Ablassmeier <abi at debian.org>
+           © 2001-2005 Steve Kowalik <stevenk at debian.org>
+License: Other
+ It is assumed that the previous maintainers did choose a license compatible
+ with the software.
 
 The GPL and Artistic licenses can be found under 
 /usr/share/common-licenses/{GPL,Artistic} on Debian systems.

Modified: trunk/libpoe-component-client-dns-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/debian/rules?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/debian/rules (original)
+++ trunk/libpoe-component-client-dns-perl/debian/rules Thu Feb 28 22:42:20 2008
@@ -1,68 +1,57 @@
 #!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-ifndef PERL
-PERL = /usr/bin/perl
-endif
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE = $(shell dh_listpackages)
+PERL   ?= /usr/bin/perl
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-
-	# Add here commands to compile the package.
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -Wall"
+	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) realclean
-
-	dh_clean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: 
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
-	# Add here commands to install the package into debian/tmp.
-	$(MAKE) install PREFIX=$(CURDIR)/debian/libpoe-component-client-dns-perl/usr
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs
-	dh_installman
+	dh_installdocs README
 	dh_installchangelogs CHANGES
-	dh_link
-	dh_strip
+	dh_perl 
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-source diff:                                                                  
+source diff:
 	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
 binary: binary-indep binary-arch

Modified: trunk/libpoe-component-client-dns-perl/t/06_hosts.t
URL: http://svn.debian.org/wsvn/trunk/libpoe-component-client-dns-perl/t/06_hosts.t?rev=15924&op=diff
==============================================================================
--- trunk/libpoe-component-client-dns-perl/t/06_hosts.t (original)
+++ trunk/libpoe-component-client-dns-perl/t/06_hosts.t Thu Feb 28 22:42:20 2008
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: 06_hosts.t 56 2006-05-21 20:43:08Z rcaputo $
+# $Id: 06_hosts.t 61 2006-10-17 16:35:24Z rcaputo $
 # vim: filetype=perl
 
 # Test the hosts file stuff.
@@ -99,6 +99,7 @@
 
 sub a_data {
   my $response = shift;
+  return "" unless defined $response->{response};
 
   return (
     grep { ref() eq "Net::DNS::RR::A" } $response->{response}->answer()




More information about the Pkg-perl-cvs-commits mailing list