Selaa lähdekoodia

lang: lua-mosquitto: import new package

Based on released version of lua binding to libmosquitto.
Advantages compared to lua-mqtt:
* qos 1/2 support
* substantially faster

Signed-off-by: Karl Palsson <karlp@remake.is>
Karl Palsson 10 vuotta sitten
vanhempi
commit
e895f5aa5e
1 muutettua tiedostoa jossa 41 lisäystä ja 0 poistoa
  1. 41
    0
      lang/lua-mosquitto/Makefile

+ 41
- 0
lang/lua-mosquitto/Makefile Näytä tiedosto

@@ -0,0 +1,41 @@
1
+#
2
+# Copyright (C) 2013 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=lua-mosquitto
11
+PKG_VERSION:=0.1
12
+PKG_RELEASE:=1
13
+PKG_LICENSE:=MIT
14
+PKG_LICENSE_FILES:=LICENSE
15
+
16
+PKG_SOURCE:=v$(PKG_VERSION).tar.gz
17
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18
+PKG_SOURCE_URL:=https://github.com/flukso/$(PKG_NAME)/archive/
19
+PKG_MD5SUM:=fd26fa08fc855ba4a66ce521fe5aae13
20
+
21
+include $(INCLUDE_DIR)/package.mk
22
+
23
+define Package/$(PKG_NAME)
24
+    SUBMENU:=Lua
25
+    SECTION:=lang
26
+    CATEGORY:=Languages
27
+    TITLE:=Lua-mosquitto
28
+    DEPENDS:=+libmosquitto +lua
29
+    MAINTAINER:=Karl Palsson <karlp@remake.is>
30
+endef
31
+
32
+define Package/$(PKG_NAME)/description
33
+	Lua bindings to libmosquitto
34
+endef
35
+
36
+define Package/$(PKG_NAME)/install
37
+	$(INSTALL_DIR) $(1)/usr/lib/lua
38
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto.so $(1)/usr/lib/lua
39
+endef
40
+
41
+$(eval $(call BuildPackage,$(PKG_NAME)))