1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

www/varnish-libvmod-querystring: Update to 2.0.3, support varnish 7

This commit is contained in:
Ryan Steinmetz 2022-04-08 11:16:05 -04:00
parent 0d791bbe0e
commit af9bd6b986
No known key found for this signature in database
GPG Key ID: D2C3D2B2FEF36DD7
3 changed files with 5 additions and 35 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= libvmod-querystring
DISTVERSION= v2.0.2
PORTREVISION= 1
DISTVERSION= v2.0.3
CATEGORIES= www
PKGNAMEPREFIX= varnish-
@ -12,7 +11,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR}
USES= autoreconf libtool pkgconfig python:3.5+,build varnish:6
USES= autoreconf libtool pkgconfig python:3.5+,build varnish:7
USE_LDCONFIG= yes
GNU_CONFIGURE= yes

View File

@ -1,3 +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
TIMESTAMP = 1649430745
SHA256 (Dridi-libvmod-querystring-v2.0.3_GH0.tar.gz) = 4f7f54778bf808949cedcb360b925a3251c84a8d3a0d9ffdc722342f5ea6e89b
SIZE (Dridi-libvmod-querystring-v2.0.3_GH0.tar.gz) = 28082

View File

@ -1,29 +0,0 @@
--- src/vmod_querystring.c.orig 2020-09-21 14:52:07 UTC
+++ src/vmod_querystring.c
@@ -208,6 +208,17 @@ qs_match_regex(VRT_CTX, const struct qs_
return (VRT_re_match(ctx, s, qsf->ptr));
}
+static void
+qs_free_regex(void *priv)
+{
+ vre_t *re;
+
+ AN(priv);
+ re = priv;
+ VRE_free(&re);
+ AZ(re);
+}
+
static int
qs_match_glob(VRT_CTX, const struct qs_filter *qsf, const char *s,
unsigned keep)
@@ -595,7 +606,7 @@ vmod_filter_add_regex(VRT_CTX, struct VP
}
qsf->match = qs_match_regex;
- qsf->free = VRT_re_fini;
+ qsf->free = qs_free_regex;
VTAILQ_INSERT_TAIL(&obj->filters, qsf, list);
}