2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Chang
<dirk@kooiot.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_MIRROR_HASH
:=0ab254d4bb8ce9556ad8fc2a1b4aef739ec3bb3e1f343400b20435e2ab8e686f
18 PKG_SOURCE_URL
:=https
://github.com
/keplerproject
/xavante.git
20 PKG_SOURCE_VERSION
:=9825b905133e14d37a4c179f2d02367ab93f1ef6
21 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/lua-xavante
31 TITLE
:=Xavante Web Server
32 URL
:=http
://keplerproject.github.io
/xavante
/
36 define Package
/lua-xavante
/description
37 Xavante is a Lua HTTP
1.1 Web server that uses a modular architecture based on URI mapped handlers.
41 define Build
/Configure
50 define Package
/lua-xavante
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
52 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/sajax
/sajax.lua
$(1)/usr
/lib
/lua
53 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/xavante
/xavante.lua
$(1)/usr
/lib
/lua
55 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/xavante
56 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/xavante
/{cgiluahandler
,encoding
,filehandler
,httpd
,mime
,patternhandler
,redirecthandler
,vhostshandler
,indexhandler
,urlhandler
,ruleshandler
}.lua
$(1)/usr
/lib
/lua
/xavante
59 $(eval
$(call BuildPackage
,lua-xavante
))