35 lines
724 B
Makefile
35 lines
724 B
Makefile
COMMENT= fast lookup of country codes by IP address
|
|
|
|
MODULES= cpan
|
|
PKG_ARCH= *
|
|
D= 20190301
|
|
DISTNAME= IP-Country-2.28
|
|
PKGNAME= p5-${DISTNAME}.$D
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
IP-Country-data-$D.tar.bz2:0
|
|
REVISION= 0
|
|
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER = Giovanni Bechis <giovanni@openbsd.org>
|
|
|
|
# Artistic
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES0 = https://paclan.it/distfiles/
|
|
|
|
RUN_DEPENDS = geo/p5-Geography-Countries
|
|
|
|
SUBST_VARS = WRKDIR
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/dbmScripts/ipcc_maker.pl
|
|
cp ${WRKDIR}/data/*.gif ${WRKSRC}/lib/IP/Country/Fast/
|
|
|
|
# maintainer convenience target
|
|
updatedb:
|
|
cd ${WRKSRC}/dbmScripts && sh whois_filenames \
|
|
&& perl ipcc_loader.pl && perl ipcc_maker.pl
|
|
|
|
.include <bsd.port.mk>
|