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_SOURCE_URL
:=https
://github.com
/keplerproject
/xavante.git
19 PKG_SOURCE_VERSION
:=9825b905133e14d37a4c179f2d02367ab93f1ef6
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/lua-xavante
30 TITLE
:=Xavante Web Server
31 URL
:=http
://www.keplerproject.org
/xavante
35 define Package
/lua-xavante
/description
36 Xavante is a Lua HTTP
1.1 Web server that uses a modular architecture based on URI mapped handlers.
40 define Build
/Configure
49 define Package
/lua-xavante
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
51 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/sajax
/sajax.lua
$(1)/usr
/lib
/lua
52 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/xavante
/xavante.lua
$(1)/usr
/lib
/lua
54 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/xavante
55 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/xavante
/{cgiluahandler
,encoding
,filehandler
,httpd
,mime
,patternhandler
,redirecthandler
,vhostshandler
,indexhandler
,urlhandler
,ruleshandler
}.lua
$(1)/usr
/lib
/lua
/xavante
58 $(eval
$(call BuildPackage
,lua-xavante
))