Package Details: mosquitto 1.4.9-3

Git Clone URL: (read-only)
Package Base: mosquitto
Description: An Open Source MQTT v3.1 Broker
Upstream URL:
Licenses: BSD
Submitter: None
Maintainer: rpodgorny
Last Packager: rpodgorny
Votes: 30
Popularity: 1.984265
First Submitted: 2011-08-16 07:35
Last Updated: 2016-06-14 11:18

Latest Comments

Quantasy commented on 2016-06-14 16:14

Thank you!
I made some first tests using mqtt and websockets. Seems to work perfect so far. Great!

rpodgorny commented on 2016-06-14 11:19

yep, i've updated the pkgbuild to patch makefile with sed (to get rid of the extra patch file). ...but i made a typo. :-(

...anyway, all should be fixed now. please test.

fauno commented on 2016-06-14 06:06

hey, there's no need to patch to build with websockets, you just have to run make like this:


i didn't get the usr_move.patch though, and mosquitto is installed into /usr/sbin because src/Makefile hardcodes it

rpodgorny commented on 2016-06-13 22:27

ok, so i've enabled the websockets support but i'm not really sure how to test it properly. please test and respond with ack/nack for the change. thanks!

josesj commented on 2016-06-12 15:33

To enable websockets support you can use this modified version of PKGBUILD file and the patch for

# This is the PKGBUILD for mosquitto, an MQTT broker and example clients

# Maintainer: Radek Podgorny <>
# Contributor: Dan Anderson <dan-anderson at cox dptnet>

pkgdesc="An Open Source MQTT v3.1 Broker"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
depends=('openssl' 'c-ares' 'libwebsockets')
makedepends=('python' 'docbook-xsl' 'c-ares')

build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 < ../usr_move.patch
patch -p1 < ../websockets.patch

package() {
cd "$srcdir/$pkgname-$pkgver"

make prefix=/usr DESTDIR="$pkgdir/" install

install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

mv "$pkgdir/etc/$pkgname/$pkgname.conf.example" "$pkgdir/etc/$pkgname/$pkgname.conf"

--- src/ 2016-06-02 22:20:22.000000000 +0100
+++ src/ 2016-06-12 16:12:51.396789878 +0100
@@ -65,7 +65,7 @@

# Build with websockets support on the broker.

# Use elliptic keys in broker

Quantasy commented on 2016-06-12 14:05

Thanks to all maintainers! It is your work that make ArchLinux such a great experience!

If I may, I would like to re-ask the question initiated by tobru who commented on 2016-03-26 18:32:
Would be great to have websockets enabled. It just needs the package libwebsockets from AUR and the line "WITH_WEBSOCKETS:=yes" in

It would enable everybody to access mosquitto directly via browser!


rpodgorny commented on 2016-06-09 22:22

hmmm, that's my fault. i have misinterpreted the docs and thought that if you don't specify the config path it just uses a default one. instead, it uses default VALUES. (and i haven't noticed since i use defaults)

the intention is to speed up deployment for new users. i suspect most people just copy the example config and i wanted to make this step unnecessary. (as usual in other packages)

so, i've now modified the pkgbuild to move the config (with a proper pacman backup option).

can you, please, try with the current version?

sorry for the inconvenience!

bartbes commented on 2016-06-09 21:49

It strikes me as odd you've changed the systemd service file to no longer pass the configuration file to mosquitto. This way, it only ever runs in the default configuration. What was particularly fun, is that you made no mention of this, so when I updated and restarted mosquitto suddenly all my clients failed because of the missing TLS configuration.

Is there any specific reason you changed this? And would you be willing to change it back?

naesk commented on 2016-06-08 20:14

Thanks @tmladek for your work on maintaining, and to @rpodgorny for stepping up :)

rpodgorny commented on 2016-06-08 20:06

ok, so i took over and updated (and simplified)... comments welcome!

All comments