[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / ports / net / p5-IP-Country

File: [local] / ports / net / p5-IP-Country / Makefile (download)

Revision 1.19, Tue Sep 26 17:58:08 2023 UTC (8 months, 1 week ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.18: +0 -1 lines

remove "DISTFILES=${DISTNAME}${EXTRACT_SUFX}" where DISTFILES isn't
used to set another variable

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.data= IP-Country-data-$D.tar.bz2
REVISION=	0

CATEGORIES=	net

MAINTAINER =	Giovanni Bechis <giovanni@openbsd.org>

# Artistic
PERMIT_PACKAGE=	Yes

SITES.data =		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>