2 # Copyright (C) 2011 OpenWrt.org
3 # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://mosquitto.org
/files
/source
/
17 PKG_MD5SUM
:=e2cad39f430f91087cb9c248be26ece5
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/mosquitto
/default
24 TITLE
:=mosquitto
- an MQTT message broker
25 URL
:=http
://www.mosquitto.org
/
28 define Package
/mosquitto
29 $(Package
/mosquitto
/default
)
32 define Package
/mosquitto
/description
33 mosquitto is a message broker that supports v3.1 of the MQ Telemetry
34 Transport protocol. MQTT provides a lightweight method for
35 messaging using a publish
/subscribe model.
38 define Package
/mosquitto-client
39 $(Package
/mosquitto
/default
)
40 TITLE
:= mosquitto
- client tools
41 DEPENDS
:= +libmosquitto
44 define Package
/mosquitto-client
/description
45 Command line client tools for publishing messages to MQTT servers
46 and subscribing to topics.
49 define Package
/libmosquitto
50 $(Package
/mosquitto
/default
)
53 TITLE
:= mosquitto
- client library
56 define Package
/libmosquitto
/description
57 Library required for mosquitto
's command line client tools, also for
58 use by any third party software that wants to communicate with a
61 Should be useable for communicating with any MQTT v3.1 compatible
62 server, such as IBM's RSMB
, in addition to Mosquitto
66 define Package
/mosquitto
/conffiles
67 /etc
/mosquitto
/mosquitto.conf
70 define Package
/mosquitto
/install
71 $(INSTALL_DIR
) $(1)/usr
/sbin
72 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/mosquitto
$(1)/usr
/sbin
/mosquitto
73 $(INSTALL_DIR
) $(1)/etc
/mosquitto
74 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/mosquitto.conf
$(1)/etc
/mosquitto
/mosquitto.conf
77 define Package
/mosquitto-client
/install
78 $(INSTALL_DIR
) $(1)/usr
/bin
79 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/client
/mosquitto_pub
$(1)/usr
/bin
/mosquitto_pub
80 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/client
/mosquitto_sub
$(1)/usr
/bin
/mosquitto_sub
83 # This installs files into ./staging_dir/. so that you can cross compile from the host
84 define Build
/InstallDev
85 $(INSTALL_DIR
) $(1)/usr
/include
86 $(CP
) $(PKG_BUILD_DIR
)/lib
/mosquitto.h
$(1)/usr
/include
87 $(INSTALL_DIR
) $(1)/usr
/lib
88 # This should just get symlinked, but I can't work out the magic syntax :(
89 $(CP
) $(PKG_BUILD_DIR
)/lib
/libmosquitto.so
.0 $(1)/usr
/lib
/libmosquitto.so
92 # This installs files on the target. Compare with Build/InstallDev
93 define Package
/libmosquitto
/install
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/libmosquitto.so
.0 $(1)/usr
/lib
/libmosquitto.so
.0
97 $(eval
$(call BuildPackage
,mosquitto
))
98 $(eval
$(call BuildPackage
,libmosquitto
))
99 $(eval
$(call BuildPackage
,mosquitto-client
))