From fb7c61922fecabbcec47f2303f96c5cec451c733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Br=C3=A6khus?= Date: Thu, 12 Oct 2017 11:45:21 +0200 Subject: [PATCH 1/5] Add placeholder boot.vcl. --- debian/postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/debian/postinst b/debian/postinst index 0ff08fe..4ce5852 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,6 +6,17 @@ set -e case ${1:-} in configure) install -o varnish -g varnish -d /var/lib/varnish-agent + test -f /var/lib/varnish-agent/boot.vcl || \ + cat > /var/lib/varnish-agent/boot.vcl < /etc/varnish/agent_secret && \ chmod 0600 /etc/varnish/agent_secret) From 593fc8af98d9da85b4dc2b880a71106b9ddd15db Mon Sep 17 00:00:00 2001 From: Hugo Cruz Date: Thu, 12 Oct 2017 11:48:45 +0200 Subject: [PATCH 2/5] Testing out schroot dir permissions for build --- include/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/include/Makefile.am b/include/Makefile.am index ca5993c..f441e07 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -2,6 +2,7 @@ nobase_noinst_HEADERS = common.h helpers.h plugins.h ipc.h http.h vss-hack.h vag BUILT_SOURCES = vagent_version.h MAINTAINERCLEANFILES = vagent_version.h vagent_version.h: FORCE + ls -Rl ../ if [ -d "$(top_srcdir)/.git" ]; then \ V=$$(git describe --always --tags --dirty 2>/dev/null || echo NOGIT); \ echo "V: $$V"; \ From 04f3f0ab070032499b75c4264b8930c86f997963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Br=C3=A6khus?= Date: Thu, 12 Oct 2017 13:01:55 +0200 Subject: [PATCH 3/5] add -a to debug ls. --- include/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Makefile.am b/include/Makefile.am index f441e07..7df9dd3 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -2,7 +2,7 @@ nobase_noinst_HEADERS = common.h helpers.h plugins.h ipc.h http.h vss-hack.h vag BUILT_SOURCES = vagent_version.h MAINTAINERCLEANFILES = vagent_version.h vagent_version.h: FORCE - ls -Rl ../ + ls -Rla ../ if [ -d "$(top_srcdir)/.git" ]; then \ V=$$(git describe --always --tags --dirty 2>/dev/null || echo NOGIT); \ echo "V: $$V"; \ From a431433cba0cd36c52407467b143c59bceacc166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Br=C3=A6khus?= Date: Thu, 12 Oct 2017 13:07:42 +0200 Subject: [PATCH 4/5] Debug more. --- include/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/Makefile.am b/include/Makefile.am index 7df9dd3..27c3efd 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -2,8 +2,9 @@ nobase_noinst_HEADERS = common.h helpers.h plugins.h ipc.h http.h vss-hack.h vag BUILT_SOURCES = vagent_version.h MAINTAINERCLEANFILES = vagent_version.h vagent_version.h: FORCE - ls -Rla ../ if [ -d "$(top_srcdir)/.git" ]; then \ + echo "Found $(top_srcdir)/.git"; \ + git describe --always --tags --dirty; \ V=$$(git describe --always --tags --dirty 2>/dev/null || echo NOGIT); \ echo "V: $$V"; \ ( \ From d4858b24640ffc518e6c724192a4f9d2fca93cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Br=C3=A6khus?= Date: Fri, 13 Oct 2017 10:35:57 +0200 Subject: [PATCH 5/5] Heredoc indentation fix. --- debian/postinst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/postinst b/debian/postinst index 4ce5852..ffe8061 100644 --- a/debian/postinst +++ b/debian/postinst @@ -8,14 +8,14 @@ case ${1:-} in install -o varnish -g varnish -d /var/lib/varnish-agent test -f /var/lib/varnish-agent/boot.vcl || \ cat > /var/lib/varnish-agent/boot.vcl < /etc/varnish/agent_secret && \