BSD Ports

net/p5-IP-Country 2.28_1 MidnightBSD

Fast lookup of country codes from IP addresses

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl
Categories
net, perl5, geography

Description

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.

In the other systems

SystemPortVersion
MidnightBSDnet/p5-IP-Country2.28_1
FreeBSDnet/p5-IP-Country2.28_1
OpenBSDnet/p5-IP-Country2.28.20190301p0
NetBSDnet/p5-IP-Country2.28nb12
DragonFlynet/p5-IP-Country2.28_1
HardenedBSDnet/p5-IP-Country2.28_1
GhostBSDnet/p5-IP-Country2.28_1

Install

Binary package:

mport install p5-IP-Country

From mports:

cd /usr/mports/net/p5-IP-Country && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-IP-Country>0:net/p5-IP-Country

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 18
  • bin/ip2cc
  • %%PERL5_MAN1%%/ip2cc.1.gz
  • %%PERL5_MAN3%%/IP::Authority.3.gz
  • %%PERL5_MAN3%%/IP::Country.3.gz
  • %%PERL5_MAN3%%/IP::Country::Fast.3.gz
  • %%PERL5_MAN3%%/IP::Country::MaxMind.3.gz
  • %%PERL5_MAN3%%/IP::Country::Medium.3.gz
  • %%PERL5_MAN3%%/IP::Country::Slow.3.gz
  • %%SITE_PERL%%/IP/Authority.pm
  • %%SITE_PERL%%/IP/Authority/auth.gif
  • %%SITE_PERL%%/IP/Authority/ipauth.gif
  • %%SITE_PERL%%/IP/Country.pm
  • %%SITE_PERL%%/IP/Country/Fast.pm
  • %%SITE_PERL%%/IP/Country/Fast/cc.gif
  • %%SITE_PERL%%/IP/Country/Fast/ip.gif
  • %%SITE_PERL%%/IP/Country/MaxMind.pm
  • %%SITE_PERL%%/IP/Country/Medium.pm
  • %%SITE_PERL%%/IP/Country/Slow.pm
distinfo 1
FileSizeSHA256
IP-Country-2.28.tar.gz29658588db833a5ab22ed06cb53d6f205725e3b5371b254596053738885e91fa105f75
Master sites 1
  • CPAN