aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-XWhois/files
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-04-29 06:15:55 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-04-29 06:15:55 +0000
commit1813ee494e5d3ac4ce23806c60b0815b2f680147 (patch)
tree4afbb5740aff3fdb0eb6c14a5d5de8296af33c9f /net/p5-Net-XWhois/files
parentde3080c6039bacf23a4faa914275c25ae11f4d14 (diff)
downloadports-1813ee494e5d3ac4ce23806c60b0815b2f680147.tar.gz
ports-1813ee494e5d3ac4ce23806c60b0815b2f680147.zip
Notes
Diffstat (limited to 'net/p5-Net-XWhois/files')
-rw-r--r--net/p5-Net-XWhois/files/patch-examples::whois10
-rw-r--r--net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm63
2 files changed, 66 insertions, 7 deletions
diff --git a/net/p5-Net-XWhois/files/patch-examples::whois b/net/p5-Net-XWhois/files/patch-examples::whois
new file mode 100644
index 000000000000..5c88382ef704
--- /dev/null
+++ b/net/p5-Net-XWhois/files/patch-examples::whois
@@ -0,0 +1,10 @@
+--- examples/whois.bak Sun Dec 30 09:57:54 2001
++++ examples/whois Tue Apr 29 10:02:06 2003
+@@ -8,6 +8,6 @@
+
+ if ( $e ) { my @emails = $whois->contact_emails; $" = ", "; print "Contacts: @emails\n"; exit }
+ if ( $n ) { my @emails = $whois->nameservers; $" = ", "; print "Nameservers: @emails\n"; exit }
+-if ( $r ) { my @emails = $whois->registrants; $" = ", "; print "Registrants: @emails\n"; exit }
++if ( $r ) { my @emails = $whois->registrant; $" = ", "; print "Registrants: @emails\n"; exit }
+ print $whois->response;
+
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 405aa0c3c0f9..ac970386ccf3 100644
--- a/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm
+++ b/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm
@@ -1,12 +1,47 @@
---- lib/Net/XWhois.pm.orig Sat Jul 14 11:30:30 2001
-+++ lib/Net/XWhois.pm Tue Mar 5 15:18:05 2002
-@@ -124,6 +124,22 @@
+--- lib/Net/XWhois.pm.orig Sun Oct 6 05:37:55 2002
++++ lib/Net/XWhois.pm Tue Apr 29 09:54:06 2003
+@@ -16,6 +16,7 @@
+ #
+ # Changes:
+ #
++# 03/08/2003 jmiller Added new .org PIR registy and parser
+ # 08/05/2002 rwoodard Merged in changes from XWhois discussion forum on
+ # sourceforge.net; made additional changes as needed
+ # to implement reverse lookups of IP addresses
+@@ -157,6 +158,26 @@
+ net_handle => '\((NETBLK\S+)\)',
+ country => '\n\s+(\S+)\n\n',
+ },
++
++ PIR => {
++ name => 'Domain Name:(\S+)',
++ status => 'Status:(.*?)\s*\n',
++ registrant => 'Registrant (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n',
++ nameservers => 'Name Server:(\S+)',
++ contact_admin => 'Admin (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n',
++ contact_tech => 'Tech (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n',
++ contact_zone => 'Admin (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n',
++ contact_billing => 'Billing (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n',
++ contact_emails => '(?:Registrant|Admin|Billing|Tech) Email:(\S+\@\S+)',
++ contact_handles => '\(([^\W\d]+\d+)\)',
++ domain_handles => '\((\S*?-DOM)\)',
++ org_handles => '\((\S*?-ORG)\)',
++ not_registered => 'NOT FOUND',
++# forwardwhois => 'Whois Server:(.*?)\s*\n',
++ registrar => 'Referral URL:(.*?)\s*\n',
++ reg_date => 'Created On:(.*?)\s*\n',
++ exp_date => 'Expiration Date:(.*?)\s*\n',
++ },
+
+ INTERNIC => {
+ name => '[\n\r\f]+\s*[Dd]omain [Nn]ame[:\.]*\s+(\S+)',
+@@ -241,6 +262,22 @@
nameservers => 'Name servers:[\s\n]+(\S+)[\s\n]+(\S+)',
},
+ RIPN => {
+ name => 'domain:\s+(\S+)\n',
-+ registrants => 'descr:\s+(.+?)\n',
++ registrant => 'descr:\s+(.+?)\n',
+ contact_admin => 'admin-o:\s+(.*?)\s*\n',
+ contact_tech => 'tech-c:\s+(.*?)\s*\n',
+ nameservers => 'nserver:\s+(\S+)',
@@ -23,17 +58,31 @@
NOMINET => {
name => 'omain Name:\s+(\S+)',
registrant => 'egistered For:\s*(.*?)\n',
-@@ -202,6 +218,7 @@
+@@ -276,7 +313,7 @@
+
+ DENIC => {
+ name => 'domain:\s+(\S+)\n',
+- registrants => 'descr:\s+(.+?)\n',
++ registrant => 'descr:\s+(.+?)\n',
+ contact_admin => 'admin-c:\s+(.*?)\s*\n',
+ contact_tech => 'tech-c:\s+(.*?)\s*\n',
+ contact_zone => 'zone-c:\s+(.*?)\s*\n',
+@@ -339,7 +376,9 @@
+ );
my %WHOIS_PARSER = (
++ 'whois.publicinterestregistry.net' => 'PIR',
'whois.ripe.net' => 'RPSL',
+ 'whois.ripn.net' => 'RIPN',
'whois.nic.mil' => 'INTERNIC',
'whois.nic.ad.jp' => 'JAPAN',
'whois.domainz.net.nz' => 'GENERIC',
-@@ -254,10 +271,10 @@
+@@ -397,12 +436,12 @@
+ 'mt' => 'whois.ripe.net', 'mx' => 'whois.nic.mx',
+ 'net' => 'whois.internic.net', 'nl' => 'whois.ripe.net',
'no' => 'whois.norid.no', 'nz' => 'whois.domainz.net.nz',
- 'org' => 'whois.internic.net',
+- 'org' => 'whois.internic.net',
++ 'org' => 'whois.publicinterestregistry.net',
'pl' => 'whois.ripe.net', 'pt' => 'whois.ripe.net',
- 'ro' => 'whois.ripe.net', 'ru' => 'whois.ripe.net',
+ 'ro' => 'whois.ripe.net', 'ru' => 'whois.ripn.net',