summaryrefslogtreecommitdiff
path: root/recipes-connectivity/mosquitto
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/mosquitto')
-rw-r--r--recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf7
-rw-r--r--recipes-connectivity/mosquitto/mosquitto_1.4.bb6
2 files changed, 12 insertions, 1 deletions
diff --git a/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf b/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf
new file mode 100644
index 0000000..5f4779b
--- /dev/null
+++ b/recipes-connectivity/mosquitto/mosquitto/mosquitto.logrotate.conf
@@ -0,0 +1,7 @@
+/var/log/mosquitto.log {
+ size 512k
+ rotate 4
+ compress
+ copytruncate
+ missingok
+}
diff --git a/recipes-connectivity/mosquitto/mosquitto_1.4.bb b/recipes-connectivity/mosquitto/mosquitto_1.4.bb
index e3e1449..319ca49 100644
--- a/recipes-connectivity/mosquitto/mosquitto_1.4.bb
+++ b/recipes-connectivity/mosquitto/mosquitto_1.4.bb
@@ -7,12 +7,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62ddc846179e908dc0c8efec4a42ef20"
DEPENDS = "c-ares openssl"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://mosquitto.org/files/source/${PN}-${PV}.tar.gz \
file://mosquitto.init \
file://mosquitto.conf \
file://mosquitto.default \
+ file://mosquitto.logrotate.conf \
file://nostrip.patch \
"
@@ -33,6 +34,9 @@ do_install() {
install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto
install -m 0644 ${WORKDIR}/mosquitto.conf ${D}${sysconfdir}/mosquitto/
install -m 0644 ${WORKDIR}/mosquitto.default ${D}${sysconfdir}/default/mosquitto
+
+ install -d ${D}${sysconfdir}/logrotate.d
+ install -m 0644 ${WORKDIR}/mosquitto.logrotate.conf ${D}${sysconfdir}/logrotate.d/mosquitto.conf
}
PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-python"