-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (41 loc) · 1.5 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
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-miniproxy
PKG_VERSION:=4.2
PKG_RELEASE:=1
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Mitsuha <[email protected]>
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-miniproxy
SECTION:=Custom
CATEGORY:=Extra packages
TITLE:=Easy set transparent proxy for openwrt.
DEPENDS:=+luci-base +ip-full +kmod-nft-tproxy
PKGARCH:=all
endef
define Package/luci-app-miniproxy/description
Easy set transparent proxy for openwrt.
endef
define Build/Compile
endef
define Package/luci-app-miniproxy/conffiles
/etc/config/miniproxy
endef
define Package/luci-app-miniproxy/install
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d/
$(INSTALL_DIR) $(1)/usr/share/luci/menu.d/
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$(INSTALL_BIN) ./files/miniproxy.init $(1)/etc/init.d/miniproxy
$(INSTALL_CONF) ./files/miniproxy.conf $(1)/etc/config/miniproxy
$(INSTALL_DATA) ./files/miniproxy.acl $(1)/usr/share/rpcd/acl.d/luci-app-miniproxy.json
$(INSTALL_DATA) ./files/miniproxy.menu $(1)/usr/share/luci/menu.d/luci-app-miniproxy.json
$(INSTALL_DATA) ./files/miniproxy.js $(1)/www/luci-static/resources/view/miniproxy.js
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) ./files/miniproxy $(1)/usr/bin/miniproxy
po2lmo ./files/miniproxy.zh-cn.po $(1)/usr/lib/lua/luci/i18n/miniproxy.zh-cn.lmo
endef
$(eval $(call BuildPackage,luci-app-miniproxy))