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
This commit is contained in:
Ryan Steinmetz 2020-07-30 23:44:09 +00:00
parent 9ba2d9f530
commit b6c3cdd845
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=543836
5 changed files with 55 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,42 @@
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= ip2proxy
PORTVERSION= 1.1.0
CATEGORIES= www
PKGNAMEPREFIX= varnish-
MAINTAINER= zi@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>

View file

@ -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

View file

@ -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

View file

@ -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