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
| System | Port | Version |
|---|---|---|
| MidnightBSD | net/p5-IP-Country | 2.28_1 |
| FreeBSD | net/p5-IP-Country | 2.28_1 |
| OpenBSD | net/p5-IP-Country | 2.28.20190301p0 |
| NetBSD | net/p5-IP-Country | 2.28nb12 |
| DragonFly | net/p5-IP-Country | 2.28_1 |
| HardenedBSD | net/p5-IP-Country | 2.28_1 |
| GhostBSD | net/p5-IP-Country | 2.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
p5-Geography-Countries>=0: misc/p5-Geography-Countries
Runtime 1
p5-Geography-Countries>=0: misc/p5-Geography-Countries
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
| File | Size | SHA256 |
|---|---|---|
| IP-Country-2.28.tar.gz | 296585 | 88db833a5ab22ed06cb53d6f205725e3b5371b254596053738885e91fa105f75 |
Master sites 1
- CPAN