[oe] [PATCH 2/2] mosquitto: add mosquitto-examples package

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jun 5 23:33:28 UTC 2018


On Wednesday, 6 June 2018 1:39:09 AM NZST Nicola Lunghi wrote:
> From: Nicola Lunghi <nicola.lunghi at jci.com>
> 
> the mosquitto install populate some .example files in
> /etc/mosquitto. move thise example files in a separate package
> 
> The PACKAGE_BEFORE_PN is needed because otherwise those examples
> end in the base mosquitto package
> 
> Signed-off-by: Nicola Lunghi <nicola.lunghi at jci.com>
> ---
>  .../recipes-connectivity/mosquitto/mosquitto_1.4.15.bb        | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> 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 c71f1e467f..8dd2124c41 100644
> --- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb
> +++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_1.4.15.bb
> @@ -62,6 +62,8 @@ do_install() {
>  
>  PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients"
>  
> +PACKAGE_BEFORE_PN = "${PN}-examples"
> +
>  FILES_${PN} = "${sbindir}/mosquitto \
>                 ${bindir}/mosquitto_passwd \
>                 ${sysconfdir}/mosquitto \
> @@ -79,6 +81,8 @@ FILES_${PN}-clients = "${bindir}/mosquitto_pub \
>                         ${bindir}/mosquitto_sub \
>  "
>  
> +FILES_${PN}-examples = "${sysconfdir}/mosquitto/*.example"
> +
>  SYSTEMD_SERVICE_${PN} = "mosquitto.service"
>  
>  INITSCRIPT_NAME = "mosquitto"
> 

Both of these look good to me, FWIW

Acked-by: Paul Eggleton <paul.eggleton at linux.intel.com>

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre





More information about the Openembedded-devel mailing list