Add package fff-mqtt

This package provides mosquitto and set default settings

Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
Christian Dresel 2020-12-19 10:55:48 +01:00
parent 77597609e5
commit f494302690
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,40 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-mqtt
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-mqtt
include $(INCLUDE_DIR)/package.mk
define Package/fff-mqtt
SECTION:=base
CATEGORY:=Freifunk
TITLE:=Freifunk-Franken mqtt configuration
URL:=https://www.freifunk-franken.de
DEPENDS:=+mosquitto-ssl \
+mosquitto-client-ssl \
+libmosquitto-ssl
endef
define Package/fff-mqtt/description
This package provides mosquitto and settings
endef
define Build/Prepare
echo "all: " > $(PKG_BUILD_DIR)/Makefile
endef
define Build/Configure
# nothing
endef
define Build/Compile
# nothing
endef
define Package/fff-mqtt/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,fff-mqtt))

View File

@ -0,0 +1,7 @@
touch /etc/config/mqtt
uci batch <<EOF
set mqtt.mqtt=mqtt
EOF
exit 0