summaryrefslogtreecommitdiff
path: root/net/p5-IP-Country
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2005-10-16 17:48:02 +0000
committerheinz <heinz@pkgsrc.org>2005-10-16 17:48:02 +0000
commitd01e233c4a06685249b1087847923c45c204db70 (patch)
treef83a1e7a70fa4926f885d89a64fa6216cc4c1bc3 /net/p5-IP-Country
parentc46824e8daa69b4074a0bbd40f9e7f02eff84b13 (diff)
downloadpkgsrc-d01e233c4a06685249b1087847923c45c204db70.tar.gz
Initial version of the IP::Country perl module.
Finding the home country of a client using only the IP address can be difficult. Looking up the domain name associated with that address can provide some help, but many IP address are not reverse mapped to any useful domain, and the most common domain (.com) offers no help when looking for country. This perl module comes bundled with a database of countries where various IP addresses have been assigned. Although the country of assignment will probably be the country associated with a large ISP rather than the client herself, this is probably good enough for most log analysis applications, and under test has proved to be as accurate as reverse-DNS and WHOIS lookup.
Diffstat (limited to 'net/p5-IP-Country')
-rw-r--r--net/p5-IP-Country/DESCR12
-rw-r--r--net/p5-IP-Country/Makefile23
-rw-r--r--net/p5-IP-Country/PLIST1
-rw-r--r--net/p5-IP-Country/distinfo5
4 files changed, 41 insertions, 0 deletions
diff --git a/net/p5-IP-Country/DESCR b/net/p5-IP-Country/DESCR
new file mode 100644
index 00000000000..fee275dc004
--- /dev/null
+++ b/net/p5-IP-Country/DESCR
@@ -0,0 +1,12 @@
+Finding the home country of a client using only the IP address can be
+difficult. Looking up the domain name associated with that address can
+provide some help, but many IP address are not reverse mapped to any
+useful domain, and the most common domain (.com) offers no help when
+looking for country.
+
+This perl module comes bundled with a database of countries where various
+IP addresses have been assigned. Although the country of assignment will
+probably be the country associated with a large ISP rather than the
+client herself, this is probably good enough for most log analysis
+applications, and under test has proved to be as accurate as reverse-DNS
+and WHOIS lookup.
diff --git a/net/p5-IP-Country/Makefile b/net/p5-IP-Country/Makefile
new file mode 100644
index 00000000000..3e8d8ee660c
--- /dev/null
+++ b/net/p5-IP-Country/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/16 17:48:02 heinz Exp $
+#
+
+DISTNAME= IP-Country-2.20
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5icy
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/N/NW/NWETTERS/}
+
+MAINTAINER= heinz@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/IP-Country/
+COMMENT= Fast lookup of country codes from IP addresses
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+DEPENDS+= p5-Geo-IP-[0-9]*:../../net/p5-Geo-IP
+DEPENDS+= p5-Geography-Countries>=1.3:../../misc/p5-Geography-Countries
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/IP/Country/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/p5-IP-Country/PLIST b/net/p5-IP-Country/PLIST
new file mode 100644
index 00000000000..f944c580f97
--- /dev/null
+++ b/net/p5-IP-Country/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/16 17:48:02 heinz Exp $
diff --git a/net/p5-IP-Country/distinfo b/net/p5-IP-Country/distinfo
new file mode 100644
index 00000000000..2b6f6c92f90
--- /dev/null
+++ b/net/p5-IP-Country/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/16 17:48:02 heinz Exp $
+
+SHA1 (IP-Country-2.20.tar.gz) = b051b02f7885ea5156ec25c9c334f03ffbcc799d
+RMD160 (IP-Country-2.20.tar.gz) = efc900c40e1f349919f3f319ae1dd69ec636f532
+Size (IP-Country-2.20.tar.gz) = 148526 bytes