diff options
-rw-r--r-- | Makefile.am | 14 | ||||
-rw-r--r-- | NEWS | 17 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | git2chg.awk | 75 | ||||
-rw-r--r-- | src/Makefile.am | 11 | ||||
-rw-r--r-- | src/binlog.c | 25 | ||||
-rw-r--r-- | tests/atlocal.in | 5 |
8 files changed, 32 insertions, 119 deletions
diff --git a/Makefile.am b/Makefile.am index 9c03c59..2e8bde2 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of vmod-binlog | 1 | # This file is part of vmod-binlog |
2 | # Copyright (C) 2013-2014, 2016 Sergey Poznyakoff | 2 | # Copyright (C) 2013-2014, 2016, 2017 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -19,12 +19,2 @@ SUBDIRS = libltdl src tests doc | |||
19 | 19 | ||
20 | AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir | 20 | include acvmod/top.am |
21 | |||
22 | EXTRA_DIST=git2chg.awk | ||
23 | |||
24 | .PHONY: ChangeLog | ||
25 | ChangeLog: | ||
26 | $(AM_V_GEN)if test -d .git; then \ | ||
27 | git log --pretty='format:%ct %an <%ae>%n%n%s%n%n%b%n' | \ | ||
28 | awk -f $(top_srcdir)/git2chg.awk > ChangeLog; \ | ||
29 | fi | ||
30 | |||
@@ -1,3 +1,3 @@ | |||
1 | Vmod-binlog NEWS -- history of user-visible changes. 2016-01-24 | 1 | Vmod-binlog NEWS -- history of user-visible changes. 2017-08-05 |
2 | Copyright (C) 2013-2016 Sergey Poznyakoff | 2 | Copyright (C) 2013-2017 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
@@ -6,10 +6,11 @@ Please send Vmod-binlog bug reports to <gray@gnu.org> | |||
6 | 6 | ||
7 | Version 2.0.90-4.1.0 (Git) | 7 | Version 2.0.92 (Git) |
8 | 8 | ||
9 | * Versioning changes | 9 | * Support for Varnish 4.1 |
10 | 10 | ||
11 | Starting with this release, the version number includes version | 11 | * The --with-varnish-source option has been withdrawn |
12 | of Varnish API the release was designed for. | 12 | |
13 | The configure script relies on pkg-config to determine the location of | ||
14 | Varnish header files and libraries. | ||
13 | 15 | ||
14 | * Support for Varnish 4,1 | ||
15 | 16 | ||
@@ -27,3 +28,3 @@ Initial release. | |||
27 | 28 | ||
28 | Copyright (C) 2013-2016 Sergey Poznyakoff | 29 | Copyright (C) 2013-2017 Sergey Poznyakoff |
29 | 30 | ||
diff --git a/acvmod b/acvmod | |||
Subproject f064cf4d7aa1ead1f8607b8b72baf883f015ffc | Subproject ba32780019480b89cd9d796b93a76cae6afe99a | ||
diff --git a/configure.ac b/configure.ac index 3be0b79..4a72590 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of vmod-binlog | 1 | # This file is part of vmod-binlog |
2 | # Copyright (C) 2013, 2014, 2016 Sergey Poznyakoff | 2 | # Copyright (C) 2013-2017 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -16,3 +16,3 @@ | |||
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-binlog], 2.0.90-4.1.0, [gray@gnu.org]) | 17 | AC_INIT([vmod-binlog], 2.0.92, [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
diff --git a/git2chg.awk b/git2chg.awk deleted file mode 100644 index 6dad87e..0000000 --- a/git2chg.awk +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | # This file is part of grecs | ||
2 | # Copyright (C) 2007-2014 Sergey Poznyakoff | ||
3 | # | ||
4 | # Grecs is free software; you can redistribute it and/or modify | ||
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) | ||
7 | # any later version. | ||
8 | # | ||
9 | # Grecs is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with Grecs. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | BEGIN { | ||
18 | if (since) | ||
19 | split(since,since_a,"-") | ||
20 | } | ||
21 | |||
22 | function timeok(t, a) { | ||
23 | if (!since) | ||
24 | return 1 | ||
25 | split(t,a,"-") | ||
26 | if (a[1] < since_a[1]) | ||
27 | return 0 | ||
28 | if (a[1] > since_a[1]) | ||
29 | return 1 | ||
30 | if (a[2] < since_a[2]) | ||
31 | return 0 | ||
32 | if (a[2] > since_a[2]) | ||
33 | return 1 | ||
34 | return a[3] > since_a[3] | ||
35 | } | ||
36 | |||
37 | /^[0-9]+ .* +<[^>]+>/ { | ||
38 | s = strftime("%F", $1) | ||
39 | if (!timeok(s)) | ||
40 | exit | ||
41 | sub(/^[0-9]+ +/,"") | ||
42 | if (s == datestr && author == $0) | ||
43 | next | ||
44 | datestr = s | ||
45 | author = $0 | ||
46 | if (runlen) { runlen = 0; print "" } | ||
47 | printf("%s %s\n", datestr, author) | ||
48 | next | ||
49 | } | ||
50 | /^Signed-off-by:/ { next } | ||
51 | /^<unknown>$/ { next } | ||
52 | NF==0 { | ||
53 | runlen++ | ||
54 | next | ||
55 | } | ||
56 | { if (runlen) { runlen = 0; print "" } | ||
57 | print "\t" $0 } | ||
58 | |||
59 | END { | ||
60 | if (append) { | ||
61 | print "" | ||
62 | while ((getline < append) > 0) { | ||
63 | if (match($0, /^Local *Variables:/)) | ||
64 | break | ||
65 | |||
66 | } | ||
67 | } | ||
68 | print "\f" | ||
69 | # Make sure Emacs won't recognize this line: | ||
70 | print "Local", "Variables:" | ||
71 | print "mode: change-log" | ||
72 | print "version-control: never" | ||
73 | print "buffer-read-only: t" | ||
74 | print "End:" | ||
75 | } | ||
diff --git a/src/Makefile.am b/src/Makefile.am index 5a525de..2b0f953 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of vmod-binlog | 1 | # This file is part of vmod-binlog |
2 | # Copyright (C) 2013-2014, 2016 Sergey Poznyakoff | 2 | # Copyright (C) 2013-2017 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -16,6 +16,4 @@ | |||
16 | 16 | ||
17 | AM_CPPFLAGS =\ | 17 | AM_CPPFLAGS=\ |
18 | -I$(VARNISHSRC)/include\ | 18 | $(VARNISHAPI_CFLAGS) |
19 | -I$(VARNISHSRC)/bin/varnishd\ | ||
20 | -I$(VARNISHSRC) | ||
21 | 19 | ||
@@ -51,3 +49,2 @@ CLEANFILES = vcc_if.c vcc_if.h *.rst | |||
51 | 49 | ||
52 | vmodtool = $(VARNISHSRC)/lib/libvcc/vmodtool.py | ||
53 | vmodtoolargs = --strict | 50 | vmodtoolargs = --strict |
@@ -56,3 +53,3 @@ vccfile = $(top_srcdir)/src/vmod.vcc | |||
56 | vcc_if.c vcc_if.h: $(vmodtool) $(vccfile) | 53 | vcc_if.c vcc_if.h: $(vmodtool) $(vccfile) |
57 | $(AM_V_GEN)$(PYTHON) $(vmodtool) $(vmodtoolargs) $(vccfile) | 54 | $(AM_V_GEN)$(PYTHON) $(VARNISHAPI_VMODTOOL) $(vmodtoolargs) $(vccfile) |
58 | 55 | ||
diff --git a/src/binlog.c b/src/binlog.c index 1bf5950..b2d581c 100644 --- a/src/binlog.c +++ b/src/binlog.c | |||
@@ -1,3 +1,3 @@ | |||
1 | /* This file is part of vmod-binlog | 1 | /* This file is part of vmod-binlog |
2 | Copyright (C) 2013, 2014, 2016 Sergey Poznyakoff | 2 | Copyright (C) 2013, 2014, 2016, 2017 Sergey Poznyakoff |
3 | 3 | ||
@@ -33,4 +33,3 @@ | |||
33 | 33 | ||
34 | #include "bin/varnishd/cache/cache.h" | 34 | #include "cache/cache.h" |
35 | #define MOD_CTX const struct vrt_ctx * | ||
36 | #define WSPTR(s) ((s)->ws) | 35 | #define WSPTR(s) ((s)->ws) |
@@ -272,3 +271,3 @@ make_key() | |||
272 | void | 271 | void |
273 | vmod_init(MOD_CTX ctx, struct vmod_priv *priv, | 272 | vmod_init(VRT_CTX, struct vmod_priv *priv, |
274 | const char *dir, const char *format, const char *param) | 273 | const char *dir, const char *format, const char *param) |
@@ -436,3 +435,3 @@ vmod_init(MOD_CTX ctx, struct vmod_priv *priv, | |||
436 | static char * | 435 | static char * |
437 | mkfilename(MOD_CTX ctx, struct binlog_config *conf) | 436 | mkfilename(VRT_CTX, struct binlog_config *conf) |
438 | { | 437 | { |
@@ -491,3 +490,3 @@ mkdir_p(struct binlog_config *conf, char *dir) | |||
491 | static int | 490 | static int |
492 | createfile(MOD_CTX ctx, struct binlog_config *conf) | 491 | createfile(VRT_CTX, struct binlog_config *conf) |
493 | { | 492 | { |
@@ -601,3 +600,3 @@ checkheader(struct binlog_config *conf, size_t hdrsize) | |||
601 | static int | 600 | static int |
602 | newfile(MOD_CTX ctx, struct binlog_config *conf) | 601 | newfile(VRT_CTX, struct binlog_config *conf) |
603 | { | 602 | { |
@@ -685,3 +684,3 @@ newfile(MOD_CTX ctx, struct binlog_config *conf) | |||
685 | static void | 684 | static void |
686 | closefile(MOD_CTX ctx, struct binlog_config *conf) | 685 | closefile(VRT_CTX, struct binlog_config *conf) |
687 | { | 686 | { |
@@ -703,3 +702,3 @@ closefile(MOD_CTX ctx, struct binlog_config *conf) | |||
703 | VCL_VOID | 702 | VCL_VOID |
704 | vmod_start(MOD_CTX ctx, struct vmod_priv *priv) | 703 | vmod_start(VRT_CTX, struct vmod_priv *priv) |
705 | { | 704 | { |
@@ -726,3 +725,3 @@ vmod_start(MOD_CTX ctx, struct vmod_priv *priv) | |||
726 | VCL_VOID | 725 | VCL_VOID |
727 | vmod_pack(MOD_CTX ctx, struct vmod_priv *priv, VCL_STRING str) | 726 | vmod_pack(VRT_CTX, struct vmod_priv *priv, VCL_STRING str) |
728 | { | 727 | { |
@@ -761,3 +760,3 @@ vmod_pack(MOD_CTX ctx, struct vmod_priv *priv, VCL_STRING str) | |||
761 | VCL_VOID | 760 | VCL_VOID |
762 | vmod_commit(MOD_CTX ctx, struct vmod_priv *priv) | 761 | vmod_commit(VRT_CTX, struct vmod_priv *priv) |
763 | { | 762 | { |
@@ -801,3 +800,3 @@ vmod_commit(MOD_CTX ctx, struct vmod_priv *priv) | |||
801 | VCL_VOID | 800 | VCL_VOID |
802 | vmod_sync(MOD_CTX ctx, struct vmod_priv *priv) | 801 | vmod_sync(VRT_CTX, struct vmod_priv *priv) |
803 | { | 802 | { |
@@ -815,3 +814,3 @@ vmod_sync(MOD_CTX ctx, struct vmod_priv *priv) | |||
815 | VCL_VOID | 814 | VCL_VOID |
816 | vmod_close(MOD_CTX ctx, struct vmod_priv *priv) | 815 | vmod_close(VRT_CTX, struct vmod_priv *priv) |
817 | { | 816 | { |
diff --git a/tests/atlocal.in b/tests/atlocal.in index 176b83c..61d33f4 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in | |||
@@ -2,6 +2,7 @@ | |||
2 | # Configurable variable values for vmod-binlog test suite. | 2 | # Configurable variable values for vmod-binlog test suite. |
3 | # Copyright (C) 2013-2014 Sergey Poznyakoff | 3 | # Copyright (C) 2013-2017 Sergey Poznyakoff |