diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 14:58:45 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 14:58:45 +0200 |
commit | 0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44 (patch) | |
tree | 613bd865c8185a26c1723dd6d1879af5e3c2dd1a | |
parent | c8cee8164cf638da3851a2c56a844e5ff3609eb0 (diff) | |
download | vmod-variable-0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44.tar.gz vmod-variable-0bf07eac5b81f040a18b9c2071f8b7e6fd06fe44.tar.bz2 |
Version 1.3 (supports Varnish 6.0.2)release-1.3
-rw-r--r-- | NEWS | 9 | ||||
-rw-r--r-- | README | 16 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | src/variable.c | 20 | ||||
-rw-r--r-- | src/vmod-variable.3 | 8 |
6 files changed, 43 insertions, 18 deletions
@@ -1,12 +1,15 @@ | |||
1 | vmod-variable -- history of user-visible changes. 2017-08-10 | 1 | vmod-variable -- history of user-visible changes. 2018-12-10 |
2 | Copyright (C) 2015-2017 Sergey Poznyakoff | ||
3 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
4 | 3 | ||
5 | Please send vmod-variable bug reports to <gray@gnu.org> | 4 | Please send vmod-variable bug reports to <gray@gnu.org> |
6 | 5 | ||
6 | Version 1.3, 2018-12-10 | ||
7 | |||
8 | * Support for Varnish 6.0.2 | ||
9 | |||
7 | Version 1.2, 2017-08-10 | 10 | Version 1.2, 2017-08-10 |
8 | 11 | ||
9 | * Support for Varnish 5.1 | 12 | * Support for Varnish 5.1 |
10 | 13 | ||
11 | 14 | ||
12 | Version 1.1, 2017-08-06 | 15 | Version 1.1, 2017-08-06 |
@@ -23,13 +26,13 @@ Version 1.0, 2015-02-16 | |||
23 | 26 | ||
24 | Initial release | 27 | Initial release |
25 | 28 | ||
26 | ========================================================================= | 29 | ========================================================================= |
27 | Copyright information: | 30 | Copyright information: |
28 | 31 | ||
29 | Copyright (C) 2015-2017 Sergey Poznyakoff | 32 | Copyright (C) 2015-2018 Sergey Poznyakoff |
30 | 33 | ||
31 | Permission is granted to anyone to make or distribute verbatim copies | 34 | Permission is granted to anyone to make or distribute verbatim copies |
32 | of this document as received, in any medium, provided that the | 35 | of this document as received, in any medium, provided that the |
33 | copyright notice and this permission notice are preserved, | 36 | copyright notice and this permission notice are preserved, |
34 | thus giving the recipient permission to redistribute in turn. | 37 | thus giving the recipient permission to redistribute in turn. |
35 | 38 | ||
@@ -1,8 +1,7 @@ | |||
1 | Vmod-variable README | 1 | Vmod-variable README |
2 | Copyright (C) 2015 Sergey Poznyakoff | ||
3 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
4 | 3 | ||
5 | * Introduction | 4 | * Introduction |
6 | 5 | ||
7 | This file contains brief information about configuring, testing | 6 | This file contains brief information about configuring, testing |
8 | and using vmod-variable. It is *not* intended as a replacement | 7 | and using vmod-variable. It is *not* intended as a replacement |
@@ -13,13 +12,13 @@ For accessing complete vmod-variable documentation, see the section | |||
13 | For a list of differences between this module and vmod_var, see | 12 | For a list of differences between this module and vmod_var, see |
14 | the section "vmod_variable vs. vmod_var". | 13 | the section "vmod_variable vs. vmod_var". |
15 | 14 | ||
16 | * Overview | 15 | * Overview |
17 | 16 | ||
18 | This module provides enhanced variable support for VCL scripts. | 17 | This module provides enhanced variable support for VCL scripts. |
19 | It compiles for Varnish versions 3 and 4. | 18 | It compiles for Varnish versions from 4.1 to 6.0.2. |
20 | 19 | ||
21 | There are two kinds of variables: session-specific, which have the | 20 | There are two kinds of variables: session-specific, which have the |
22 | lifespan of one HTTP session (connection) and cease to exist when | 21 | lifespan of one HTTP session (connection) and cease to exist when |
23 | it is closed, and global, which are shared between all sessions. | 22 | it is closed, and global, which are shared between all sessions. |
24 | 23 | ||
25 | Session-specific variables are typed, a pair of functions is provided | 24 | Session-specific variables are typed, a pair of functions is provided |
@@ -216,13 +215,26 @@ install. To read it without actually installing the module, run | |||
216 | An online copy of the documentation is available from | 215 | An online copy of the documentation is available from |
217 | http://www.gnu.org.ua/software/vmod-variable. | 216 | http://www.gnu.org.ua/software/vmod-variable. |
218 | 217 | ||
219 | * Bug reporting | 218 | * Bug reporting |
220 | 219 | ||
221 | Send bug reports and suggestions to <gray@gnu.org> | 220 | Send bug reports and suggestions to <gray@gnu.org> |
221 | |||
222 | * Copyright information: | ||
223 | |||
224 | Copyright (C) 2013-2018 Sergey Poznyakoff | ||
225 | |||
226 | Permission is granted to anyone to make or distribute verbatim copies | ||
227 | of this document as received, in any medium, provided that the | ||
228 | copyright notice and this permission notice are preserved, | ||
229 | thus giving the recipient permission to redistribute in turn. | ||
222 | 230 | ||
231 | Permission is granted to distribute modified versions | ||
232 | of this document, or of portions of it, | ||
233 | under the above conditions, provided also that they | ||
234 | carry prominent notices stating who last changed them. | ||
223 | 235 | ||
224 | Local Variables: | 236 | Local Variables: |
225 | mode: outline | 237 | mode: outline |
226 | paragraph-separate: "[ ]*$" | 238 | paragraph-separate: "[ ]*$" |
227 | version-control: never | 239 | version-control: never |
228 | End: | 240 | End: |
diff --git a/acvmod b/acvmod | |||
Subproject 5f6dce2f7dd35a154333bb42d134a018b981f81 | Subproject 5b214e3d72f9e261a37cf31deb41e7f8a61a181 | ||
diff --git a/configure.ac b/configure.ac index e80461a..48c7a2f 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,8 +1,8 @@ | |||
1 | # This file is part of vmod-variable -*- autoconf -*- | 1 | # This file is part of vmod-variable -*- autoconf -*- |
2 | # Copyright (C) 2015-2017 Sergey Poznyakoff | 2 | # Copyright (C) 2015-2018 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # Vmod-variable is free software; you can redistribute it and/or modify | 4 | # Vmod-variable is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
6 | # the Free Software Foundation; either version 3, or (at your option) | 6 | # the Free Software Foundation; either version 3, or (at your option) |
7 | # any later version. | 7 | # any later version. |
8 | # | 8 | # |
@@ -11,13 +11,13 @@ | |||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
13 | # | 13 | # |
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-variable], [1.2], [gray@gnu.org]) | 17 | AC_INIT([vmod-variable], [1.3], [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/variable.vcc) | 20 | AC_CONFIG_SRCDIR(src/variable.vcc) |
21 | AM_CONFIG_HEADER(config.h) | 21 | AM_CONFIG_HEADER(config.h) |
22 | 22 | ||
23 | AC_SUBST([AC_VMOD_BASENAME],[variable]) | 23 | AC_SUBST([AC_VMOD_BASENAME],[variable]) |
@@ -47,13 +47,15 @@ AC_CHECK_HEADERS(pcre.h,, | |||
47 | 47 | ||
48 | # Check for functions | 48 | # Check for functions |
49 | AC_CHECK_FUNCS(sysinfo getloadavg) | 49 | AC_CHECK_FUNCS(sysinfo getloadavg) |
50 | AC_CHECK_LIB(pcre, pcre_compile,, | 50 | AC_CHECK_LIB(pcre, pcre_compile,, |
51 | AC_MSG_ERROR([required library libpcre not found])) | 51 | AC_MSG_ERROR([required library libpcre not found])) |
52 | 52 | ||
53 | AM_VARNISHAPI([4.1],[5.1]) | 53 | AM_VARNISHAPI([4.1],[6.0.2]) |
54 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], | ||
55 | [Varnish API major version number]) | ||
54 | 56 | ||
55 | AC_CONFIG_TESTDIR(tests) | 57 | AC_CONFIG_TESTDIR(tests) |
56 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) | 58 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) |
57 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) | 59 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
58 | 60 | ||
59 | AC_CONFIG_FILES([ | 61 | AC_CONFIG_FILES([ |
diff --git a/src/variable.c b/src/variable.c index feaaa21..b8905be 100644 --- a/src/variable.c +++ b/src/variable.c | |||
@@ -1,8 +1,8 @@ | |||
1 | /* This file is part of vmod-variable | 1 | /* This file is part of vmod-variable |
2 | Copyright (C) 2013-2017 Sergey Poznyakoff | 2 | Copyright (C) 2013-2018 Sergey Poznyakoff |
3 | 3 | ||
4 | Vmod-variable is free software; you can redistribute it and/or modify | 4 | Vmod-variable is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 3, or (at your option) | 6 | the Free Software Foundation; either version 3, or (at your option) |
7 | any later version. | 7 | any later version. |
8 | 8 | ||
@@ -16,19 +16,27 @@ | |||
16 | */ | 16 | */ |
17 | #include <config.h> | 17 | #include <config.h> |
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | #include <stdarg.h> | 19 | #include <stdarg.h> |
20 | #include <syslog.h> | 20 | #include <syslog.h> |
21 | #include <errno.h> | 21 | #include <errno.h> |
22 | #include <string.h> | ||
22 | #include <ctype.h> | 23 | #include <ctype.h> |
23 | #include <pcre.h> | 24 | #include <pcre.h> |
24 | #include "vrt.h" | 25 | #include <pthread.h> |
25 | #include "vcc_if.h" | 26 | #include <limits.h> |
26 | #include "pthread.h" | 27 | #if VARNISHAPI_MAJOR > 5 |
27 | #include "cache/cache.h" | 28 | # include "cache/cache.h" |
28 | 29 | # include "vcl.h" | |
30 | # include "vcc_if.h" | ||
31 | #else | ||
32 | # include "vcl.h" | ||
33 | # include "vrt.h" | ||
34 | # include "vcc_if.h" | ||
35 | # include "cache/cache.h" | ||
36 | #endif | ||
29 | #define WSPTR(s) ((s)->ws) | 37 | #define WSPTR(s) ((s)->ws) |
30 | 38 | ||
31 | /* |hash_size| defines a sequence of symbol table sizes. These are prime | 39 | /* |hash_size| defines a sequence of symbol table sizes. These are prime |
32 | numbers, each of which is approximately twice its predecessor. */ | 40 | numbers, each of which is approximately twice its predecessor. */ |
33 | 41 | ||
34 | static unsigned int hash_size[] = { | 42 | static unsigned int hash_size[] = { |
diff --git a/src/vmod-variable.3 b/src/vmod-variable.3 index f249ad3..b74e069 100644 --- a/src/vmod-variable.3 +++ b/src/vmod-variable.3 | |||
@@ -1,8 +1,8 @@ | |||
1 | .\" This file is part of Vmod-variable -*- nroff -*- | 1 | .\" This file is part of Vmod-variable -*- nroff -*- |
2 | .\" Copyright (C) 2015 Sergey Poznyakoff | 2 | .\" Copyright (C) 2015-2018 Sergey Poznyakoff |
3 | .\" | 3 | .\" |