-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
port 1883 | ||
persistence true | ||
user root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: mosquitto-simple | ||
version: 1.4.11 | ||
summary: Eclipse Mosquitto MQTT broker | ||
description: This is a message broker that supports version 3.1 and 3.1.1 of the MQTT | ||
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 | ||
|
||
apps: | ||
mosquitto: | ||
command: usr/local/sbin/mosquitto -c $SNAP/mosquitto.conf | ||
daemon: simple | ||
restart-condition: always | ||
plugs: [network, network-bind] | ||
|
||
|
||
parts: | ||
script: | ||
plugin: dump | ||
source: snap/ | ||
prime: | ||
- mosquitto.conf | ||
|
||
|
||
mosquitto: | ||
plugin: make | ||
source: https://github.com/eclipse/mosquitto | ||
source-type: git | ||
|
||
build-packages: | ||
- libssl-dev | ||
- uuid-dev | ||
stage-packages: | ||
- libssl1.0.0 | ||
- libuuid1 | ||
prime: | ||
- usr/local/sbin/mosquitto | ||
- lib/*-linux-gnu/libcrypto.so* | ||
- lib/*-linux-gnu/libssl.so* | ||
- lib/*-linux-gnu/libuuid.so* | ||
|