From: Ian Abbott <abbotti@mev.co.uk>
To: ptxdist@pengutronix.de
Cc: Ian Abbott <abbotti@mev.co.uk>
Subject: [ptxdist] [PATCH 2/2] mosquitto: Add optional WebSocket support
Date: Fri, 10 May 2024 09:58:48 +0100 [thread overview]
Message-ID: <20240510090419.4399-3-abbotti@mev.co.uk> (raw)
In-Reply-To: <20240510090419.4399-1-abbotti@mev.co.uk>
Add a configuration option to support WebSocket connections using the
libwebsockets library. If Mosquitto is configured to use TLS, select
TLS support in the libwebsockets package too.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
---
rules/mosquitto.in | 13 ++++++++++---
rules/mosquitto.make | 2 +-
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/rules/mosquitto.in b/rules/mosquitto.in
index 9b55f0847..3c751ede7 100644
--- a/rules/mosquitto.in
+++ b/rules/mosquitto.in
@@ -4,9 +4,11 @@ menuconfig MOSQUITTO
tristate
prompt "mosquitto "
select HOST_CMAKE
- select OPENSSL if MOSQUITTO_TLS
- select C_ARES if MOSQUITTO_SRV
- select SYSTEMD if MOSQUITTO_SYSTEMD_UNIT
+ select OPENSSL if MOSQUITTO_TLS
+ select C_ARES if MOSQUITTO_SRV
+ select SYSTEMD if MOSQUITTO_SYSTEMD_UNIT
+ select LIBWEBSOCKETS if MOSQUITTO_WEBSOCKETS
+ select LIBWEBSOCKETS_TLS if MOSQUITTO_WEBSOCKETS && MOSQUITTO_TLS
help
Open source MQTT message broker, library, and client.
@@ -35,6 +37,11 @@ config MOSQUITTO_SRV
bool
prompt "SRV lookup support"
+config MOSQUITTO_WEBSOCKETS
+ bool
+ depends on MOSQUITTO_BROKER
+ prompt "Websockets support"
+
endif
# vim: ft=kconfig noet tw=72
diff --git a/rules/mosquitto.make b/rules/mosquitto.make
index eedb5ca58..239f1fe3c 100644
--- a/rules/mosquitto.make
+++ b/rules/mosquitto.make
@@ -60,7 +60,7 @@ MOSQUITTO_CONF_OPT := \
-DWITH_TLS=$(call ptx/onoff, PTXCONF_MOSQUITTO_TLS) \
-DWITH_TLS_PSK=$(call ptx/onoff, PTXCONF_MOSQUITTO_TLS) \
-DWITH_UNIX_SOCKETS=ON \
- -DWITH_WEBSOCKETS=OFF
+ -DWITH_WEBSOCKETS=$(call ptx/onoff, PTXCONF_MOSQUITTO_WEBSOCKETS)
# ----------------------------------------------------------------------------
# Install
--
2.43.0
next prev parent reply other threads:[~2024-05-10 9:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 8:58 [ptxdist] [PATCH 0/2] Add WebSocket support to Mosquitto Ian Abbott
2024-05-10 8:58 ` [ptxdist] [PATCH 1/2] libwebsockets: new package Ian Abbott
2024-05-13 9:11 ` Michael Olbrich
2024-05-13 9:20 ` Ian Abbott
2024-05-10 8:58 ` Ian Abbott [this message]
2024-05-13 10:36 ` [ptxdist] [PATCH v2 0/2] Add WebSocket support to Mosquitto Ian Abbott
2024-05-13 10:36 ` [ptxdist] [PATCH v2 1/2] libwebsockets: new package Ian Abbott
2024-05-31 6:08 ` [ptxdist] [APPLIED] " Michael Olbrich
2024-05-13 10:36 ` [ptxdist] [PATCH v2 2/2] mosquitto: Add optional WebSocket support Ian Abbott
2024-05-31 6:08 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240510090419.4399-3-abbotti@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox