From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-perl/ParaDNS/Manifest | 6 ++++ dev-perl/ParaDNS/ParaDNS-2.0.0-r1.ebuild | 20 +++++++++++ dev-perl/ParaDNS/ParaDNS-2.0.0-r2.ebuild | 23 ++++++++++++ .../ParaDNS/files/ParaDNS-2.0-net-dns-compat.patch | 42 ++++++++++++++++++++++ .../ParaDNS/files/ParaDNS-2.0-no-network.patch | 38 ++++++++++++++++++++ dev-perl/ParaDNS/metadata.xml | 14 ++++++++ 6 files changed, 143 insertions(+) create mode 100644 dev-perl/ParaDNS/Manifest create mode 100644 dev-perl/ParaDNS/ParaDNS-2.0.0-r1.ebuild create mode 100644 dev-perl/ParaDNS/ParaDNS-2.0.0-r2.ebuild create mode 100644 dev-perl/ParaDNS/files/ParaDNS-2.0-net-dns-compat.patch create mode 100644 dev-perl/ParaDNS/files/ParaDNS-2.0-no-network.patch create mode 100644 dev-perl/ParaDNS/metadata.xml (limited to 'dev-perl/ParaDNS') diff --git a/dev-perl/ParaDNS/Manifest b/dev-perl/ParaDNS/Manifest new file mode 100644 index 000000000000..65cd4b66b78c --- /dev/null +++ b/dev-perl/ParaDNS/Manifest @@ -0,0 +1,6 @@ +AUX ParaDNS-2.0-net-dns-compat.patch 1408 BLAKE2B 3cf3439936f3b5889137ac21cd0bf5ed07ccf063741771830cf463331d0f116be02dd7d4355a1be1fa3fa6589f9122e6425ae481406452f6c3e7000eb589f81d SHA512 ccaaaee494364ccd209d57ebf8547033be2b80393ae4c84caf1507531864f9f205b9a6dfb139bb243875be58a1f183919e11c9afd2d2b35fd6968410d7b3de64 +AUX ParaDNS-2.0-no-network.patch 703 BLAKE2B 6f6a48b482ba3db9f9f9953f6f68029791abf4c65f8acef428ea997f883eb7b5f447795490e25f9e8e6c875de98d046ffb7ebb6781b2a477795eb5a47579b4c8 SHA512 4d828e6fb5ce4e7a88225e0a5a19692964f22df92ff083c394f3e87a80a2b57cb0f1c4caab75f318eb9f7335fd37cfe6f2406cc934594e5bdff6c10b1e454dfd +DIST ParaDNS-2.0.tar.gz 9655 BLAKE2B 917ca35d1da3f43352cb85ea5b7d138d7fdc22ba5a1a17b802a410ee2339f3a50d988a7e9cf5f09551feb91cb53ef658afb2d31f83ee7275e70cf8860d0ed659 SHA512 762856b151e0a1cb7193af5d4be8cd302244920e8278bf1940f8fa12cf9f8a818c71dd7f553b2afddc69c531b625d80d9d8e7769676edb370bfaa0b5e7fa3dfc +EBUILD ParaDNS-2.0.0-r1.ebuild 380 BLAKE2B 641ca873fddf1536377d6777ed4d53ae41a039daa37f366fdea719a0e2a1649f9fca2829720e92f130f39de14ae70cd544b1eb58ef76514667043ca991ecf5b9 SHA512 ed9b64a165a73b23a26349df7ea570806fd0118b90a9810e94f44cb8254222cc52fafa3db80fe03d4a088acbd035f4d23100894e841705e6a514a2486c96094b +EBUILD ParaDNS-2.0.0-r2.ebuild 460 BLAKE2B 74e8c6ed71d50b2d414f40d4155eb30a833a227d14f5a06ca319266b3c88db11d5ad97ae3d037fe00ebb2101963d5d0944815b5588d859efd0e75008e971eb3b SHA512 a5153bb62bcd31ad5bf2c9ec0cb579917e5883b7db80a1e01d6b5f65ce2dda552a605ef942d50a4b79887b2c89c63924bd9aa97219565bd191f6bdf5e3315153 +MISC metadata.xml 520 BLAKE2B 162491d8d7beacc77533cac49dd543f678ea1d524e4e743032f866424645d2daf84aef4d4b724c50569d3d32b95bdcbdd82eac326239b95ea005fec1768e2342 SHA512 7222bfe334233c5b7c559106344d797e5c78927f8387340fccf21843df4c8129f8ad7440d50c14877c113f4b368edd9462f54ad49f7a17fef86f250cad9d8650 diff --git a/dev-perl/ParaDNS/ParaDNS-2.0.0-r1.ebuild b/dev-perl/ParaDNS/ParaDNS-2.0.0-r1.ebuild new file mode 100644 index 000000000000..c4b044398558 --- /dev/null +++ b/dev-perl/ParaDNS/ParaDNS-2.0.0-r1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MODULE_AUTHOR=MSERGEANT +MODULE_VERSION=2.0 +inherit perl-module + +DESCRIPTION="a DNS lookup class for the Danga::Socket framework" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-perl/Net-DNS + >=dev-perl/Danga-Socket-1.61" +RDEPEND="${DEPEND}" + +SRC_TEST=online diff --git a/dev-perl/ParaDNS/ParaDNS-2.0.0-r2.ebuild b/dev-perl/ParaDNS/ParaDNS-2.0.0-r2.ebuild new file mode 100644 index 000000000000..f39727696356 --- /dev/null +++ b/dev-perl/ParaDNS/ParaDNS-2.0.0-r2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=MSERGEANT +DIST_VERSION=2.0 +inherit perl-module + +DESCRIPTION="a DNS lookup class for the Danga::Socket framework" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-perl/Net-DNS + >=dev-perl/Danga-Socket-1.61" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2.0-net-dns-compat.patch" + "${FILESDIR}/${PN}-2.0-no-network.patch" +) diff --git a/dev-perl/ParaDNS/files/ParaDNS-2.0-net-dns-compat.patch b/dev-perl/ParaDNS/files/ParaDNS-2.0-net-dns-compat.patch new file mode 100644 index 000000000000..9e35d75e3759 --- /dev/null +++ b/dev-perl/ParaDNS/files/ParaDNS-2.0-net-dns-compat.patch @@ -0,0 +1,42 @@ +From 0edb7527fb17c313c17c1c2572d9c454040677a2 Mon Sep 17 00:00:00 2001 +From: Andy Jones +Date: Thu, 28 Aug 2014 15:37:01 +0100 +Subject: Support newer Net::DNS::Resolver + +Bug: https://rt.cpan.org/Ticket/Display.html?id=98386 +--- + lib/ParaDNS/Resolver.pm | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/ParaDNS/Resolver.pm b/lib/ParaDNS/Resolver.pm +index e147602..1a3f5dd 100644 +--- a/lib/ParaDNS/Resolver.pm ++++ b/lib/ParaDNS/Resolver.pm +@@ -40,7 +40,7 @@ sub new { + } + } + else { +- foreach my $ns (@{ $res->{nameservers} }) { ++ foreach my $ns ( $res->nameservers ) { + trace(2, "Using nameserver $ns:$res->{port}\n"); + my $dst_sockaddr = sockaddr_in($res->{'port'}, inet_aton($ns)); + push @{$self->{dst}}, $dst_sockaddr; +@@ -216,7 +216,6 @@ sub event_read { + my $res = $self->{res}; + + while (my $packet = $res->bgread($sock)) { +- my $err = $res->errorstring; + my $answers = 0; + my $header = $packet->header; + my $id = $header->id; +@@ -278,6 +277,7 @@ sub event_read { + $answers++; + } + if (!$answers) { ++ my $err = $res->errorstring || $packet->header->rcode; + if ($err eq "NXDOMAIN") { + # trace("found => NXDOMAIN\n"); + $qobj->run_callback("NXDOMAIN"); +-- +2.15.1 + diff --git a/dev-perl/ParaDNS/files/ParaDNS-2.0-no-network.patch b/dev-perl/ParaDNS/files/ParaDNS-2.0-no-network.patch new file mode 100644 index 000000000000..5103230cc532 --- /dev/null +++ b/dev-perl/ParaDNS/files/ParaDNS-2.0-no-network.patch @@ -0,0 +1,38 @@ +From 257b6b9764858cdbca2e0d6b95e688bb92ae0b05 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +Date: Wed, 27 Dec 2017 16:19:05 +1300 +Subject: Fence for NO_NETWORK_TESTING + +--- + t/00basic.t | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/t/00basic.t b/t/00basic.t +index e9ceaf5..108e0ec 100644 +--- a/t/00basic.t ++++ b/t/00basic.t +@@ -1,10 +1,15 @@ + #!/usr/bin/perl -w + +-use Test::More tests => 5; ++ ++use Test::More tests => 6; + + $|++; + + use_ok('ParaDNS'); ++use_ok('ParaDNS::Resolver'); ++ ++SKIP: { ++ skip "NO_NETWORK_TESTING set", 4 if $ENV{NO_NETWORK_TESTING}; + + my $done = 0; + +@@ -59,3 +64,4 @@ ParaDNS->new( + + Danga::Socket->EventLoop; + ++} +-- +2.15.1 + diff --git a/dev-perl/ParaDNS/metadata.xml b/dev-perl/ParaDNS/metadata.xml new file mode 100644 index 000000000000..383ee8334f05 --- /dev/null +++ b/dev-perl/ParaDNS/metadata.xml @@ -0,0 +1,14 @@ + + + + + perl@gentoo.org + Gentoo Perl Project + + + ParaDNS + ParaDNS + ParaDNS::Resolver + ParaDNS::Resolver::Query + + -- cgit v1.2.3