ports/78030: New port: net/p5-IP-Country - Perl module to lookup country codes from IP addresses

Tim Buck tbuck at rrinc.com
Thu Feb 24 16:10:25 UTC 2005


>Number:         78030
>Category:       ports
>Synopsis:       New port: net/p5-IP-Country - Perl module to lookup country codes from IP addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 24 16:10:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Tim Buck
>Release:        5.3-RELEASE-p5
>Organization:
Recognition Research, Inc.
>Environment:
FreeBSD beepbeep.rrinc.com 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Tue Jan 25 14:19:56 EST 2005     tim at beepbeep.rrinc.com:/usr/obj/usr/src/sys/RRI_SERVER_SMP  i386
>Description:
Port for Nigel Wetters Gourlay's <nwetters at gmail.com> Perl IP::Country module to do "fast lookup of country codes from IP addresses"
>How-To-Repeat:
n/a
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       p5-IP-Country
#       p5-IP-Country/pkg-plist
#       p5-IP-Country/pkg-descr
#       p5-IP-Country/distinfo
#       p5-IP-Country/Makefile
#
echo c - p5-IP-Country
mkdir -p p5-IP-Country > /dev/null 2>&1
echo x - p5-IP-Country/pkg-plist
sed 's/^X//' >p5-IP-Country/pkg-plist << 'END-of-p5-IP-Country/pkg-plist'
X%%SITE_PERL%%/IP/Authority.pm
X%%SITE_PERL%%/IP/Country.pm
X%%SITE_PERL%%/IP/Authority/ipauth.gif
X%%SITE_PERL%%/IP/Authority/auth.gif
X%%SITE_PERL%%/IP/Country/Fast.pm
X%%SITE_PERL%%/IP/Country/MaxMind.pm
X%%SITE_PERL%%/IP/Country/Medium.pm
X%%SITE_PERL%%/IP/Country/Slow.pm
X%%SITE_PERL%%/IP/Country/Fast/cc.gif
X%%SITE_PERL%%/IP/Country/Fast/ip.gif
Xbin/ip2cc
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/IP/Country/.packlist
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/IP/Country
X at dirrm %%SITE_PERL%%/IP/Country/Fast
X at dirrm %%SITE_PERL%%/IP/Country
X at dirrm %%SITE_PERL%%/IP/Authority
X at unexec rmdir %%SITE_PERL%%/IP 2>/dev/null || true
END-of-p5-IP-Country/pkg-plist
echo x - p5-IP-Country/pkg-descr
sed 's/^X//' >p5-IP-Country/pkg-descr << 'END-of-p5-IP-Country/pkg-descr'
XFinding the home country of a client using only the IP address can be
Xdifficult. Looking up the domain name associated with that address can
Xprovide some help, but many IP address are not reverse mapped to any useful
Xdomain, and the most common domain (.com) offers no help when looking for
Xcountry.
X
XThis module comes bundled with a database of countries where various IP
Xaddresses have been assigned. Although the country of assignment will probably
Xbe the country associated with a large ISP rather than the client herself,
Xthis is probably good enough for most log analysis applications, and under
Xtest has proved to be as accurate as reverse-DNS and WHOIS lookup. This
Xmodule was written by Nigel Wetters Gourlay <nwetters at cpan.org>.
X
X__top 
XWWW: http://search.cpan.org/dist/IP-Country/
X
X- Tim
Xtbuck at rrinc.com
END-of-p5-IP-Country/pkg-descr
echo x - p5-IP-Country/distinfo
sed 's/^X//' >p5-IP-Country/distinfo << 'END-of-p5-IP-Country/distinfo'
XMD5 (IP-Country-2.18.tar.gz) = 9fc08c51555f2e81b042ca749af0eee8
XSIZE (IP-Country-2.18.tar.gz) = 141905
END-of-p5-IP-Country/distinfo
echo x - p5-IP-Country/Makefile
sed 's/^X//' >p5-IP-Country/Makefile << 'END-of-p5-IP-Country/Makefile'
X# New ports collection makefile for:   p5-IP-Country
X# Date created:                                23 February 2005
X# Whom:                                        Tim Buck <tbuck at rrinc.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      IP-Country
XPORTVERSION=   2.18
XCATEGORIES=    net perl5
XMASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=     Net
XPKGNAMEPREFIX=  p5-
X
XMAINTAINER=    tbuck at rrinc.com
XCOMMENT=       Perl extension for fast lookup of country codes from IP addresses
X
XPERL_CONFIGURE=        yes
X
XMAN1=          ip2cc.1
XMAN3=          IP::Authority.3 \
X               IP::Country::Fast.3 \
X               IP::Country::Medium.3 \
X               IP::Country::MaxMind.3 \
X               IP::Country::Slow.3 \
X               IP::Country.3
X
X.include <bsd.port.mk>
END-of-p5-IP-Country/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list