diff --git a/package/Config.in.host b/package/Config.in.host index f437ef680c..84517787cc 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -57,6 +57,7 @@ menu "Host utilities" source "package/mfgtools/Config.in.host" source "package/mkpasswd/Config.in.host" source "package/moby-buildkit/Config.in.host" + source "package/mosquitto/Config.in.host" source "package/mtd/Config.in.host" source "package/mtools/Config.in.host" source "package/mxsldr/Config.in.host" diff --git a/package/mosquitto/Config.in.host b/package/mosquitto/Config.in.host new file mode 100644 index 0000000000..39e287ee89 --- /dev/null +++ b/package/mosquitto/Config.in.host @@ -0,0 +1,4 @@ +config BR2_PACKAGE_HOST_MOSQUITTO + bool "host mosquitto (mosquitto_passwd)" + help + Only installs mosquitto_passwd. diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk index 12de2946b7..a95a2cac4d 100644 --- a/package/mosquitto/mosquitto.mk +++ b/package/mosquitto/mosquitto.mk @@ -128,4 +128,24 @@ define MOSQUITTO_USERS endef endif +HOST_MOSQUITTO_DEPENDENCIES = host-pkgconf host-openssl + +HOST_MOSQUITTO_MAKE_OPTS = \ + $(HOST_CONFIGURE_OPTS) \ + UNAME=Linux \ + STRIP=true \ + prefix=$(HOST_DIR) \ + WITH_WRAP=no \ + WITH_DOCS=no \ + WITH_TLS=yes + +define HOST_MOSQUITTO_BUILD_CMDS + $(MAKE) -C $(@D)/apps/mosquitto_passwd $(HOST_MOSQUITTO_MAKE_OPTS) +endef + +define HOST_MOSQUITTO_INSTALL_CMDS + $(MAKE) -C $(@D)/apps/mosquitto_passwd $(HOST_MOSQUITTO_MAKE_OPTS) install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))