Skip to content

Commit

Permalink
net/mosquitto: use PROVIDES for -client tools also
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
karlp committed May 5, 2017
1 parent 8891a99 commit 027e3ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions net/mosquitto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ define Package/mosquitto-client/default
$(Package/mosquitto/default)
TITLE:= mosquitto - client tools
DEPENDS+=+libcares
PROVIDES:=mosquitto-client
endef
define Package/mosquitto-client
define Package/mosquitto-client-ssl
$(call Package/mosquitto-client/default)
TITLE+= (With SSL support)
DEPENDS+=+libmosquitto-ssl
Expand All @@ -92,7 +93,7 @@ define Package/mosquitto-client/default/description
and subscribing to topics.
endef

define Package/mosquitto-client/description
define Package/mosquitto-client-ssl/description
$(call Package/mosquitto-client/default/description)
This package is built with SSL support
endef
Expand Down Expand Up @@ -178,7 +179,7 @@ ifeq ($(CONFIG_MOSQUITTO_PASSWD),y)
endif
endef

define Package/mosquitto-client/install
define Package/mosquitto-client-ssl/install
$(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_sub $(1)/usr/bin/mosquitto_sub
Expand Down Expand Up @@ -224,5 +225,5 @@ $(eval $(call BuildPackage,mosquitto-nossl))
$(eval $(call BuildPackage,libmosquitto-ssl))
$(eval $(call BuildPackage,libmosquitto-nossl))
$(eval $(call BuildPackage,libmosquittopp))
$(eval $(call BuildPackage,mosquitto-client))
$(eval $(call BuildPackage,mosquitto-client-ssl))
$(eval $(call BuildPackage,mosquitto-client-nossl))

0 comments on commit 027e3ec

Please sign in to comment.