Index: www/varnish-libvmod-saintmode/Makefile =================================================================== --- /dev/null +++ www/varnish-libvmod-saintmode/Makefile @@ -0,0 +1,28 @@ +# Created by: Mark Felder +# $FreeBSD$ + +PORTNAME= libvmod-saintmode +DISTVERSIONPREFIX=v +DISTVERSION= 1.0.0 +CATEGORIES= www +PKGNAMEPREFIX= varnish- + +MAINTAINER= feld@FreeBSD.org +COMMENT= Varnish Module (vmod) for detecting failing backends + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= varnish4>=4.0.2:${PORTSDIR}/www/varnish4 \ + rst2man:${PORTSDIR}/textproc/py-docutils + +USES= autoreconf gmake libtool pkgconfig python:2,build +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-static +CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/varnish +INSTALL_TARGET= install-strip + +USE_GITHUB= yes +GH_ACCOUNT= varnish + +.include Index: www/varnish-libvmod-saintmode/distinfo =================================================================== --- /dev/null +++ www/varnish-libvmod-saintmode/distinfo @@ -0,0 +1,2 @@ +SHA256 (varnish-libvmod-saintmode-v1.0.0_GH0.tar.gz) = 33d7b3e9d3debfa0539d78fb106bfd69a8a344d77c87618f57c30ce8dc0bc869 +SIZE (varnish-libvmod-saintmode-v1.0.0_GH0.tar.gz) = 8514 Index: www/varnish-libvmod-saintmode/pkg-descr =================================================================== --- /dev/null +++ www/varnish-libvmod-saintmode/pkg-descr @@ -0,0 +1,8 @@ +Saintmode lets you deal with a backend that is failing in random ways +for specific requests. It maintains a blacklist per backend, marking the +backend as sick for specific objects. When the number of objects marked +as sick for a backend reaches a set threshold, the backend is considered +sick for all requests. Each blacklisted object carries a TTL, which +denotes the time it will stay blacklisted. + +WWW: https://github.com/varnish/libvmod-saintmode Index: www/varnish-libvmod-saintmode/pkg-plist =================================================================== --- /dev/null +++ www/varnish-libvmod-saintmode/pkg-plist @@ -0,0 +1,4 @@ +lib/varnish/vmods/libvmod_saintmode.so +man/man3/vmod_saintmode.3.gz +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.rst