From 545efea37ec3c5b9aafcd1b4e8b48db2fb110c2d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 12 Apr 2019 23:04:32 +0200 Subject: [PATCH] [config] Experiment with not overwriting forked-daapd.conf --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9511406c..a50ec0b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,8 +4,6 @@ RPM_SPEC_FILE = forked-daapd.spec CONF_FILE = forked-daapd.conf SYSTEMD_SERVICE_FILE = forked-daapd.service -sysconf_DATA = $(CONF_FILE) - BUILT_SOURCES = $(CONF_FILE) $(SYSTEMD_SERVICE_FILE) SUBDIRS = sqlext src htdocs @@ -27,6 +25,8 @@ EXTRA_DIST = \ $(RPM_SPEC_FILE) install-data-hook: + $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" + [ -f "$(DESTDIR)$(sysconfdir)/$(CONF_FILE)" ] || $(INSTALL_DATA) $(CONF_FILE) "$(DESTDIR)$(sysconfdir)/$(CONF_FILE)" $(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/libspotify" $(MKDIR_P) "$(DESTDIR)$(localstatedir)/log" $(MKDIR_P) "$(DESTDIR)$(localstatedir)/run"