# 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/Makefile
#	p5-IP-Country/pkg-descr
#	p5-IP-Country/pkg-plist
#	p5-IP-Country/distinfo
#
echo c - p5-IP-Country
mkdir -p p5-IP-Country > /dev/null 2>&1
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:	net/p5-IP-Countries
X# Date created:				20 June 2005
X# Whom:					dikshie <dikshie@lapi.itb.ac.id>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	IP-Country
XPORTVERSION=	2.20
XCATEGORIES=	net perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	../by-authors/id/N/NW/NWETTERS
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	dikshie@lapi.itb.ac.id
XCOMMENT= 	Fast lookup of country codes from IP addresses
X
XBUILD_DEPENDS=	${SITE_PERL}/Geography/Countries.pm:${PORTSDIR}/misc/p5-Geography-Countries
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
XCONFIGURE_ARGS+=        INSTALLDIRS='site'
X
XMAN1=		ip2cc.1
XMAN3=		IP::Authority.3 \
X		IP::Fast.3 \
X		IP::MaxMind.3 \
X		IP::Fast.3 \
X		IP::Slow.3 \
X		IP::Medium.3 \
X		IP::Country.3
X
X.include <bsd.port.mk>
END-of-p5-IP-Country/Makefile
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 
Xuseful domain, and the most common domain (.com) offers no help when 
Xlooking for country.
X
XThis module comes bundled with a database of countries where various IP 
Xaddresses have been assigned. Although the country of assignment will 
Xprobably be the country associated with a large ISP rather than the 
Xclient herself, this is probably good enough for most log analysis 
Xapplications, and under test has proved to be as accurate as 
Xreverse-DNS and WHOIS lookup.
X
XWWW: http://search.cpan.org/~nwetters/IP-Country-2.20/ 
END-of-p5-IP-Country/pkg-descr
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/.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/distinfo
sed 's/^X//' >p5-IP-Country/distinfo << 'END-of-p5-IP-Country/distinfo'
XMD5 (IP-Country-2.20.tar.gz) = 33a0fbda30e4572bcdf4c1d24d6b49cc
XSIZE (IP-Country-2.20.tar.gz) = 148526
END-of-p5-IP-Country/distinfo
exit