Edit

IABSD.fr/ports/net/p5-IP-Country/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2023-09-26 17:58:05
    Hash : ca7e588c
    Message : remove "DISTFILES=${DISTNAME}${EXTRACT_SUFX}" where DISTFILES isn't used to set another variable

  • net/p5-IP-Country/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.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>