pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/p5-IP-Country Initial version of the IP::Country p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef2abc6d8b91
branches:  trunk
changeset: 501086:ef2abc6d8b91
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Oct 16 17:48:02 2005 +0000

description:
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:

 net/p5-IP-Country/DESCR    |  12 ++++++++++++
 net/p5-IP-Country/Makefile |  23 +++++++++++++++++++++++
 net/p5-IP-Country/PLIST    |   1 +
 net/p5-IP-Country/distinfo |   5 +++++
 4 files changed, 41 insertions(+), 0 deletions(-)

diffs (57 lines):

diff -r e7aa1a035b8b -r ef2abc6d8b91 net/p5-IP-Country/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-IP-Country/DESCR   Sun Oct 16 17:48:02 2005 +0000
@@ -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 -r e7aa1a035b8b -r ef2abc6d8b91 net/p5-IP-Country/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-IP-Country/Makefile        Sun Oct 16 17:48:02 2005 +0000
@@ -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@localhost
+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 -r e7aa1a035b8b -r ef2abc6d8b91 net/p5-IP-Country/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-IP-Country/PLIST   Sun Oct 16 17:48:02 2005 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/16 17:48:02 heinz Exp $
diff -r e7aa1a035b8b -r ef2abc6d8b91 net/p5-IP-Country/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-IP-Country/distinfo        Sun Oct 16 17:48:02 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index