-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (46 loc) · 1.44 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-sazo
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-sazo
SECTION:=luci
CATEGORY:=LuCI
DEFAULT:=y
TITLE:=SAZO
URL:=http://github.com/shahifaqeer/luci-app-sazo
SUBMENU:=1. Applications
DEPENDS:=+lua +libuci-lua +libubus-lua
endef
define Package/luci-app-sazo/description
BISmark/SAZO interface on luci.
Allows user to view and control redirection to
Comcast's VPN.
endef
define Build/Prepare
endef
define Build/Compile
endef
define Package/luci-app-sazo/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/bismark
$(CP) ./files/usr/lib/lua/luci/controller/bismark/sazo.lua $(1)/usr/lib/lua/luci/controller/bismark/sazo.lua
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/sazo
$(CP) ./files/usr/lib/lua/luci/model/cbi/sazo/general.lua $(1)/usr/lib/lua/luci/model/cbi/sazo/general.lua
$(INSTALL_DIR) $(1)/usr/bin
$(CP) ./files/usr/bin/setup-sazo-config $(1)/usr/bin/setup-sazo-config
endef
define Package/luci-app-sazo/postinst
#!/bin/sh
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
endef
define Package/luci-app-sazo/prerm
#!/bin/sh
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
endef
$(eval $(call BuildPackage,luci-app-sazo))