summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-03-05 12:22:57 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-03-05 12:22:57 +0000
commitaaab93ebc2a8ea4aaf9bb6f674e30f0b1d5fece2 (patch)
tree6b0f1b55f680b98090c9e20f93685be8a52e4b61
parentUpgrade to 0.6.13. (diff)
Fix for *.su/*.ru domains
Notes
Notes: svn path=/head/; revision=55564
-rw-r--r--net/p5-Net-XWhois/Makefile4
-rw-r--r--net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm46
2 files changed, 50 insertions, 0 deletions
diff --git a/net/p5-Net-XWhois/Makefile b/net/p5-Net-XWhois/Makefile
index 285213f3ae9e..4020734236b0 100644
--- a/net/p5-Net-XWhois/Makefile
+++ b/net/p5-Net-XWhois/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Net-XWhois
PORTVERSION= 0.82
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
@@ -19,4 +20,7 @@ PERL_CONFIGURE= YES
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Net::XWhois.3
+post-patch:
+ @find ${WRKSRC} -type f -name "*.orig" -exec rm -f "{}" ";"
+
.include <bsd.port.mk>
diff --git a/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm b/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm
new file mode 100644
index 000000000000..405aa0c3c0f9
--- /dev/null
+++ b/net/p5-Net-XWhois/files/patch-lib::Net::XWhois.pm
@@ -0,0 +1,46 @@
+--- 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 @@
+ nameservers => 'Name servers:[\s\n]+(\S+)[\s\n]+(\S+)',
+ },
+
++ RIPN => {
++ name => 'domain:\s+(\S+)\n',
++ registrants => 'descr:\s+(.+?)\n',
++ contact_admin => 'admin-o:\s+(.*?)\s*\n',
++ contact_tech => 'tech-c:\s+(.*?)\s*\n',
++ nameservers => 'nserver:\s+(\S+)',
++ status => 'state:\s+(.*?)\s*\n',
++ changed => 'changed:\s+(.*?)\s*\n',
++ source => 'source:\s+(.*?)\s*\n',
++ person => 'person:\s+(.*?)\s*\n',
++ address => 'address:\s+(.+?)\n',
++ phone => 'phone:\s+(.+?)\n',
++ fax_no => 'fax-no:\s+(.+?)\n',
++ contact_emails => 'e-mail:\s+(.+?)\n',
++ },
++
+ NOMINET => {
+ name => 'omain Name:\s+(\S+)',
+ registrant => 'egistered For:\s*(.*?)\n',
+@@ -202,6 +218,7 @@
+
+ my %WHOIS_PARSER = (
+ '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 @@
+ 'no' => 'whois.norid.no', 'nz' => 'whois.domainz.net.nz',
+ 'org' => 'whois.internic.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',
+ 'se' => 'whois.ripe.net', 'sg' => 'whois.nic.net.sg',
+ 'si' => 'whois.ripe.net', 'sk' => 'whois.ripe.net',
+- 'sm' => 'whois.ripe.net', 'su' => 'whois.ripe.net',
++ 'sm' => 'whois.ripe.net', 'su' => 'whois.ripn.net',
+ 'tn' => 'whois.ripe.net', 'tr' => 'whois.ripe.net',
+ 'tw' => 'whois.twnic.net',
+ 'ua' => 'whois.ripe.net',