diff options
Diffstat (limited to 'net/geoipupdate/Makefile')
-rw-r--r-- | net/geoipupdate/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/geoipupdate/Makefile b/net/geoipupdate/Makefile new file mode 100644 index 000000000000..bcc0c23d7e6c --- /dev/null +++ b/net/geoipupdate/Makefile @@ -0,0 +1,37 @@ +# Created by: adamw +# $FreeBSD$ + +PORTNAME= geoipupdate +PORTVERSION= 2.0.2 +CATEGORIES= net geography + +MAINTAINER= adamw@FreeBSD.org +COMMENT= Fetch the latest copies of the paid GeoIP database + +LICENSE= GPLv2 + +LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl + +USE_GITHUB= yes +GH_ACCOUNT= maxmind +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 929d6a7 + +USES= libtool pathfix +USE_AUTOTOOLS= aclocal automake autoconf libtoolize +AUTOMAKE_ARGS= --add-missing +PATHFIX_MAKEFILEIN= Makefile.am +GNU_CONFIGURE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +post-extract: + @${MV} ${WRKSRC}/conf/GeoIP.conf.default ${WRKSRC}/conf/GeoIP.conf.sample + +post-patch: + @${REINPLACE_CMD} -e '/^DEFAULT_CONFIG_FILE =/s/$$/.sample/' \ + -e 's/.default/.sample/' \ + ${WRKSRC}/conf/Makefile.am + +.include <bsd.port.mk> |