pingcheck: Update and add script directories 11976/head
authorBruno Randolf <br1@einfach.org>
Wed, 12 Feb 2020 11:47:25 +0000 (11:47 +0000)
committerBruno Randolf <br1@einfach.org>
Mon, 27 Apr 2020 15:15:27 +0000 (16:15 +0100)
- Update to version with longer interface names.

- Add /etc/pingcheck/(on|off)line.d/ directories with an example
  script. Closes #11263

Signed-off-by: Bruno Randolf <br1@einfach.org>
net/pingcheck/Makefile

index dfd15995ef5c1cd2155295e3a679c0b9d033c40a..db2855e8a09bf8dd6ca484d59982b29752170361 100644 (file)
@@ -8,15 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pingcheck
-PKG_VERSION:=2017-10-02
-PKG_RELEASE:=2
+PKG_VERSION:=2020-02-12
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MIRROR_HASH:=8c8d1743b8972ade6c75027346fc652f7a1c0f17e2f9bd2e65aad20013d9870e
+PKG_MIRROR_HASH:=3890cd39add7e523ab7418faf6a7ae1a1f71d2739982e6e09aa33cc6defac8be
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=https://github.com/br101/pingcheck
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=12e65e2f3fd2a17db785d28756df43ccade29b1b
+PKG_SOURCE_VERSION:=520718f9377eab49888a3e38ece59f9ad94d978e
 
 PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
 PKG_LICENSE:=GPL-2.0-or-later
@@ -53,6 +53,11 @@ define Package/pingcheck/install
        $(INSTALL_BIN) ./pingcheck.init $(1)/etc/init.d/pingcheck
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/pingcheck.config $(1)/etc/config/pingcheck
+       $(INSTALL_DIR) $(1)/etc/pingcheck/online.d/
+       $(INSTALL_DIR) $(1)/etc/pingcheck/offline.d/
+       $(INSTALL_DIR) $(1)/etc/pingcheck/panic.d/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/example-script.sh $(1)/etc/pingcheck/online.d/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/example-script.sh $(1)/etc/pingcheck/offline.d/
 endef
 
 $(eval $(call BuildPackage,pingcheck))