diff --git a/CMakeLists.txt b/CMakeLists.txt index 98b41955..2798e376 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,3 +191,7 @@ if(HAVE_MQTT) FILE(GLOB MQTT_CFG_FILES "${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/mqtt-*.cfg") install(FILES ${MQTT_CFG_FILES} DESTINATION /etc/ebusd/) endif(HAVE_MQTT) +if(HAVE_KNX) + FILE(GLOB KNX_CFG_FILES "${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/knx*.cfg") + install(FILES ${KNX_CFG_FILES} DESTINATION /etc/ebusd/) +endif(HAVE_KNX) diff --git a/Makefile.am b/Makefile.am index 1fffdb1f..84dc2a55 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,10 @@ if MQTT MQTT_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/mqtt-*.cfg $(DESTDIR)$(sysconfdir)/ebusd endif +if KNX +KNX_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/knx*.cfg $(DESTDIR)$(sysconfdir)/ebusd +endif + install-data-hook: @[ -d $(DESTDIR)$(sysconfdir)/ebusd ] || mkdir -p $(DESTDIR)$(sysconfdir)/ebusd; \ if [ -f "/etc/debian_version" ]; then \ @@ -29,7 +33,8 @@ install-data-hook: cp $(srcdir)/contrib/debian/init.d/ebusd $(DESTDIR)/etc/init.d/; \ cp $(srcdir)/contrib/debian/systemd/ebusd.service $(DESTDIR)/lib/systemd/system/; \ fi; \ - $(MQTT_INST_ADD) + $(MQTT_INST_ADD) \ + $(KNX_INST_ADD) test: $(MAKE) -C src/lib/ebus/test