Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (63 loc) · 2.2 KB
/
Copy pathMakefile
File metadata and controls
74 lines (63 loc) · 2.2 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-proto-fleth
LUCI_TITLE:=LuCI Support for Flet'H
LUCI_DESCRIPTION:=LuCI protocol collection for IPv4 over IPv6 tunnels in Japan.
PKG_VERSION:=1.1
PKG_RELEASE:=1
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+luci-base +lua +luci-proto-ipv6 \
+kmod-ip6-tunnel \
+resolveip \
+jsonfilter
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_LUA_UI \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6H \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6HP
define Package/$(PKG_NAME)/config
config PACKAGE_$(PKG_NAME)_INCLUDE_LUA_UI
bool "Include legacy LuCI Lua UI"
default n
help
Include a minimal Lua CBI fallback page for old LuCI versions
that cannot render JavaScript views.
config PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6H
bool "Include luci-proto-ipip6h"
default y
help
Include custom IPv4 over IPv6 tunnel protocol support.
This adds the ipip6h protocol handler and LuCI interface.
config PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6HP
bool "Include luci-proto-ipip6hp"
default y
help
Include custom IPv4 over IPv6 passthrough protocol support.
This adds the ipip6hp protocol handler and LuCI interface.
endef
include $(TOPDIR)/feeds/luci/luci.mk
define Build/Compile
$(call Build/Compile/Default)
ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_LUA_UI),y)
# Legacy LuCI Lua UI is included
else
# Remove legacy LuCI Lua UI if not selected
rm -f $(PKG_BUILD_DIR)/root/usr/lib/lua/luci/controller/fleth.lua
rm -f $(PKG_BUILD_DIR)/root/usr/lib/lua/luci/model/cbi/fleth.lua
endif
ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6H),y)
# IPIP6H support is included
else
# Remove IPIP6H files if not selected
rm -f $(PKG_BUILD_DIR)/htdocs/luci-static/resources/protocol/ipip6h.js
rm -f $(PKG_BUILD_DIR)/root/lib/netifd/proto/ipip6h.sh
endif
ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_IPIP6HP),y)
# IPIP6HP support is included
else
# Remove IPIP6HP files if not selected
rm -f $(PKG_BUILD_DIR)/htdocs/luci-static/resources/protocol/ipip6hp.js
rm -f $(PKG_BUILD_DIR)/root/lib/netifd/proto/ipip6hp.sh
rm -f $(PKG_BUILD_DIR)/root/usr/share/fleth/ipip6hp-hotplug.sh
rm -f $(PKG_BUILD_DIR)/root/usr/share/fleth/firewall.include
endif
endef
# call BuildPackage - OpenWrt buildroot signature