Initial import of IP::Country

This includes IP::Country::Fast which SpamAssassin can use to add a
header indicating which country the relay servers are possibly in.

From DESCR:
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 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.

ok giovanni@,sthen@
This commit is contained in:
merdely 2009-07-20 13:59:20 +00:00
parent 6bb3eb5dfe
commit cf3af26b70
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/07/20 13:59:20 merdely Exp $
COMMENT= fast lookup of country codes by IP address
MODULES= cpan
DISTNAME= IP-Country-2.26
CATEGORIES= net
MAINTAINER= Michael Erdely <merdely@openbsd.org>
# Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS = ::geo/p5-Geography-Countries
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (IP-Country-2.26.tar.gz) = HnO6OTJdGXYn4W3gJK+ugg==
RMD160 (IP-Country-2.26.tar.gz) = zolIztk6biCnDYsxN5s2++5DqBo=
SHA1 (IP-Country-2.26.tar.gz) = bFLOlnx69eiCvDV9DD7UiafK6AA=
SHA256 (IP-Country-2.26.tar.gz) = 2eozYfLTwiP8Sco3wJNXO0ke4JfI6MoNaMuDM6OtcC8=
SIZE (IP-Country-2.26.tar.gz) = 197544

View File

@ -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 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.

View File

@ -0,0 +1,32 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/07/20 13:59:20 merdely Exp $
bin/ip2cc
${P5SITE}/IP/
@comment ${P5SITE}/IP/._Authority.pm
${P5SITE}/IP/Authority/
${P5SITE}/IP/Authority.pm
@comment ${P5SITE}/IP/Authority/._auth.gif
@comment ${P5SITE}/IP/Authority/._ipauth.gif
${P5SITE}/IP/Authority/auth.gif
${P5SITE}/IP/Authority/ipauth.gif
${P5SITE}/IP/Country/
${P5SITE}/IP/Country.pm
@comment ${P5SITE}/IP/Country/._Fast.pm
@comment ${P5SITE}/IP/Country/._MaxMind.pm
@comment ${P5SITE}/IP/Country/._Medium.pm
@comment ${P5SITE}/IP/Country/._Slow.pm
${P5SITE}/IP/Country/Fast/
${P5SITE}/IP/Country/Fast.pm
@comment ${P5SITE}/IP/Country/Fast/._cc.gif
@comment ${P5SITE}/IP/Country/Fast/._ip.gif
${P5SITE}/IP/Country/Fast/cc.gif
${P5SITE}/IP/Country/Fast/ip.gif
${P5SITE}/IP/Country/MaxMind.pm
${P5SITE}/IP/Country/Medium.pm
${P5SITE}/IP/Country/Slow.pm
@man man/man1/ip2cc.1
@man man/man3p/IP::Authority.3p
@man man/man3p/IP::Country.3p
@man man/man3p/IP::Country::Fast.3p
@man man/man3p/IP::Country::MaxMind.3p
@man man/man3p/IP::Country::Medium.3p
@man man/man3p/IP::Country::Slow.3p