aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Lunghi <nicola.lunghi@jci.com>2018-06-05 14:39:08 +0100
committerKhem Raj <raj.khem@gmail.com>2018-06-05 18:17:21 -0700
commit101af9d6524b82038474c87baa1616b880357125 (patch)
treec8c53c26332a73b15d4567c5af5d6bc935a13bff
parent8576a857be939081bd89e60ed6782e9bae071f08 (diff)
downloadmeta-openembedded-contrib-101af9d6524b82038474c87baa1616b880357125.tar.gz
meta-openembedded-contrib-101af9d6524b82038474c87baa1616b880357125.tar.bz2
meta-openembedded-contrib-101af9d6524b82038474c87baa1616b880357125.zip
mosquitto: add default configuration file
the mosquitto recipe doesn't add a mosquitto configuration file add it from the mosquitto.conf.example file Signed-off-by: Nicola Lunghi <nicola.lunghi@jci.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb
index ffa7d73a5e..8dd2124c41 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb
@@ -47,6 +47,10 @@ do_install() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/mosquitto.service ${D}${systemd_unitdir}/system/
+ install -d ${D}${sysconfdir}/mosquitto
+ install -m 0644 ${D}${sysconfdir}/mosquitto/mosquitto.conf.example \
+ ${D}${sysconfdir}/mosquitto/mosquitto.conf
+
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto
sed -i -e 's,@SBINDIR@,${sbindir},g' \
@@ -67,6 +71,8 @@ FILES_${PN} = "${sbindir}/mosquitto \
${systemd_unitdir}/system/mosquitto.service \
"
+CONFFILES_${PN} += "${sysconfdir}/mosquitto/mosquitto.conf"
+
FILES_libmosquitto1 = "${libdir}/libmosquitto.so.1"
FILES_libmosquittopp1 = "${libdir}/libmosquittopp.so.1"