1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lua-xavante
  9. PKG_VERSION:=2.3.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/keplerproject/xavante.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=9825b905133e14d37a4c179f2d02367ab93f1ef6
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/lua-xavante
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Xavante Web Server
  25. URL:=http://keplerproject.github.io/xavante/
  26. DEPENDS:= +lua
  27. endef
  28. define Package/lua-xavante/description
  29. Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers.
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Build/Install
  36. endef
  37. define Package/lua-xavante/install
  38. $(INSTALL_DIR) $(1)/usr/lib/lua
  39. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua
  41. $(INSTALL_DIR) $(1)/usr/lib/lua/xavante
  42. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante
  43. endef
  44. $(eval $(call BuildPackage,lua-xavante))