From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 25 17:20:19 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BAFF16A4CE for ; Fri, 25 Feb 2005 17:20:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA58743D5D for ; Fri, 25 Feb 2005 17:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1PHKIBe099584 for ; Fri, 25 Feb 2005 17:20:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1PHKI5X099583; Fri, 25 Feb 2005 17:20:18 GMT (envelope-from gnats) Date: Fri, 25 Feb 2005 17:20:18 GMT Message-Id: <200502251720.j1PHKI5X099583@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Tim Buck Subject: Re: ports/78030: New port: net/p5-IP-Country - Perl module to lookup country codes from IP addresses X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Buck List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 17:20:19 -0000 The following reply was made to PR ports/78030; it has been noted by GNATS. From: Tim Buck To: freebsd-gnats-submit@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 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@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/IP/Country X@dirrm %%SITE_PERL%%/IP/Country/Fast X@dirrm %%SITE_PERL%%/IP/Country X@dirrm %%SITE_PERL%%/IP/Authority X@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 . X X__top XWWW: http://search.cpan.org/dist/IP-Country/ X X- Tim Xtbuck@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 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@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 END-of-p5-IP-Country/Makefile exit