developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | # |
| 2 | # MTK-factory read and write |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=mtkhnat_util |
| 8 | PKG_VERSION:=1 |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) |
| 12 | PKG_CONFIG_DEPENDS:= |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define Package/mtkhnat_util |
| 17 | SECTION:=net |
| 18 | CATEGORY:=Network |
| 19 | TITLE:=mtk hnat utility |
| 20 | VERSION:=$(PKG_RELEASE)-$(REVISION) |
| 21 | endef |
| 22 | |
| 23 | define Package/mtkhnat_util/description |
| 24 | mtk hnat util to init hnat module |
| 25 | endef |
| 26 | |
| 27 | define Build/Prepare |
| 28 | mkdir -p $(PKG_BUILD_DIR) |
| 29 | endef |
| 30 | |
| 31 | define Build/Compile/Default |
| 32 | endef |
| 33 | |
| 34 | Build/Compile = $(Build/Compile/Default) |
| 35 | |
| 36 | define 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 |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call BuildPackage,mtkhnat_util)) |