svn commit: r553630 - in head/www: . varnish-libvmod-querystring
Ryan Steinmetz
zi at FreeBSD.org
Thu Oct 29 17:57:38 UTC 2020
Author: zi
Date: Thu Oct 29 17:57:36 2020
New Revision: 553630
URL: https://svnweb.freebsd.org/changeset/ports/553630
Log:
New port: www/varnish-libvmod-querystring:
The purpose of this module is to give you a fine-grained control over a URL's
query-string in Varnish Cache. It's possible to remove the query-string,
clean it, sort its parameters or filter it to only keep a subset of them.
This can greatly improve your hit ratio and efficiency with Varnish, because
by default two URLs with the same path but different query-strings are also
different. This is what the RFCs mandate but probably not what you usually
want for your web site or application.
WWW: https://github.com/Dridi/libvmod-querystring
Added:
head/www/varnish-libvmod-querystring/
head/www/varnish-libvmod-querystring/Makefile (contents, props changed)
head/www/varnish-libvmod-querystring/distinfo (contents, props changed)
head/www/varnish-libvmod-querystring/pkg-descr (contents, props changed)
head/www/varnish-libvmod-querystring/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Thu Oct 29 17:28:57 2020 (r553629)
+++ head/www/Makefile Thu Oct 29 17:57:36 2020 (r553630)
@@ -2272,6 +2272,7 @@
SUBDIR += varnish-libvmod-digest
SUBDIR += varnish-libvmod-dynamic
SUBDIR += varnish-libvmod-maxminddb
+ SUBDIR += varnish-libvmod-querystring
SUBDIR += varnish-modules
SUBDIR += varnish-nagios
SUBDIR += varnish4
Added: head/www/varnish-libvmod-querystring/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/varnish-libvmod-querystring/Makefile Thu Oct 29 17:57:36 2020 (r553630)
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME= libvmod-querystring
+DISTVERSION= v2.0.2
+CATEGORIES= www
+PKGNAMEPREFIX= varnish-
+
+MAINTAINER= zi at FreeBSD.org
+COMMENT= Varnish Module (vmod) for querystring manipulation
+
+LICENSE= GPLv1
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR}
+
+USES= autoreconf libtool pkgconfig python:3.5+,build varnish:6
+USE_LDCONFIG= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-static
+INSTALL_TARGET= install-strip
+DOCSDIR= ${PREFIX}/share/doc/vmod-querystring
+
+CFLAGS+= -I${WRKSRC}/src
+
+USE_GITHUB= yes
+GH_ACCOUNT= Dridi
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ ${REINPLACE_CMD} 's|$${VARNISHAPI_DATAROOTDIR}|${LOCALBASE}/share|' \
+ ${WRKSRC}/Makefile.am
+
+post-build:
+ (cd ${WRKSRC}/src && ${LOCALBASE}/bin/rst2man \
+ vmod_querystring.man.rst vmod_querystring.3)
+
+.include <bsd.port.mk>
Added: head/www/varnish-libvmod-querystring/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/varnish-libvmod-querystring/distinfo Thu Oct 29 17:57:36 2020 (r553630)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1603992320
+SHA256 (Dridi-libvmod-querystring-v2.0.2_GH0.tar.gz) = fc8ef6259bb048b79977843f348ba8cdccec786b9528a4b245d6094e3a067896
+SIZE (Dridi-libvmod-querystring-v2.0.2_GH0.tar.gz) = 27681
Added: head/www/varnish-libvmod-querystring/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/varnish-libvmod-querystring/pkg-descr Thu Oct 29 17:57:36 2020 (r553630)
@@ -0,0 +1,10 @@
+The purpose of this module is to give you a fine-grained control over a URL's
+query-string in Varnish Cache. It's possible to remove the query-string,
+clean it, sort its parameters or filter it to only keep a subset of them.
+
+This can greatly improve your hit ratio and efficiency with Varnish, because
+by default two URLs with the same path but different query-strings are also
+different. This is what the RFCs mandate but probably not what you usually
+want for your web site or application.
+
+WWW: https://github.com/Dridi/libvmod-querystring
Added: head/www/varnish-libvmod-querystring/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/varnish-libvmod-querystring/pkg-plist Thu Oct 29 17:57:36 2020 (r553630)
@@ -0,0 +1,5 @@
+lib/varnish/vmods/libvmod_querystring.so
+man/man3/vmod_querystring.3.gz
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTORS
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
More information about the svn-ports-head
mailing list