aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-04-29 14:15:55 +0800
committerache <ache@FreeBSD.org>2003-04-29 14:15:55 +0800
commit0d4bea03b0a87f2015802f86c5106e8dccd1b8b6 (patch)
treea5e5262a8a8b53958e0f998670c69e7682e02285 /net
parent38c20d86968ea17df1a86ad700b5e75014e01354 (diff)
downloadfreebsd-ports-graphics-0d4bea03b0a87f2015802f86c5106e8dccd1b8b6.tar.gz
freebsd-ports-graphics-0d4bea03b0a87f2015802f86c5106e8dccd1b8b6.tar.zst
freebsd-ports-graphics-0d4bea03b0a87f2015802f86c5106e8dccd1b8b6.zip
.org moved to whois.publicinterestregistry.net
Misspelling: nonexisten "registrants" -> documented "registrant"
Diffstat (limited to 'net')
-rw-r--r--net/p5-Net-XWhois/Makefile1
-rw-r--r--net/p5-Net-XWhois/files/patch-examples::whois10
-rw-r--r--net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm63
3 files changed, 67 insertions, 7 deletions
diff --git a/net/p5-Net-XWhois/Makefile b/net/p5-Net-XWhois/Makefile
index 0188796eae1..518f08b148c 100644
--- a/net/p5-Net-XWhois/Makefile
+++ b/net/p5-Net-XWhois/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Net-XWhois
PORTVERSION= 0.90
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
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 00000000000..5c88382ef70
--- /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 405aa0c3c0f..ac970386ccf 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',