diff options
author | erwin <erwin@FreeBSD.org> | 2006-12-25 23:40:28 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2006-12-25 23:40:28 +0800 |
commit | 589cdc315216ff968c56adb5326d54222289db24 (patch) | |
tree | e63b2425653f47c3177689ecd38949f6fadc88b5 /net/p5-Net-XWhois | |
parent | e80adc6ccfd6546daca899893eba40c8d4a0dbba (diff) | |
download | freebsd-ports-gnome-589cdc315216ff968c56adb5326d54222289db24.tar.gz freebsd-ports-gnome-589cdc315216ff968c56adb5326d54222289db24.tar.zst freebsd-ports-gnome-589cdc315216ff968c56adb5326d54222289db24.zip |
- Add support for DENIC.
- Fix recursive queries
Don't bump PORTREVISION as it was bumped 20 minutes ago.
PR: 95302
Submitted by: Frank Altpeter <frank@altpeter.de>
Diffstat (limited to 'net/p5-Net-XWhois')
-rw-r--r-- | net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm b/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm index 3c4e8b3cae79..20e88507110c 100644 --- a/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm +++ b/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm @@ -1,5 +1,5 @@ ---- lib/Net/XWhois.pm.orig Sun Oct 6 10:37:55 2002 -+++ lib/Net/XWhois.pm Sun Jul 16 18:11:50 2006 +--- lib/Net/XWhois.pm.orig Sun Oct 6 01:37:55 2002 ++++ lib/Net/XWhois.pm Mon Dec 25 15:32:36 2006 @@ -16,6 +16,9 @@ # # Changes: @@ -127,7 +127,7 @@ 'tn' => 'whois.ripe.net', 'tr' => 'whois.ripe.net', 'tw' => 'whois.twnic.net', 'ua' => 'whois.ripe.net', -@@ -423,7 +471,7 @@ +@@ -423,9 +471,10 @@ ); my %ARGS = ( @@ -135,8 +135,22 @@ + 'whois.jp' => { 'S' => '/e' }, 'whois.internic.net' => { 'P' => '=' }, 'whois.networksolutions.com' => { 'P' => '=' }, ++ 'whois.denic.de' => { 'P' => '-T dn ' }, ); -@@ -557,6 +605,7 @@ + + sub register_parser { +@@ -532,8 +581,8 @@ + } + + #if there is already a Parser defined for this server, use it +- if ( $self->{ _PARSERS }->{ $self->{ Server }}) { +- $self->{ Parser } = $self->{ _PARSERS }->{ $self->{ Server }}; ++ if ( $self->{ _PARSERS }->{ $self->{ _WHOIS_PARSER }->{ $self->{ Server } } }) { ++ $self->{ Parser } = $self->{ _PARSERS }->{ $self->{ _WHOIS_PARSER }->{ $self->{ Server } } }; + } + + #if we still don't have a Parser to use, guess based on the Domain (or IP) +@@ -557,6 +606,7 @@ $self->{ Domain }=~s/^www\.//; #trim leading www. if present; internic doesn't like it print "looking up ", $self->{ Domain }, " on ", $self->{ Server }, "\n" if ($self->{ Verbose }); @@ -144,7 +158,16 @@ #see if we already have a response in the cache, unless told not to unless ( $self->{ Nocache } ) { READCACHE: { -@@ -872,7 +921,7 @@ +@@ -608,7 +658,7 @@ + $fw="whois.twnic.net" if ($self->{ Response }=~/Allocated to TWNIC/misg ); + } + else { #original code +- @fwa = $self->{ Response } =~ m/\s+$self->{ Domain }\n.*?\n*?\s*?.*?Whois Server: (.*?)(?=\n)/isg; ++ @fwa = $self->{ Response } =~ m/$self->forwardwhois/isg; + $fw = shift @fwa; + return undef unless (defined($fw) && length($fw) > 0); # pattern not found + } +@@ -872,7 +922,7 @@ my %WHOIS_PARSER = ( 'whois.ripe.net' => 'RPSL', 'whois.nic.mil' => 'INTERNIC', |