git: 3d71785ff5fa - main - www/varnish-libvmod-geoip2: new port:

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Mon, 11 Apr 2022 19:43:42 UTC
The branch main has been updated by zi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d71785ff5fa0154179cc41f85a414f74d01cc3b

commit 3d71785ff5fa0154179cc41f85a414f74d01cc3b
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2022-04-11 19:41:47 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2022-04-11 19:42:55 +0000

    www/varnish-libvmod-geoip2: new port:
    
    Varnish Module (vmod) for accessing MaxMind GeoIP2 DB files.
    It supports opening multiple databases at the same time.
    
    WWW: https://github.com/fgsch/libvmod-geoip2
---
 www/Makefile                         |  1 +
 www/varnish-libvmod-geoip2/Makefile  | 32 ++++++++++++++++++++++++++++++++
 www/varnish-libvmod-geoip2/distinfo  |  3 +++
 www/varnish-libvmod-geoip2/pkg-descr |  4 ++++
 www/varnish-libvmod-geoip2/pkg-plist |  3 +++
 5 files changed, 43 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index f99a8d0130f9..5ec0f36d3780 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2306,6 +2306,7 @@
     SUBDIR += varnish-ip2proxy
     SUBDIR += varnish-libvmod-digest
     SUBDIR += varnish-libvmod-dynamic
+    SUBDIR += varnish-libvmod-geoip2
     SUBDIR += varnish-libvmod-maxminddb
     SUBDIR += varnish-libvmod-querystring
     SUBDIR += varnish-libvmod-redis
diff --git a/www/varnish-libvmod-geoip2/Makefile b/www/varnish-libvmod-geoip2/Makefile
new file mode 100644
index 000000000000..0e75e0e1ced6
--- /dev/null
+++ b/www/varnish-libvmod-geoip2/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	libvmod-geoip2
+PORTVERSION=	20210423
+CATEGORIES=	www
+PKGNAMEPREFIX=	varnish-
+
+MAINTAINER=	zi@FreeBSD.org
+COMMENT=	Varnish Module (vmod) to query MaxMind GeoIP2 DB files
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
+LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
+
+USES=		autoreconf:build gmake libtool pkgconfig \
+		python:3.7+,build varnish:7
+USE_GITHUB=	yes
+GH_ACCOUNT=	fgsch
+GH_PROJECT=	libvmod-geoip2
+GH_TAGNAME=	68a7f45
+USE_LDCONFIG=	${PREFIX}/lib/varnish/vmods
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-static
+
+INSTALL_TARGET=	install-strip
+
+OPTIONS_DEFINE=	DOCS
+
+pre-configure:
+	(cd ${WRKSRC} && ${SH} ./autogen.sh)
+
+.include <bsd.port.mk>
diff --git a/www/varnish-libvmod-geoip2/distinfo b/www/varnish-libvmod-geoip2/distinfo
new file mode 100644
index 000000000000..bf74ed0c76ae
--- /dev/null
+++ b/www/varnish-libvmod-geoip2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1649705084
+SHA256 (fgsch-libvmod-geoip2-20210423-68a7f45_GH0.tar.gz) = 97d04759ca3966be19a91705bd616b44206a1b1bbbf5c2770b5cc766e8f79808
+SIZE (fgsch-libvmod-geoip2-20210423-68a7f45_GH0.tar.gz) = 9631
diff --git a/www/varnish-libvmod-geoip2/pkg-descr b/www/varnish-libvmod-geoip2/pkg-descr
new file mode 100644
index 000000000000..8f42545cb84d
--- /dev/null
+++ b/www/varnish-libvmod-geoip2/pkg-descr
@@ -0,0 +1,4 @@
+Varnish Module (vmod) for accessing MaxMind GeoIP2 DB files.
+It supports opening multiple databases at the same time.
+
+WWW: https://github.com/fgsch/libvmod-geoip2
diff --git a/www/varnish-libvmod-geoip2/pkg-plist b/www/varnish-libvmod-geoip2/pkg-plist
new file mode 100644
index 000000000000..3582cb8e2820
--- /dev/null
+++ b/www/varnish-libvmod-geoip2/pkg-plist
@@ -0,0 +1,3 @@
+lib/varnish/vmods/libvmod_geoip2.so
+man/man3/vmod_geoip2.3.gz
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE