source: packages/net/mosquitto/Makefile @ 28558

Last change on this file since 28558 was 28558, checked in by nico, 5 years ago

packages/mosquitto: update to 0.13 (thanks to Karl Palsson)

File size: 2.9 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3# Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=mosquitto
12PKG_VERSION:=0.13
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://mosquitto.org/files/source/
17PKG_MD5SUM:=e2cad39f430f91087cb9c248be26ece5
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/mosquitto/default
22  SECTION:=net
23  CATEGORY:=Network
24  TITLE:=mosquitto - an MQTT message broker
25  URL:=http://www.mosquitto.org/
26endef
27
28define Package/mosquitto
29    $(Package/mosquitto/default)
30endef
31
32define Package/mosquitto/description
33 mosquitto is a message broker that supports v3.1 of the MQ Telemetry
34Transport protocol. MQTT provides a lightweight method for
35messaging using a publish/subscribe model.
36endef
37
38define Package/mosquitto-client
39    $(Package/mosquitto/default)
40    TITLE:= mosquitto - client tools
41    DEPENDS:= +libmosquitto
42endef
43
44define Package/mosquitto-client/description
45 Command line client tools for publishing messages to MQTT servers
46and subscribing to topics.
47endef
48
49define Package/libmosquitto
50    $(Package/mosquitto/default)
51    SECTION:=libs
52    CATEGORY:=Libraries
53    TITLE:= mosquitto - client library
54endef
55
56define Package/libmosquitto/description
57 Library required for mosquitto's command line client tools, also for
58use by any third party software that wants to communicate with a
59mosquitto server.
60
61Should be useable for communicating with any MQTT v3.1 compatible
62server, such as IBM's RSMB, in addition to Mosquitto
63endef
64
65
66define Package/mosquitto/conffiles
67/etc/mosquitto/mosquitto.conf
68endef
69
70define 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
75endef
76
77define 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
81endef
82
83# This installs files into ./staging_dir/. so that you can cross compile from the host
84define 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
90endef
91
92# This installs files on the target.  Compare with Build/InstallDev
93define 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
96endef
97$(eval $(call BuildPackage,mosquitto))
98$(eval $(call BuildPackage,libmosquitto))
99$(eval $(call BuildPackage,mosquitto-client))
Note: See TracBrowser for help on using the repository browser.