ports/78030: New port: net/p5-IP-Country - Perl module to lookup country codes from IP addresses
Tim Buck
tbuck at rrinc.com
Fri Feb 25 17:20:19 UTC 2005
The following reply was made to PR ports/78030; it has been noted by GNATS.
From: Tim Buck <tbuck at rrinc.com>
To: freebsd-gnats-submit at FreeBSD.org
Cc:
Subject: Re: ports/78030: New port: net/p5-IP-Country - Perl module to lookup country codes from IP addresses
Date: Fri, 25 Feb 2005 12:15:47 -0500
>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"
===== Added Fri Feb 2005 18:14:00 GMT 2005
Actually, I did use devel/portlint, but I failed to use the "-N" option
for a new port.
This time I did:
# pwd
/usr/ports/net/p5-IP-Country
# portlint -N
looks fine.
>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= ../by-authors/id/N/NW/NWETTERS
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= tbuck at rrinc.com
XCOMMENT= Perl extension for fast lookup of country codes from IP
addresses
X
XBUILD_DEPENDS=
${SITE_PERL}/Geography/Countries.pm:${PORTSDIR}/net/p5-Geography-
Countries
XRUN_DEPENDS= ${BUILD_DEPENDS}
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
More information about the freebsd-ports-bugs
mailing list