From freddy@pegasus.dyndns.info  Tue Apr  4 11:32:35 2006
Return-Path: <freddy@pegasus.dyndns.info>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0905E16A428
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  4 Apr 2006 11:32:34 +0000 (UTC)
	(envelope-from freddy@pegasus.dyndns.info)
Received: from mx1.corpex-net.de (mx1.corpex-net.de [62.67.202.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 41BFF43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  4 Apr 2006 11:32:34 +0000 (GMT)
	(envelope-from freddy@pegasus.dyndns.info)
Received: from [213.203.247.248] (helo=pegasus.dyndns.info)
	by mx1.corpex-net.de with asmtp (Exim 4.24; FreeBSD)
	id 1FQjlx-000NOV-35
	for FreeBSD-gnats-submit@freebsd.org; Tue, 04 Apr 2006 13:32:33 +0200
Received: (from freddy@localhost)
	by pegasus.dyndns.info (8.13.5/8.13.4/Submit) id k34BWSst051916;
	Tue, 4 Apr 2006 13:32:28 +0200 (CEST)
	(envelope-from freddy)
Message-Id: <200604041132.k34BWSst051916@pegasus.dyndns.info>
Date: Tue, 4 Apr 2006 13:32:28 +0200 (CEST)
From: Frank Altpeter <frank@altpeter.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: p5-Net-XWhois denic-aware
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         95302
>Category:       ports
>Synopsis:       p5-Net-XWhois denic-aware
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    perl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 04 11:40:19 GMT 2006
>Closed-Date:    Mon Dec 25 15:41:33 GMT 2006
>Last-Modified:  Mon Dec 25 15:50:09 GMT 2006
>Originator:     Frank Altpeter
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD pegasus.dyndns.info 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #6: Wed Mar 8 19:46:43 CET 2006 root@pegasus.dyndns.info:/usr/obj/usr/src/sys/kernconf.pegasus i386


	
>Description:
	p5-Net-XWhois doesn't handle the (not so) new denic whois output correctly. Additionally,
	it doesn't handle recursive queries correctly.
	This patch should fix this.

>How-To-Repeat:
>Fix:
	
----------------------------------------- cut here ---------------------------
--- XWhois.orig.pm	Tue Oct  5 17:36:33 2004
+++ XWhois.pm	Fri Oct  8 19:13:14 2004
@@ -465,6 +465,7 @@
     'whois.nic.ad.jp'            => { 'S' => '/e' },
     'whois.internic.net'         => { 'P' => '=' },
     'whois.networksolutions.com' => { 'P' => '=' },
+    'whois.denic.de'             => { 'P' => '-T dn ' },
 );
 
 sub register_parser {
@@ -571,8 +572,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)
@@ -648,7 +649,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
        }
----------------------------------------- cut here ---------------------------


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Apr 4 11:44:30 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95302 

From: Anton Berezin <tobez@tobez.org>
To: Frank Altpeter <frank@altpeter.de>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/95302: p5-Net-XWhois denic-aware
Date: Tue, 11 Apr 2006 09:53:08 +0200

 On Tue, Apr 04, 2006 at 01:32:28PM +0200, Frank Altpeter wrote:
 
 > 	p5-Net-XWhois doesn't handle the (not so) new denic whois output correctly. Additionally,
 > 	it doesn't handle recursive queries correctly.
 > 	This patch should fix this.
 
 Have you submitted this fix to the module author?  Normally this is a
 preffered way to deal with such things.
 
 \Anton.
 -- 
 An undefined problem has an infinite number of solutions.
 -- Robert A. Humphrey
State-Changed-From-To: open->feedback 
State-Changed-By: mat 
State-Changed-When: Mon Aug 14 12:48:38 UTC 2006 
State-Changed-Why:  
Put the right status 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95302 
State-Changed-From-To: feedback->closed 
State-Changed-By: erwin 
State-Changed-When: Mon Dec 25 15:41:27 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95302 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/95302: commit references a PR
Date: Mon, 25 Dec 2006 15:40:36 +0000 (UTC)

 erwin       2006-12-25 15:40:29 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/p5-Net-XWhois/files patch-lib::Net::XWhois.pm 
   Log:
   - 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>
   
   Revision  Changes    Path
   1.6       +28 -5     ports/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
