Browse Source

net/mosquitto: use PROVIDES for -client tools also

Earlier, PROVIDES handling was clarified for the broker and the library.
Use the same style to properly provide the -client-ssl and -client-nossl
packages.

Signed-off-by: Karl Palsson <karlp@etactica.com>
lilik-openwrt-22.03
Karl Palsson 8 years ago
parent
commit
027e3ec4ec
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      net/mosquitto/Makefile

+ 5
- 4
net/mosquitto/Makefile View File

@ -73,8 +73,9 @@ define Package/mosquitto-client/default
$(Package/mosquitto/default) $(Package/mosquitto/default)
TITLE:= mosquitto - client tools TITLE:= mosquitto - client tools
DEPENDS+=+libcares DEPENDS+=+libcares
PROVIDES:=mosquitto-client
endef endef
define Package/mosquitto-client
define Package/mosquitto-client-ssl
$(call Package/mosquitto-client/default) $(call Package/mosquitto-client/default)
TITLE+= (With SSL support) TITLE+= (With SSL support)
DEPENDS+=+libmosquitto-ssl DEPENDS+=+libmosquitto-ssl
@ -92,7 +93,7 @@ define Package/mosquitto-client/default/description
and subscribing to topics. and subscribing to topics.
endef endef
define Package/mosquitto-client/description
define Package/mosquitto-client-ssl/description
$(call Package/mosquitto-client/default/description) $(call Package/mosquitto-client/default/description)
This package is built with SSL support This package is built with SSL support
endef endef
@ -178,7 +179,7 @@ ifeq ($(CONFIG_MOSQUITTO_PASSWD),y)
endif endif
endef endef
define Package/mosquitto-client/install
define Package/mosquitto-client-ssl/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/client/mosquitto_pub $(1)/usr/bin/mosquitto_pub $(INSTALL_BIN) $(PKG_BUILD_DIR)/client/mosquitto_pub $(1)/usr/bin/mosquitto_pub
$(INSTALL_BIN) $(PKG_BUILD_DIR)/client/mosquitto_sub $(1)/usr/bin/mosquitto_sub $(INSTALL_BIN) $(PKG_BUILD_DIR)/client/mosquitto_sub $(1)/usr/bin/mosquitto_sub
@ -224,5 +225,5 @@ $(eval $(call BuildPackage,mosquitto-nossl))
$(eval $(call BuildPackage,libmosquitto-ssl)) $(eval $(call BuildPackage,libmosquitto-ssl))
$(eval $(call BuildPackage,libmosquitto-nossl)) $(eval $(call BuildPackage,libmosquitto-nossl))
$(eval $(call BuildPackage,libmosquittopp)) $(eval $(call BuildPackage,libmosquittopp))
$(eval $(call BuildPackage,mosquitto-client))
$(eval $(call BuildPackage,mosquitto-client-ssl))
$(eval $(call BuildPackage,mosquitto-client-nossl)) $(eval $(call BuildPackage,mosquitto-client-nossl))

Loading…
Cancel
Save