debian/0000755000000000000000000000000012231173626007171 5ustar debian/watch0000644000000000000000000000020111764472353010224 0ustar version=3 http://search.cpan.org/dist/Socket-GetAddrInfo/ .*/Socket-GetAddrInfo-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/clean0000644000000000000000000000006611764472353010211 0ustar Makefile socket-gai-config.h lib/Socket/GetAddrInfo.c debian/rules0000755000000000000000000000061211764472353010261 0ustar #!/usr/bin/make -f PKG:=$(shell dh_listpackages) TMP:=$(CURDIR)/debian/$(PKG) %: dh $@ override_dh_auto_build: dh_auto_build mv blib/script/getaddrinfo blib/script/socket_getaddrinfo mv blib/script/getnameinfo blib/script/socket_getnameinfo override_dh_install: dh_install rm $(TMP)/usr/bin/get*info override_dh_installman: dh_installman rm $(TMP)/usr/share/man/man1/get*info.1p debian/README.Debian0000644000000000000000000000354111764472353011246 0ustar Since version 0.20, upstream have distributed getnameinfo and getaddrinfo as scripts in the bin directory. Superficially the functionality of these scripts is a subset of that provided by 'dig' and 'nslookup'. However this is not really correct. 'dig' and 'nslookup' are both DNS clients; they directly talk DNS to diagnose DNS problems. The utility of these utilities, however, is that they provide a shell output showing _exactly_ what a normal userland binary would do to resolve hostnames into addresses or vice versa; INCLUDING the IPv4/IPv6 ordering, or for example /etc/hosts. This ordering can be the subject of many subtle bugs in connections, either causing timeouts, delays, or outright failures. It is useful to have a commandline debug tool for getaddrinfo(3) in such scenarios. Neither 'dig' nor 'nslookup' can be of any help diagnosing these problems. In Debian, these scripts have been renamed as follows: socket_getaddrinfo - look up address from host name socket_getnameinfo - look up name from address $ socket_getaddrinfo --passive --service 8034 Resolved host '', service '8034' socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '0.0.0.0:8034' socket(AF_INET , SOCK_DGRAM , IPPROTO_UDP) + '0.0.0.0:8034' socket(AF_INET , SOCK_RAW , IPPROTO_IP ) + '0.0.0.0:8034' socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) + '[::]:8034' socket(AF_INET6, SOCK_DGRAM , IPPROTO_UDP) + '[::]:8034' socket(AF_INET6, SOCK_RAW , IPPROTO_IP ) + '[::]:8034' $ socket_getaddrinfo --service 8034 Resolved host '', service '8034' socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) + '[::1]:8034' socket(AF_INET6, SOCK_DGRAM , IPPROTO_UDP) + '[::1]:8034' socket(AF_INET6, SOCK_RAW , IPPROTO_IP ) + '[::1]:8034' socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '127.0.0.1:8034' socket(AF_INET , SOCK_DGRAM , IPPROTO_UDP) + '127.0.0.1:8034' socket(AF_INET , SOCK_RAW , IPPROTO_IP ) + '127.0.0.1:8034' debian/copyright0000644000000000000000000000270511764472353011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Socket-GetAddrInfo Upstream-Contact: Paul Evans Source: http://search.cpan.org/dist/Socket-GetAddrInfo/ Files: * Copyright: 2012, Paul Evans License: Artistic or GPL-1+ Files: ppport.h Copyright: 2004-2009, Marcus Holland-Moritz 2001, Paul Marquess (Version 2.x) 1999, Kenneth Albanowski (Version 1.x) License: Artistic or GPL-1+ Files: debian/* Copyright: 2009-2010, Jonathan Yu 2009, Nathan Handler 2010-2011, Nicholas Bamber 2010, Ansgar Burchardt 2012, gregor herrmann 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'. debian/source/0000755000000000000000000000000011764472353010502 5ustar debian/source/format0000644000000000000000000000001411764472353011710 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011764472353010631 5ustar debian/patches/rename_scripts.patch0000644000000000000000000000240411764472353014670 0ustar Author: Nicholas Bamber Subject: Rename scripts Last-Update: 2011-03-19 Forwarded: not-needed --- a/bin/getaddrinfo +++ b/bin/getaddrinfo @@ -170,11 +170,11 @@ =head1 NAME -C - command-line tool to C resolver +C - command-line tool to C resolver =head1 SYNOPSIS -B [I] I I +B [I] I I =head1 DESCRIPTION @@ -243,6 +243,10 @@ socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '127.0.0.1:80' +=head1 NOTE + +Upstream this script is known as C, but was renamed on Debian. + =head1 AUTHOR Paul Evans --- a/bin/getnameinfo +++ b/bin/getnameinfo @@ -86,11 +86,11 @@ =head1 NAME -C - command-line tool to C resolver +C - command-line tool to C resolver =head1 SYNOPSIS -B [I] I
I +B [I] I
I =head1 DESCRIPTION @@ -126,6 +126,10 @@ =back +=head1 NOTE + +Upstream this script is known as C, but was renamed on Debian. + =head1 AUTHOR Paul Evans debian/patches/no_network.patch0000644000000000000000000000205311764472353014037 0ustar Author: Nicholas Bamber Forwarded: no Last-Update: 2011-02-08 Subject: Test requires network connectivity Note that some of the disabled tests require not just network connectivity but that there is an ftp entry in /etc/services. This entry need not be conventional. --- a/t/01getaddrinfo.t +++ b/t/01getaddrinfo.t @@ -169,7 +169,7 @@ my $goodhost = "cpan.perl.org"; SKIP: { - skip "Resolver has no answer for $goodhost", 2 unless gethostbyname( $goodhost ); + skip "disabling test requiring network", 2; ( $err, @res ) = getaddrinfo( "cpan.perl.org", "ftp", { socktype => SOCK_STREAM } ); is_err( $err, 0, '$err == 0 for host=cpan.perl.org/service=ftp/socktype=STREAM' ); @@ -184,7 +184,7 @@ # any request. We'd better check for them SKIP: { - skip "Resolver has an answer for $missinghost", 1 if gethostbyname( $missinghost ); + skip "disabling test requiring network", 1; # Some OSes return $err == 0 but no results ( $err, @res ) = getaddrinfo( $missinghost, "ftp", { socktype => SOCK_STREAM } ); debian/patches/series0000644000000000000000000000004611764472353012046 0ustar no_network.patch rename_scripts.patch debian/compat0000644000000000000000000000000211764472353010400 0ustar 9 debian/control0000644000000000000000000000263511764472353010613 0ustar Source: libsocket-getaddrinfo-perl Section: perl Priority: optional Build-Depends: perl, debhelper (>= 9.20120312), libtest-exception-perl, libtest-warn-perl, libtest-pod-perl, libextutils-cchecker-perl (>= 0.06) Maintainer: Debian Perl Group Uploaders: Jonathan Yu , Nathan Handler , Ansgar Burchardt , Nicholas Bamber , gregor herrmann Standards-Version: 3.9.3 Homepage: http://search.cpan.org/dist/Socket-GetAddrInfo/ Vcs-Git: git://git.debian.org/pkg-perl/packages/libsocket-getaddrinfo-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libsocket-getaddrinfo-perl.git Package: libsocket-getaddrinfo-perl Architecture: any Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} Suggests: dnsutils Description: module implementing getaddrinfo and getnameinfo Socket::GetAddrInfo provides a Perl implementation of the getaddrinfo and getnameinfo functions as described in RFC 2553. These functions are useful for converting between a pair of host name/service name and socket addresses, or vice versa. . This module uses underlying C code to do most of the work if possible, but can also fall back on some mostly-compatible emulation code written in Perl. This means that this module is a fairly portable implementation of these functions. debian/changelog0000644000000000000000000001111012231173626011035 0ustar libsocket-getaddrinfo-perl (0.22-1build1) trusty; urgency=low * Rebuild for Perl 5.18. -- Colin Watson Mon, 21 Oct 2013 10:44:54 +0100 libsocket-getaddrinfo-perl (0.22-1) unstable; urgency=low [ Nicholas Bamber ] * New upstream release 0.21 [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * New upstream release 0.22. * debian/copyright: update to Copyright-Format 1.0. * Update year of upstream copyright. * Bump Standards-Version to 3.9.3 (no changes). * Use debhelper 9.20120312 to get all hardening flags. * Add /me to Uploaders. -- gregor herrmann Fri, 08 Jun 2012 23:55:49 +0200 libsocket-getaddrinfo-perl (0.20-2) unstable; urgency=low * Rewrite README.Debian incorporating material from upstream author and install scripts with new names (Closes: #618315) -- Nicholas Bamber Sun, 20 Mar 2011 11:20:21 +0000 libsocket-getaddrinfo-perl (0.20-1) unstable; urgency=low [ Ansgar Burchardt ] * Email change: Ansgar Burchardt -> ansgar@debian.org [ Nicholas Bamber ] * New upstream release * Email change: Jonathan Yu -> jawnsy@cpan.org * Added generated .c and .h files to debian/clean * Updated dependency for libextutils-cchecker-perl * Added patch to skip tests requiring network * Refreshed copyright * Moved scripts to examples, added explanation to README.Debian and added dnsutils to Suggests field. -- Nicholas Bamber Wed, 09 Feb 2011 16:49:59 +0000 libsocket-getaddrinfo-perl (0.19-1) unstable; urgency=low * Add myself to Uploaders * New upstream release * Updated short description * Removed versioned dependency where unnecessary -- Nicholas Bamber Fri, 15 Oct 2010 23:02:18 +0100 libsocket-getaddrinfo-perl (0.18-1) unstable; urgency=low * New upstream release * Standards-Version 3.9.1 (no changes) * Use "Debian systems" in d/copyright * Increase build-dep on debhelper to >= 8 -- Jonathan Yu Sun, 03 Oct 2010 14:02:55 -0400 libsocket-getaddrinfo-perl (0.16-1) unstable; urgency=low * New upstream release. * Remove build-dep on perl (>= 5.10) | libmodule-build-perl: a build-dep on perl is enough as stable already has perl 5.10. * Bump build-dep on libextutils-cchecker-perl to >= 0.04. * Use debhelper compat level 8, bump build-dep on debhelper to >= 7.9.1. * debian/copyright: Update years of copyright. * Use source format 3.0 (quilt). * Bump Standards-Version to 3.9.0 (no changes). * Add myself to Uploaders. -- Ansgar Burchardt Wed, 14 Jul 2010 11:39:59 +0900 libsocket-getaddrinfo-perl (0.15-1) unstable; urgency=low * New upstream release * Standards-Version 3.8.4 (no changes) * Update to new DEP5 copyright format * Now needs ExtUtils::CChecker during build -- Jonathan Yu Mon, 08 Mar 2010 13:25:57 -0500 libsocket-getaddrinfo-perl (0.14-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release [ gregor herrmann ] * debian/control: Changed: (build-)depend on perl instead of perl- modules. * debian/copyright: adjust years of upstream copyright. -- Jonathan Yu Thu, 24 Dec 2009 07:00:07 -0500 libsocket-getaddrinfo-perl (0.13-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release + Don't warn if only importing symbolic constants + Now requires Test::Warn during build * Add Test::Pod to B-D-I * Standards-Version 3.8.3 (no changes) * Move examples -> libsocket-getaddrinfo-perl.examples [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ Ryan Niebur ] * Update jawnsy's email address [ gregor herrmann ] * Minimize debian/rules. -- Jonathan Yu Sun, 20 Sep 2009 09:20:21 -0400 libsocket-getaddrinfo-perl (0.12-1) unstable; urgency=low * New upstream release * debian/watch: - Update to ignore development releases. - Remove comments * debian/control: - Add myself to list of Uploaders - Bump Standards-Version to 3.8.2 (No changes) * debian/examples: - Add file to install gai.pl as an example * debian/copyright: - Update years for upstream copyright -- Nathan Handler Sun, 28 Jun 2009 03:16:34 +0000 libsocket-getaddrinfo-perl (0.11-1) unstable; urgency=low * Initial Release. (Closes: #527178) -- Jonathan Yu Tue, 5 May 2009 22:54:21 -0400