aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am14
-rw-r--r--NEWS17
m---------acvmod0
-rw-r--r--configure.ac4
-rw-r--r--git2chg.awk75
-rw-r--r--src/Makefile.am11
-rw-r--r--src/binlog.c25
-rw-r--r--tests/atlocal.in5
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
20AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir 20include acvmod/top.am
21
22EXTRA_DIST=git2chg.awk
23
24.PHONY: ChangeLog
25ChangeLog:
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
diff --git a/NEWS b/NEWS
index 27b4772..ed890ca 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,3 @@
1Vmod-binlog NEWS -- history of user-visible changes. 2016-01-24 1Vmod-binlog NEWS -- history of user-visible changes. 2017-08-05
2Copyright (C) 2013-2016 Sergey Poznyakoff 2Copyright (C) 2013-2017 Sergey Poznyakoff
3See the end of file for copying conditions. 3See the end of file for copying conditions.
@@ -6,10 +6,11 @@ Please send Vmod-binlog bug reports to <gray@gnu.org>
6 6
7Version 2.0.90-4.1.0 (Git) 7Version 2.0.92 (Git)
8 8
9* Versioning changes 9* Support for Varnish 4.1
10 10
11Starting with this release, the version number includes version 11* The --with-varnish-source option has been withdrawn
12of Varnish API the release was designed for. 12
13The configure script relies on pkg-config to determine the location of
14Varnish header files and libraries.
13 15
14* Support for Varnish 4,1
15 16
@@ -27,3 +28,3 @@ Initial release.
27 28
28Copyright (C) 2013-2016 Sergey Poznyakoff 29Copyright (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 @@
16AC_PREREQ(2.69) 16AC_PREREQ(2.69)
17AC_INIT([vmod-binlog], 2.0.90-4.1.0, [gray@gnu.org]) 17AC_INIT([vmod-binlog], 2.0.92, [gray@gnu.org])
18AC_CONFIG_AUX_DIR([build-aux]) 18AC_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
17BEGIN {
18 if (since)
19 split(since,since_a,"-")
20}
21
22function 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 }
52NF==0 {
53 runlen++
54 next
55}
56{ if (runlen) { runlen = 0; print "" }
57 print "\t" $0 }
58
59END {
60 if (append) {
61 print ""
62 while ((getline < append) > 0) {
63 if (match($0, /^Local *Variables:/))
64 break
65 print
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
17AM_CPPFLAGS =\ 17AM_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
52vmodtool = $(VARNISHSRC)/lib/libvcc/vmodtool.py
53vmodtoolargs = --strict 50vmodtoolargs = --strict
@@ -56,3 +53,3 @@ vccfile = $(top_srcdir)/src/vmod.vcc
56vcc_if.c vcc_if.h: $(vmodtool) $(vccfile) 53vcc_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()
272void 271void
273vmod_init(MOD_CTX ctx, struct vmod_priv *priv, 272vmod_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,
436static char * 435static char *
437mkfilename(MOD_CTX ctx, struct binlog_config *conf) 436mkfilename(VRT_CTX, struct binlog_config *conf)
438{ 437{
@@ -491,3 +490,3 @@ mkdir_p(struct binlog_config *conf, char *dir)
491static int 490static int
492createfile(MOD_CTX ctx, struct binlog_config *conf) 491createfile(VRT_CTX, struct binlog_config *conf)
493{ 492{
@@ -601,3 +600,3 @@ checkheader(struct binlog_config *conf, size_t hdrsize)
601static int 600static int
602newfile(MOD_CTX ctx, struct binlog_config *conf) 601newfile(VRT_CTX, struct binlog_config *conf)
603{ 602{
@@ -685,3 +684,3 @@ newfile(MOD_CTX ctx, struct binlog_config *conf)
685static void 684static void
686closefile(MOD_CTX ctx, struct binlog_config *conf) 685closefile(VRT_CTX, struct binlog_config *conf)
687{ 686{
@@ -703,3 +702,3 @@ closefile(MOD_CTX ctx, struct binlog_config *conf)
703VCL_VOID 702VCL_VOID
704vmod_start(MOD_CTX ctx, struct vmod_priv *priv) 703vmod_start(VRT_CTX, struct vmod_priv *priv)
705{ 704{
@@ -726,3 +725,3 @@ vmod_start(MOD_CTX ctx, struct vmod_priv *priv)
726VCL_VOID 725VCL_VOID
727vmod_pack(MOD_CTX ctx, struct vmod_priv *priv, VCL_STRING str) 726vmod_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)
761VCL_VOID 760VCL_VOID
762vmod_commit(MOD_CTX ctx, struct vmod_priv *priv) 761vmod_commit(VRT_CTX, struct vmod_priv *priv)
763{ 762{
@@ -801,3 +800,3 @@ vmod_commit(MOD_CTX ctx, struct vmod_priv *priv)
801VCL_VOID 800VCL_VOID
802vmod_sync(MOD_CTX ctx, struct vmod_priv *priv) 801vmod_sync(VRT_CTX, struct vmod_priv *priv)
803{ 802{
@@ -815,3 +814,3 @@ vmod_sync(MOD_CTX ctx, struct vmod_priv *priv)
815VCL_VOID 814VCL_VOID
816vmod_close(MOD_CTX ctx, struct vmod_priv *priv) 815vmod_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