summaryrefslogtreecommitdiff
path: root/recipes-connectivity/mosquitto/mosquitto_1.6.14.bbappend
blob: 76906f77b11dd55f3c34ad3ee8b051731e42605c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-mlinux:"

SRC_URI += "file://mosquitto.conf \
            file://mosquitto.default \
            file://mosquitto.logrotate.conf \
            "
RDEPENDS_${PN} += "logrotate"

INITSCRIPT_PARAMS = "defaults 70 30"

EXTRA_OECMAKE += " -DWITH_STATIC_LIBRARIES=ON"

do_install_append() {
    install -d ${D}${sysconfdir}/mosquitto
    install -m 0644 ${WORKDIR}/mosquitto.conf ${D}${sysconfdir}/mosquitto/
    
    install -d ${D}${sysconfdir}/default
    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 += "${PN}-python"

CONFFILES_${PN} = "${sysconfdir}/mosquitto.conf ${sysconfdir}/default/mosquitto"

FILES_${PN} += "${sysconfdir}/default \
                ${sysconfdir}/logrotate.d \
               "

FILES_${PN}-staticdev += "${libdir}/libmosquitto.a"

FILES_${PN}-python = "/usr/lib/python2.7/site-packages"