mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #4067 from oskar456/addrwatch
addrwatch: fix imagebuilder and config file name
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=addrwatch
|
PKG_NAME:=addrwatch
|
||||||
PKG_VERSION:=0.8
|
PKG_VERSION:=0.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-master.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-master.tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/fln/addrwatch/releases/download/$(PKG_VERSION)/
|
PKG_SOURCE_URL:=https://github.com/fln/addrwatch/releases/download/$(PKG_VERSION)/
|
||||||
@@ -46,7 +46,7 @@ define Package/addrwatch/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/addrwatch $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/addrwatch $(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) ./files/addrwatch.init $(1)/etc/init.d/addrwatch
|
$(INSTALL_BIN) ./files/addrwatch.init $(1)/etc/init.d/addrwatch
|
||||||
$(INSTALL_CONF) ./files/addrwatch.config $(1)/etc/config/addrwatch$
|
$(INSTALL_CONF) ./files/addrwatch.config $(1)/etc/config/addrwatch
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,addrwatch))
|
$(eval $(call BuildPackage,addrwatch))
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
START=50
|
START=50
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
. /lib/functions/network.sh
|
|
||||||
|
|
||||||
validate_section_addrwatch() {
|
validate_section_addrwatch() {
|
||||||
uci_validate_section addrwatch addrwatch "${1}" \
|
uci_validate_section addrwatch addrwatch "${1}" \
|
||||||
'disabled:bool:0' \
|
'disabled:bool:0' \
|
||||||
@@ -65,6 +63,7 @@ start_instance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
. /lib/functions/network.sh
|
||||||
config_load 'addrwatch'
|
config_load 'addrwatch'
|
||||||
config_foreach start_instance 'addrwatch'
|
config_foreach start_instance 'addrwatch'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user