1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
David Andreoletti
1cfb5ca084 mosquitto: support anonymous user per listener
Signed-off-by: David Andreoletti <david@andreoletti.net>
2024-04-10 09:33:42 +00:00
Ptilopsis Leucotis
6a0ecf300d mosquitto: add missing 'persistence' section in config
Section 'Persistence' in 'luci-app-mosquitto' is unusable without 'persistence'
section in config file.

Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com>
2022-09-26 09:38:00 +00:00
Karl Palsson
0be066d1c2 mosquitto: allow auth options with per listener settings
Some settings can be either global or per listener, and we need to
support both forms in UCI.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2021-08-24 14:19:41 +00:00
Karl Palsson
734f65d557 mosquitto: init: support more UCI options
Recent versions of mosquitto have added a lot more fine grained control
of various options.  Add UCI support for all of them, and fix a couple
of things that were configured as per listener, that are actually global
settings.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2021-08-24 12:08:31 +00:00
Karl Palsson
0a33b49ff4 net/mosquitto: add respawn
As a daemon service, respawn is expected by default, and we have that
facility available via procd.

Suggested-in: https://github.com/openwrt/packages/pull/15272
Signed-off-by: Karl Palsson <karlp@etactica.com>
2021-06-22 09:27:24 +00:00
Karl Palsson
9996328abd net/mosquitto: port is optional in root config
From mosquitto 2.x, port became optional and deprecated in the config,
and it was recommended that listeners be used instead.  Drop the hard
requirement in our config conversion script.

Reported in: https://github.com/openwrt/packages/issues/15506
Signed-off-by: <karlp@etactica.com>
2021-04-26 09:36:49 +00:00
Karl Palsson
e0c33d94f8 net/mosquitto: fix log_type conversion in config
As reported in: https://github.com/openwrt/packages/issues/15506

Signed-off-by: Karl Palsson <karlp@etactica.com>
2021-04-26 09:34:52 +00:00
Karl Palsson
f9f6ea4a38 net/mosquitto: correct config file option name
Correct option is "password_file" not "passwd_file"

Originally reported as: https://github.com/openwrt/packages/pull/8642
Added the package bump.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2019-04-11 12:06:51 +00:00
Karl Palsson
b945bdf3c8 net/mosquitto: support more acl plugin options
Adds support for acl_plugin, and acl_opt_* options.
acl_opt_* requires some care as it relies on the internal behaviour of
cfg_load setting environment variables in a certain form.  However,
given that _all_ of the cfg_load infrastructure relies on that, we can
be pretty sure that it won't change in a way that will hurt us.

Originally reported as: https://github.com/openwrt/packages/pull/7434

Signed-off-by: Karl Palsson <karlp@etactica.com>
2018-11-28 10:15:04 +00:00
Karl Palsson
ea06577f6f net/mosquitto: support all the extra options from newest version
Import the config conversion script from https://github.com/remakeelectric/owrt_pub_feeds/tree/master/net/mosquitto-next

Signed-off-by: Karl Palsson <karlp@etactica.com>
2018-05-07 17:24:11 +00:00
Karl Palsson
520a5bb50f mosquitto: properly use localhost instead of ipv4
On some environments, connecting to localhost was resolving to ::1,
which didn't match the bind to the explicit 127.0.0.1.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2017-08-16 15:01:30 +00:00
Karl Palsson
43acdcdd54 mosquitto: support more config options in UCI
Added many more UCI config options, particularly for bridge connections

The recently introduced username/password options for bridges are kept,
even though they have been deprecated upstream for a while.  In keeping
with this, while support is kept in UCI, the generated mosquitto.conf
file will always generate the "modern" remote_username/remote_password
options preferred by mosquitto instead.

Likewise for bridge clientid and remote_clientid options.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2017-08-16 15:00:53 +00:00
Karl Palsson
cef1ff256b net/mosquitto: support more config fields in init script
Adds the "notifications" option which is important when connecting
mosquitto to rabbitmq for instance.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2017-05-05 11:36:37 +00:00
David Thornley
eb99c3f451 net/mosquitto: Added further security configuration options for bridge section
Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
2017-05-05 11:36:37 +00:00
Karl Palsson
7f651d102d net/mosquitto: chown data directory
The package creates a "mosquitto" user, but the support added for
persistence creates the data directory as root running the init script.
Properly chown the newly created directory to ensure it's writable.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-30 11:41:34 +00:00
Karl Palsson
e1720e5849 mosquitto: support optionally writing pidfiles
Uses procd built in pid file support, rather than mosquittos built in
support.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-04-11 14:51:28 +00:00
Karl Palsson
02caa85cb3 mosquitto: convert init script to procd
Adds support for persistence settings.
Bumps package version for new init script.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-03-07 12:28:03 +00:00
Karl Palsson
05aa35194e mosquitto: Include viable stub config file
This should always have been available in the mosquitto package itself.
This file needs to exist in basic form to allow the init scripts to even check whether it exists.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-03-07 12:18:47 +00:00
Karl Palsson
39ea72b186 mosquitto: use mirrored files/ tree
Instead of manually copying files and renaming on install, use the nice
clean "files/<mirror>" structure and just $(CP) them into place.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-03-07 12:18:43 +00:00