You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  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_MIRROR_HASH:=0ab254d4bb8ce9556ad8fc2a1b4aef739ec3bb3e1f343400b20435e2ab8e686f
  15. PKG_SOURCE_URL:=https://github.com/keplerproject/xavante.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=9825b905133e14d37a4c179f2d02367ab93f1ef6
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lua-xavante
  22. SUBMENU:=Lua
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Xavante Web Server
  26. URL:=http://keplerproject.github.io/xavante/
  27. DEPENDS:= +lua
  28. endef
  29. define Package/lua-xavante/description
  30. Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers.
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. endef
  36. define Build/Install
  37. endef
  38. define Package/lua-xavante/install
  39. $(INSTALL_DIR) $(1)/usr/lib/lua
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua
  41. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua
  42. $(INSTALL_DIR) $(1)/usr/lib/lua/xavante
  43. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante
  44. endef
  45. $(eval $(call BuildPackage,lua-xavante))