forked from Lainports/freebsd-ports
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
39 lines
833 B
Makefile
39 lines
833 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libvmod-querystring
|
|
DISTVERSION= v2.0.2
|
|
CATEGORIES= www
|
|
PKGNAMEPREFIX= varnish-
|
|
|
|
MAINTAINER= zi@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>
|