forked from freifunk-franken/firmware
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:
parent
77597609e5
commit
f494302690
40
src/packages/fff/fff-mqtt/Makefile
Normal file
40
src/packages/fff/fff-mqtt/Makefile
Normal 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))
|
|
@ -0,0 +1,7 @@
|
|||
touch /etc/config/mqtt
|
||||
|
||||
uci batch <<EOF
|
||||
set mqtt.mqtt=mqtt
|
||||
EOF
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user