Merge pull request #20174 from ysc3839/natmap
natmap: fix some issues and update to 20221225
This commit is contained in:
commit
eeb3074079
2 changed files with 8 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=natmap
|
PKG_NAME:=natmap
|
||||||
PKG_VERSION:=20221203
|
PKG_VERSION:=20221225
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/heiher/natmap/releases/download/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/heiher/natmap/releases/download/$(PKG_VERSION)
|
||||||
PKG_HASH:=c7aa0bb1f3e057bf1fa987ad6166ba7c2e80510a89593e04f4fe0f36f1873338
|
PKG_HASH:=cc19a5b876fd75424619ae90aa6b0414a438c1f6f55537b9b28f1c23d925f6ff
|
||||||
|
|
||||||
PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
|
PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
@ -26,6 +26,10 @@ endef
|
||||||
|
|
||||||
MAKE_FLAGS += REV_ID="$(PKG_VERSION)"
|
MAKE_FLAGS += REV_ID="$(PKG_VERSION)"
|
||||||
|
|
||||||
|
define Package/natmap/conffiles
|
||||||
|
/etc/config/natmap
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/natmap/install
|
define Package/natmap/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/natmap $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/natmap $(1)/usr/bin/
|
||||||
|
|
|
@ -17,7 +17,7 @@ load_interfaces() {
|
||||||
|
|
||||||
validate_section_natmap() {
|
validate_section_natmap() {
|
||||||
uci_load_validate "${NAME}" natmap "$1" "$2" \
|
uci_load_validate "${NAME}" natmap "$1" "$2" \
|
||||||
'enable:bool:1' \
|
'enable:bool:0' \
|
||||||
'family:string' \
|
'family:string' \
|
||||||
'udp_mode:bool:0' \
|
'udp_mode:bool:0' \
|
||||||
'interface:string' \
|
'interface:string' \
|
||||||
|
|
Loading…
Reference in a new issue