Index: head/www/Makefile =================================================================== --- head/www/Makefile +++ head/www/Makefile @@ -2254,6 +2254,7 @@ SUBDIR += uzbl SUBDIR += validator SUBDIR += varnish-libvmod-header + SUBDIR += varnish-libvmod-maxminddb SUBDIR += varnish-libvmod-saintmode SUBDIR += varnish-nagios SUBDIR += varnish4 Index: head/www/varnish-libvmod-maxminddb/Makefile =================================================================== --- head/www/varnish-libvmod-maxminddb/Makefile +++ head/www/varnish-libvmod-maxminddb/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= libvmod-maxminddb +DISTVERSION= 1.0.0 +CATEGORIES= www +PKGNAMEPREFIX= varnish- + +MAINTAINER= ports@FreeBSD.org +COMMENT= Varnish Module (vmod) for accessing maxminddb geoip data + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= varnish4>=4.1.0:www/varnish4 \ + rst2man:textproc/py-docutils + +LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb + +RUN_DEPENDS= varnish4>=4.1.0:www/varnish4 + +USES= autoreconf gmake libtool pkgconfig python:2,build +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-static +CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +LDFLAGS+= -L${LOCALBASE}/lib +INSTALL_TARGET= install-strip + +USE_GITHUB= yes +GH_ACCOUNT= simonvik +GH_PROJECT= libvmod_maxminddb +GH_TAGNAME= 4ae6a7f + +.include Index: head/www/varnish-libvmod-maxminddb/distinfo =================================================================== --- head/www/varnish-libvmod-maxminddb/distinfo +++ head/www/varnish-libvmod-maxminddb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1463350841 +SHA256 (simonvik-libvmod_maxminddb-1.0.0-4ae6a7f_GH0.tar.gz) = d6aab1a15ebcc6136a975250d223223413603b53dbf1c02652dfa5edd83f3d8a +SIZE (simonvik-libvmod_maxminddb-1.0.0-4ae6a7f_GH0.tar.gz) = 3927 Index: head/www/varnish-libvmod-maxminddb/files/patch-Makefile.am =================================================================== --- head/www/varnish-libvmod-maxminddb/files/patch-Makefile.am +++ head/www/varnish-libvmod-maxminddb/files/patch-Makefile.am @@ -0,0 +1,16 @@ +--- Makefile.am.orig 2016-05-15 22:29:56 UTC ++++ Makefile.am +@@ -2,11 +2,11 @@ ACLOCAL_AMFLAGS = -I m4 + + SUBDIRS = src + +-dist_man_MANS = vmod_geoip.3 ++dist_man_MANS = vmod_maxminddb.3 + MAINTAINERCLEANFILES = $(dist_man_MANS) + doc_DATA = README.rst LICENSE + +-vmod_geoip.3: README.rst ++vmod_maxminddb.3: README.rst + if HAVE_RST2MAN + ${RST2MAN} README.rst $@ + else Index: head/www/varnish-libvmod-maxminddb/pkg-descr =================================================================== --- head/www/varnish-libvmod-maxminddb/pkg-descr +++ head/www/varnish-libvmod-maxminddb/pkg-descr @@ -0,0 +1,3 @@ +Varnish Module (vmod) for accessing maxminddb geoip data + +WWW: https://github.com/simonvik/libvmod_maxminddb Index: head/www/varnish-libvmod-maxminddb/pkg-plist =================================================================== --- head/www/varnish-libvmod-maxminddb/pkg-plist +++ head/www/varnish-libvmod-maxminddb/pkg-plist @@ -0,0 +1,4 @@ +lib/varnish/vmods/libvmod_maxminddb.so +man/man3/vmod_maxminddb.3.gz +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.rst