The broker service should run with a config file, but we can't use the example installed with the default install stage with 'install_alternative' in targetinstall stage (wrong place), so we install it a second time to a place better suitable.
Signed-off-by: Alexander Dahl <a...@thorsis.com> --- rules/mosquitto.make | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rules/mosquitto.make b/rules/mosquitto.make index 6d3002a82..63cd2dca5 100644 --- a/rules/mosquitto.make +++ b/rules/mosquitto.make @@ -54,6 +54,16 @@ MOSQUITTO_INSTALL_OPT := \ $(MOSQUITTO_MAKE_OPT) \ install +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- +$(STATEDIR)/mosquitto.install: + @$(call targetinfo) + @$(call world/install, MOSQUITTO) + @install -v -D -m644 $(MOSQUITTO_DIR)/mosquitto.conf \ + $(MOSQUITTO_PKGDIR)/etc/mosquitto/mosquitto.conf + @$(call touch) + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- @@ -77,6 +87,8 @@ endif ifdef PTXCONF_MOSQUITTO_BROKER @$(call install_copy, mosquitto, 0, 0, 0755, -, /usr/sbin/mosquitto) + @$(call install_alternative, mosquitto, 0, 0, 0644, \ + /etc/mosquitto/mosquitto.conf) endif @$(call install_finish, mosquitto) -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de