mosquitto/snap/snapcraft.yaml

112 lines
2.9 KiB
YAML
Raw Permalink Normal View History

name: mosquitto
2023-09-18 21:22:14 +00:00
version: 2.0.18
2017-02-21 12:02:02 +00:00
summary: Eclipse Mosquitto MQTT broker
2020-07-22 14:13:40 +00:00
description: This is a message broker that supports version 5.0, 3.1.1, and 3.1 of the MQTT
2017-02-21 12:02:02 +00:00
protocol.
MQTT provides a method of carrying out messaging using a publish/subscribe
model. It is lightweight, both in terms of bandwidth usage and ease of
implementation. This makes it particularly useful at the edge of the network
where a sensor or other simple device may be implemented using an arduino for
example.
confinement: strict
grade: stable
2020-12-03 13:26:47 +00:00
base: core18
2017-02-21 12:02:02 +00:00
apps:
mosquitto:
command: launcher.sh
2017-02-21 12:02:02 +00:00
daemon: simple
restart-condition: always
plugs: [home, network, network-bind]
2017-02-21 12:02:02 +00:00
2020-12-02 22:31:42 +00:00
ctrl:
command: usr/bin/mosquitto_ctrl
plugs: [home, network]
2018-04-12 11:37:49 +00:00
pub:
command: usr/bin/mosquitto_pub
plugs: [home, network]
rr:
command: usr/bin/mosquitto_rr
plugs: [home, network]
2018-04-12 11:37:49 +00:00
sub:
command: usr/bin/mosquitto_sub
plugs: [home, network]
2018-04-12 11:37:49 +00:00
2018-10-02 22:54:24 +00:00
passwd:
command: usr/bin/mosquitto_passwd
plugs: [home]
2018-10-02 22:54:24 +00:00
2017-02-21 12:02:02 +00:00
parts:
script:
plugin: dump
source: snap/local/
2017-02-21 12:02:02 +00:00
prime:
- default_config.conf
- launcher.sh
config:
plugin: dump
source: .
prime:
- mosquitto.conf
2017-02-21 12:02:02 +00:00
mosquitto:
2018-08-16 21:52:04 +00:00
after:
- lws
2017-02-21 12:02:02 +00:00
plugin: make
2020-12-04 22:15:19 +00:00
make-parameters: ["prefix=/usr", "WITH_WEBSOCKETS=yes", "WITH_ADNS=yes", "CFLAGS=-Wall -ggdb -O2 -I$SNAPCRAFT_STAGE/include -D_GNU_SOURCE"]
2017-02-21 12:02:02 +00:00
source: https://github.com/eclipse/mosquitto
source-type: git
build-packages:
- libssl-dev
2017-02-21 19:38:52 +00:00
- xsltproc
2017-02-22 07:49:39 +00:00
- docbook-xsl
- gcc
- g++
2017-02-21 12:02:02 +00:00
stage-packages:
2020-07-22 19:36:29 +00:00
- libssl1.0.0
- ca-certificates
2017-02-21 12:02:02 +00:00
prime:
2018-04-12 11:37:49 +00:00
- usr/sbin/mosquitto
2020-12-02 22:31:42 +00:00
- usr/bin/mosquitto_ctrl
2018-04-12 11:37:49 +00:00
- usr/bin/mosquitto_pub
2019-12-03 10:35:05 +00:00
- usr/bin/mosquitto_rr
2018-04-12 11:37:49 +00:00
- usr/bin/mosquitto_sub
2018-10-03 07:11:46 +00:00
- usr/bin/mosquitto_passwd
2018-04-12 11:37:49 +00:00
- usr/lib/libmosquitto.so*
2020-12-02 22:31:42 +00:00
- usr/lib/mosquitto_dynamic_security.so*
- lib/*-linux-gnu/libcrypto.so*
- lib/*-linux-gnu/libssl.so*
2018-10-02 22:56:19 +00:00
- usr/include/mosquitto.h
- usr/include/mosquitto_broker.h
- usr/include/mosquitto_plugin.h
2020-12-02 22:31:42 +00:00
- usr/include/mqtt_protocol.h
2018-08-16 21:52:04 +00:00
lws:
2020-12-17 18:53:25 +00:00
after:
- cjson
2018-08-16 21:52:04 +00:00
plugin: cmake
configflags: ["-DLWS_IPV6=ON", "-DLWS_WITHOUT_CLIENT=ON", "-DLWS_WITHOUT_EXTENSIONS=ON", "-DLWS_WITH_ZIP_FOPS=OFF", "-DLWS_WITH_ZLIB=OFF", "-DLWS_WITH_SHARED=OFF"]
source: https://github.com/warmcat/libwebsockets/archive/v2.4.2.tar.gz
source-type: tar
stage:
- include/libwebsockets.h
- include/lws_config.h
- lib/libwebsockets.a
prime: [-*]
2020-12-03 13:26:47 +00:00
cjson:
plugin: cmake
configflags: ["-DCMAKE_C_FLAGS=-fPIC", "-DBUILD_SHARED_AND_STATIC_LIBS=OFF", "-DBUILD_SHARED_LIBS=OFF", "-DCJSON_BUILD_SHARED_LIBS=OFF", "-DCJSON_OVERRIDE_BUILD_SHARED_LIBS=OFF"]
source: https://github.com/DaveGamble/cJSON/archive/v1.7.14.tar.gz
source-type: tar
stage:
- include/cjson/cJSON.h
- lib/libcjson.a
prime: [-*]