Package Details: mosquitto 1.4.9-3

Git Clone URL: https://aur.archlinux.org/mosquitto.git (read-only)
Package Base: mosquitto
Description: An Open Source MQTT v3.1 Broker
Upstream URL: http://mosquitto.org/
Licenses: BSD
Submitter: None
Maintainer: rpodgorny
Last Packager: rpodgorny
Votes: 30
Popularity: 3.360879
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 config.mk to build with websockets, you just have to run make like this:

make WITH_WEBSOCKETS=yes

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 config.mk

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

# Maintainer: Radek Podgorny <radek@podgorny.cz>
# Contributor: Dan Anderson <dan-anderson at cox dptnet>

pkgname=mosquitto
pkgver=1.4.9
pkgrel=2
pkgdesc="An Open Source MQTT v3.1 Broker"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="http://mosquitto.org/"
depends=('openssl' 'c-ares' 'libwebsockets')
makedepends=('python' 'docbook-xsl' 'c-ares')
license=('BSD')
source=(
http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc}
"$pkgname.service"
"$pkgname.install"
"usr_move.patch"
"websockets.patch"
)
install=$pkgname.install
backup=("etc/$pkgname/$pkgname.conf")
sha256sums=('1df3ae07de40b80a74cd37a7b026895c544cdd3b42c9e0719ae91623aa98c58b'
'SKIP'
'3480aa1a9da543230fbbb0e7e11cde9db2736e486cd024fbd505f927188fa3a2'
'4eee01f9b95000e5f1964dd32856d9c4fb0bf3c64ebfce34967ce903bd37d820'
'c436bcc5a61d923ab36d5b3f24e5f628bf18ef14c2f351633d58ca983b5f655c'
'f8902c4d3389a63731486e9b02ff36a5eb93e5625787333bddd18b9be439315d')
validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7')

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

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"
}


------------------------------websockets.patch------------------------------
--- src/config.mk 2016-06-02 22:20:22.000000000 +0100
+++ src/config.mk 2016-06-12 16:12:51.396789878 +0100
@@ -65,7 +65,7 @@
WITH_UUID:=yes

# Build with websockets support on the broker.
-WITH_WEBSOCKETS:=no
+WITH_WEBSOCKETS:=yes

# Use elliptic keys in broker
WITH_EC:=yes

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 config.mk.
"

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