blob: 8ef168a6daea38901c916f0066725ad2f1c74bb2 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001#
2# MTK-factory read and write
3#
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=mtkhnat_util
8PKG_VERSION:=1
9PKG_RELEASE:=1
10
11PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12PKG_CONFIG_DEPENDS:=
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/mtkhnat_util
17 SECTION:=net
18 CATEGORY:=Network
19 TITLE:=mtk hnat utility
20 VERSION:=$(PKG_RELEASE)-$(REVISION)
21endef
22
23define Package/mtkhnat_util/description
24 mtk hnat util to init hnat module
25endef
26
27define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29endef
30
31define Build/Compile/Default
32endef
33
34Build/Compile = $(Build/Compile/Default)
35
36define Package/mtkhnat_util/install
37 $(INSTALL_DIR) $(1)/sbin
38 $(INSTALL_DIR) $(1)/etc/config
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_DIR) $(1)/etc/uci-defaults
41
42 $(INSTALL_BIN) ./files/mtkhnat $(1)/sbin/
43 $(INSTALL_BIN) ./files/mtkhnat.config $(1)/etc/config/mtkhnat
44 $(INSTALL_BIN) ./files/mtkhnat.init $(1)/etc/init.d/mtkhnat
45 $(INSTALL_BIN) ./files/99-firewall $(1)/etc/uci-defaults
46endef
47
48$(eval $(call BuildPackage,mtkhnat_util))