svn commit: r543836 - in head/www: . varnish-ip2proxy

Ryan Steinmetz zi at FreeBSD.org
Thu Jul 30 23:44:11 UTC 2020


Author: zi
Date: Thu Jul 30 23:44:09 2020
New Revision: 543836
URL: https://svnweb.freebsd.org/changeset/ports/543836

Log:
  New port: www/varnish-ip2proxy:
  
  A Varnish module that enables the user to find the country, region, city,
  ISP and proxy information by IP address. The module reads the proxy
  information from IP2Proxy BIN data file.
  
  WWW: https://github.com/ip2location/IP2Proxy-Varnish

Added:
  head/www/varnish-ip2proxy/
  head/www/varnish-ip2proxy/Makefile   (contents, props changed)
  head/www/varnish-ip2proxy/distinfo   (contents, props changed)
  head/www/varnish-ip2proxy/pkg-descr   (contents, props changed)
  head/www/varnish-ip2proxy/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Thu Jul 30 23:08:45 2020	(r543835)
+++ head/www/Makefile	Thu Jul 30 23:44:09 2020	(r543836)
@@ -2280,6 +2280,7 @@
     SUBDIR += uwsgi
     SUBDIR += uwsgitop
     SUBDIR += validator
+    SUBDIR += varnish-ip2proxy
     SUBDIR += varnish-libvmod-awsrest
     SUBDIR += varnish-libvmod-digest
     SUBDIR += varnish-libvmod-dynamic

Added: head/www/varnish-ip2proxy/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/varnish-ip2proxy/Makefile	Thu Jul 30 23:44:09 2020	(r543836)
@@ -0,0 +1,42 @@
+# Created by: Ryan Steinmetz <zi at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	ip2proxy
+PORTVERSION=	1.1.0
+CATEGORIES=	www
+PKGNAMEPREFIX=	varnish-
+
+MAINTAINER=	zi at FreeBSD.org
+COMMENT=	Varnish Module (vmod) for ip2proxy
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libIP2Proxy.so:net/ip2proxy
+BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
+
+USES=		autoreconf:build libtool pkgconfig python:build varnish:6
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-static
+INSTALL_TARGET=	install-strip
+DOCSDIR=	${PREFIX}/share/doc/vmod-dynamic
+MAKE_JOBS_UNSAFE=	yes
+
+CFLAGS+=	-I${WRKSRC}/src
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ip2location
+GH_PROJECT=	${PORTNAME}-varnish
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	${REINPLACE_CMD} 's|$${VARNISHAPI_DATAROOTDIR}|${LOCALBASE}/share|' \
+		${WRKSRC}/Makefile.am
+
+pre-configure:
+	(cd ${WRKSRC} && ${SH} ./autogen.sh)
+
+.include <bsd.port.mk>

Added: head/www/varnish-ip2proxy/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/varnish-ip2proxy/distinfo	Thu Jul 30 23:44:09 2020	(r543836)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1596145425
+SHA256 (ip2location-ip2proxy-varnish-1.1.0_GH0.tar.gz) = 5bf8640a27cb84181f07b4a7fd04a89e33d9d231941ab71afdef870366644019
+SIZE (ip2location-ip2proxy-varnish-1.1.0_GH0.tar.gz) = 6130

Added: head/www/varnish-ip2proxy/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/varnish-ip2proxy/pkg-descr	Thu Jul 30 23:44:09 2020	(r543836)
@@ -0,0 +1,5 @@
+A Varnish module that enables the user to find the country, region, city,
+ISP and proxy information by IP address. The module reads the proxy
+information from IP2Proxy BIN data file.
+
+WWW: https://github.com/ip2location/IP2Proxy-Varnish

Added: head/www/varnish-ip2proxy/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/varnish-ip2proxy/pkg-plist	Thu Jul 30 23:44:09 2020	(r543836)
@@ -0,0 +1,4 @@
+lib/varnish/vmods/libvmod_ip2proxy.so
+man/man3/vmod_ip2proxy.3.gz
+share/doc/libvmod-ip2proxy/LICENSE
+share/doc/libvmod-ip2proxy/README.rst


More information about the svn-ports-all mailing list