banip: adapt openwrt rc.common changes 13848/head
authorDirk Brenken <dev@brenken.org>
Tue, 3 Nov 2020 18:44:22 +0000 (19:44 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 3 Nov 2020 18:44:22 +0000 (19:44 +0100)
* since openwrt master has merged the depending P/R, the old
extra_help/extra_commands syntax is no longer working, see #13798 for
reference

* removed logd dependency, see #13820 for reference

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/banip/Makefile
net/banip/files/banip.init

index 20c52bee6d5e996e4f8482149e64a0c83af5e83a..e2170a172d1d9ba3cd6f2d976406fe1a8e791ef5 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=banip
 PKG_VERSION:=0.3.12
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
@@ -17,7 +17,7 @@ define Package/banip
        SECTION:=net
        CATEGORY:=Network
        TITLE:=Ban incoming and/or outgoing ip adresses via ipsets
-       DEPENDS:=+jshn +jsonfilter +ip +ipset +iptables +ca-bundle +logd
+       DEPENDS:=+jshn +jsonfilter +ip +ipset +iptables +ca-bundle
        PKGARCH:=all
 endef
 
index 75fbe5e92a02005b6703e1ab8c01e73abe24916f..034050d5891400b420bd51126b0a705366860a23 100755 (executable)
@@ -4,8 +4,7 @@
 START=30
 USE_PROCD=1
 
-EXTRA_COMMANDS="refresh"
-EXTRA_HELP="   refresh Refresh ipsets without new list downloads"
+extra_command "refresh" "Refresh ipsets without new list downloads"
 
 ban_init="/etc/init.d/banip"
 ban_script="/usr/bin/banip.sh"