forked from ports/contrib
mosquitto (NEW): MQTT compatible server and client libraries
This commit is contained in:
parent
f5db522b23
commit
3d53b8cc76
38
mosquitto/.footprint
Normal file
38
mosquitto/.footprint
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
drwxr-xr-x root/root etc/
|
||||||
|
drwxr-xr-x root/root etc/mosquitto/
|
||||||
|
drwxr-xr-x root/root etc/mosquitto/TLS/
|
||||||
|
-rwxr-xr-x root/root etc/mosquitto/TLS/generate-CA.sh
|
||||||
|
-rw-r--r-- root/root etc/mosquitto/mosquitto.conf
|
||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/bin/
|
||||||
|
-rwxr-xr-x root/root usr/bin/mosquitto_passwd
|
||||||
|
-rwxr-xr-x root/root usr/bin/mosquitto_pub
|
||||||
|
-rwxr-xr-x root/root usr/bin/mosquitto_sub
|
||||||
|
drwxr-xr-x root/root usr/include/
|
||||||
|
-rw-r--r-- root/root usr/include/mosquitto.h
|
||||||
|
-rw-r--r-- root/root usr/include/mosquitto_plugin.h
|
||||||
|
-rw-r--r-- root/root usr/include/mosquittopp.h
|
||||||
|
drwxr-xr-x root/root usr/lib/
|
||||||
|
lrwxrwxrwx root/root usr/lib/libmosquitto.so -> libmosquitto.so.1
|
||||||
|
lrwxrwxrwx root/root usr/lib/libmosquitto.so.1 -> libmosquitto.so.1.3.1
|
||||||
|
-rwxr-xr-x root/root usr/lib/libmosquitto.so.1.3.1
|
||||||
|
lrwxrwxrwx root/root usr/lib/libmosquittopp.so -> libmosquittopp.so.1
|
||||||
|
lrwxrwxrwx root/root usr/lib/libmosquittopp.so.1 -> libmosquittopp.so.1.3.1
|
||||||
|
-rwxr-xr-x root/root usr/lib/libmosquittopp.so.1.3.1
|
||||||
|
drwxr-xr-x root/root usr/sbin/
|
||||||
|
-rwxr-xr-x root/root usr/sbin/mosquitto
|
||||||
|
drwxr-xr-x root/root usr/share/
|
||||||
|
drwxr-xr-x root/root usr/share/man/
|
||||||
|
drwxr-xr-x root/root usr/share/man/man1/
|
||||||
|
-rw-r--r-- root/root usr/share/man/man1/mosquitto_passwd.1.gz
|
||||||
|
-rw-r--r-- root/root usr/share/man/man1/mosquitto_pub.1.gz
|
||||||
|
-rw-r--r-- root/root usr/share/man/man1/mosquitto_sub.1.gz
|
||||||
|
drwxr-xr-x root/root usr/share/man/man3/
|
||||||
|
-rw-r--r-- root/root usr/share/man/man3/libmosquitto.3.gz
|
||||||
|
drwxr-xr-x root/root usr/share/man/man5/
|
||||||
|
-rw-r--r-- root/root usr/share/man/man5/mosquitto.conf.5.gz
|
||||||
|
drwxr-xr-x root/root usr/share/man/man7/
|
||||||
|
-rw-r--r-- root/root usr/share/man/man7/mosquitto-tls.7.gz
|
||||||
|
-rw-r--r-- root/root usr/share/man/man7/mqtt.7.gz
|
||||||
|
drwxr-xr-x root/root usr/share/man/man8/
|
||||||
|
-rw-r--r-- root/root usr/share/man/man8/mosquitto.8.gz
|
2
mosquitto/.md5sum
Normal file
2
mosquitto/.md5sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
d558805cc5ff7bb1e0431edf8ecc91f0 generate-CA.sh
|
||||||
|
2f2870e965cf6f0b5df4ecaf2a0955d2 mosquitto-1.3.1.tar.gz
|
30
mosquitto/Pkgfile
Normal file
30
mosquitto/Pkgfile
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Description: MQTT compatible server and client libraries
|
||||||
|
# URL: http://www.mosquitto.org
|
||||||
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
||||||
|
#
|
||||||
|
# Depends on:
|
||||||
|
|
||||||
|
name=mosquitto
|
||||||
|
version=1.3.1
|
||||||
|
release=1
|
||||||
|
source=(http://mosquitto.org/files/source/$name-$version.tar.gz
|
||||||
|
https://raw.github.com/binarybucks/mqttitude/master/tools/TLS/generate-CA.sh)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $name-$version
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
|
# Build
|
||||||
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
make
|
||||||
|
|
||||||
|
# Package
|
||||||
|
make DESTDIR=$PKG install
|
||||||
|
mkdir $PKG/etc/mosquitto/TLS/
|
||||||
|
install -m755 $SRC/generate-CA.sh $PKG/etc/mosquitto/TLS/generate-CA.sh
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm -rf $PKG/etc/mosquitto/*.example
|
||||||
|
|
||||||
|
chown -R root:root $PKG
|
||||||
|
}
|
4
mosquitto/post-install
Executable file
4
mosquitto/post-install
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /etc/mosquitto/TLS/
|
||||||
|
./generate-CA.sh localhost
|
5
mosquitto/pre-install
Executable file
5
mosquitto/pre-install
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
getent group mosquitto || /usr/sbin/groupadd -g 88 mosquitto
|
||||||
|
getent passwd mosquitto || /usr/sbin/useradd -g mosquitto -u 88 -d /var/run/mosquitto -s /bin/false mosquitto
|
||||||
|
/usr/bin/passwd -l mosquitto
|
Loading…
x
Reference in New Issue
Block a user