From 347cd583d29cbe76a22b619d604e199f00c26f54 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 27 Oct 2015 20:04:25 +0000 Subject: [PATCH] Add varnish-libvmod-saintmode , varnish Module (vmod) for detecting failing backends. --- www/Makefile | 1 + www/varnish-libvmod-saintmode/Makefile | 28 +++++++++++++++++++++++++ www/varnish-libvmod-saintmode/distinfo | 2 ++ www/varnish-libvmod-saintmode/pkg-descr | 8 +++++++ www/varnish-libvmod-saintmode/pkg-plist | 4 ++++ 5 files changed, 43 insertions(+) create mode 100644 www/varnish-libvmod-saintmode/Makefile create mode 100644 www/varnish-libvmod-saintmode/distinfo create mode 100644 www/varnish-libvmod-saintmode/pkg-descr create mode 100644 www/varnish-libvmod-saintmode/pkg-plist diff --git a/www/Makefile b/www/Makefile index cb88742008ee..42a397b66d6c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2195,6 +2195,7 @@ SUBDIR += uzbl SUBDIR += validator SUBDIR += varnish-libvmod-header + SUBDIR += varnish-libvmod-saintmode SUBDIR += varnish-nagios SUBDIR += varnish4 SUBDIR += vdr-plugin-live diff --git a/www/varnish-libvmod-saintmode/Makefile b/www/varnish-libvmod-saintmode/Makefile new file mode 100644 index 000000000000..2106fe25d0fc --- /dev/null +++ b/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 diff --git a/www/varnish-libvmod-saintmode/distinfo b/www/varnish-libvmod-saintmode/distinfo new file mode 100644 index 000000000000..8add03fcd968 --- /dev/null +++ b/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 diff --git a/www/varnish-libvmod-saintmode/pkg-descr b/www/varnish-libvmod-saintmode/pkg-descr new file mode 100644 index 000000000000..834015911003 --- /dev/null +++ b/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 diff --git a/www/varnish-libvmod-saintmode/pkg-plist b/www/varnish-libvmod-saintmode/pkg-plist new file mode 100644 index 000000000000..08f0589a19b2 --- /dev/null +++ b/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