Browse Source

package/mosquitto: add dynamic security plugin option

Signed-off-by: Flávio Tapajós <flavio.tapajos@newtesc.com.br>
[Peter: drop default n]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Flávio Tapajós 11 tháng trước cách đây
mục cha
commit
03e8d86f45

+ 9 - 0
package/mosquitto/Config.in

@@ -29,6 +29,15 @@ config BR2_PACKAGE_MOSQUITTO_BROKER
 	help
 	help
 	  Build and install the mosquitto broker onto target.
 	  Build and install the mosquitto broker onto target.
 
 
+config BR2_PACKAGE_MOSQUITTO_BROKER_DYNAMIC_SECURITY_PLUGIN
+	bool "dynamic security plugin"
+	depends on BR2_PACKAGE_MOSQUITTO_BROKER
+	select BR2_PACKAGE_CJSON
+	select BR2_PACKAGE_OPENSSL
+	help
+	  Build and install the dynamic security plugin for
+	  mosquitto broker onto target.
+
 comment "mosquitto broker needs a toolchain w/ dynamic library"
 comment "mosquitto broker needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS
 	depends on BR2_STATIC_LIBS

+ 4 - 0
package/mosquitto/mosquitto.mk

@@ -94,6 +94,10 @@ ifeq ($(BR2_PACKAGE_MOSQUITTO_BROKER),y)
 MOSQUITTO_MAKE_DIRS += src apps/mosquitto_ctrl apps/mosquitto_passwd
 MOSQUITTO_MAKE_DIRS += src apps/mosquitto_ctrl apps/mosquitto_passwd
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_MOSQUITTO_BROKER_DYNAMIC_SECURITY_PLUGIN),y)
+MOSQUITTO_MAKE_DIRS += plugins/dynamic-security
+endif
+
 define MOSQUITTO_BUILD_CMDS
 define MOSQUITTO_BUILD_CMDS
 	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DIRS="$(MOSQUITTO_MAKE_DIRS)" \
 	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DIRS="$(MOSQUITTO_MAKE_DIRS)" \
 		$(MOSQUITTO_MAKE_OPTS)
 		$(MOSQUITTO_MAKE_OPTS)