Update net/geoipupdate to version 2.2.1
[dports.git] / net / geoipupdate / Makefile
1 # Created by: adamw
2 # $FreeBSD$
3
4 PORTNAME=       geoipupdate
5 PORTVERSION=    2.2.1
6 CATEGORIES=     net geography
7
8 MAINTAINER=     adamw@FreeBSD.org
9 COMMENT=        Fetch the latest copies of the paid GeoIP database
10
11 LICENSE=        GPLv2
12
13 LIB_DEPENDS=    libcurl.so:${PORTSDIR}/ftp/curl
14
15 USE_GITHUB=     yes
16 GH_ACCOUNT=     maxmind
17 GH_TAGNAME=     v${PORTVERSION}
18 GH_COMMIT=      014f88b
19
20 USES=           libtool pathfix autoreconf
21 PATHFIX_MAKEFILEIN=     Makefile.am
22 GNU_CONFIGURE=  yes
23
24 CPPFLAGS+=      -I${LOCALBASE}/include
25 LDFLAGS+=       -L${LOCALBASE}/lib
26
27 post-extract:
28         @${MV} ${WRKSRC}/conf/GeoIP.conf.default ${WRKSRC}/conf/GeoIP.conf.sample
29
30 post-patch:
31         @${REINPLACE_CMD} -e '/^DEFAULT_CONFIG_FILE =/s/$$/.sample/' \
32                 -e 's/.default/.sample/' \
33                 ${WRKSRC}/conf/Makefile.am
34
35 .include <bsd.port.mk>