From e626baa970247e634917f276171fa05da622b69b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= <ondrej@sury.org>
Date: Thu, 30 Apr 2015 11:53:44 +0200
Subject: [PATCH] Don't install conffiles when daemon is not built (resolves
 #350)

---
 samples/Makefile.am | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/samples/Makefile.am b/samples/Makefile.am
index ee8bce8c64..33897be56d 100644
--- a/samples/Makefile.am
+++ b/samples/Makefile.am
@@ -17,6 +17,8 @@ knot.sample.conf: knot.sample.conf.in
 
 EXTRA_DIST = knot.sample.conf.in example.com.zone
 
+if HAVE_DAEMON
+
 install-data-local: knot.sample.conf
 	[ -d $(DESTDIR)/$(config_dir) ] || \
 	  $(INSTALL) -d $(DESTDIR)/$(config_dir)
@@ -29,5 +31,7 @@ uninstall-local:
 	[ -f $(DESTDIR)/$(config_dir)/example.com.zone ] && \
 	  rm -f $(DESTDIR)/$(config_dir)/example.com.zone
 
+endif # HAVE_DAEMON
+
 clean-local:
 	rm -f knot.sample.conf
-- 
GitLab