Merge pull request #977 from stangri/luci-app-vpnbypass
[project/luci.git] / applications / luci-app-vpnbypass / Makefile
1 # Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
2 # This is free software, licensed under the GNU General Public License v3.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=luci-app-vpnbypass
7 PKG_VERSION:=1.0.0
8 PKG_RELEASE:=3
9 PKG_LICENSE:=GPL-3.0+
10 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
11 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/luci-app-vpnbypass
16   SECTION:=luci
17   CATEGORY:=LuCI
18   SUBMENU:=3. Applications
19   TITLE:=VPN Bypass Web UI
20   DEPENDS:=+luci-mod-admin-full +vpnbypass
21   PKGARCH:=all
22 endef
23
24 define Package/luci-app-vpnbypass/description
25  This package will install VPN Bypass Web UI.
26 endef
27
28 define Build/Prepare
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35 endef
36
37 define Package/luci-app-vpnbypass/install
38         $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/
39         $(INSTALL_BIN) ./luasrc/controller/vpnbypass.lua  $(1)/usr/lib/lua/luci/controller/vpnbypass.lua
40         $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/
41         $(INSTALL_BIN) ./luasrc/model/cbi/vpnbypass.lua $(1)/usr/lib/lua/luci/model/cbi/vpnbypass.lua
42 endef
43
44 $(eval $(call BuildPackage,luci-app-vpnbypass))