PKG_NAME:=xtables-addons
PKG_VERSION:=3.27
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_HASH:=e47ea8febe73c12ecab09d2c93578c5dc72d76f17fdf673397758f519cce6828
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
$(eval $(call BuildTemplate,geoip,geoip,xt_geoip,xt_geoip,))
$(eval $(call BuildTemplate,iface,iface,xt_iface,xt_iface,))
$(eval $(call BuildTemplate,ipmark,IPMARK,xt_IPMARK,xt_IPMARK,+kmod-ipt-compat-xtables))
-$(eval $(call BuildTemplate,ipp2p,IPP2P,xt_ipp2p,xt_ipp2p,+kmod-ipt-compat-xtables))
+$(eval $(call BuildTemplate,ipp2p,IPP2P,xt_ipp2p,xt_ipp2p,+kmod-ipt-compat-xtables +kmod-lib-textsearch))
$(eval $(call BuildTemplate,ipv4options,ipv4options,xt_ipv4options,xt_ipv4options,))
$(eval $(call BuildTemplate,length2,length2,xt_length2,xt_length2,+kmod-ipt-compat-xtables))
$(eval $(call BuildTemplate,logmark,LOGMARK,xt_LOGMARK,xt_LOGMARK,+kmod-ipt-compat-xtables))
--- /dev/null
+From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
+Date: Thu, 15 May 2025 14:59:18 +0200
+Subject: xtables-addons: deactivate 'no TEXTSEARCH_BM' error
+
+If ipp2p (and kmod-lib-textsearch) is disabled the error
+"error CONFIG_TEXTSEARCH=y/m is required.." is displayed.
+This is because all modules are always compiled.
+So to make compilation possible with ipp2p disabled, the message
+was disabled.
+
+Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
+
+--- a/extensions/xt_ipp2p.c
++++ b/extensions/xt_ipp2p.c
+@@ -14,7 +14,7 @@
+ #include "xt_ipp2p.h"
+ #include "compat_xtables.h"
+ #if !defined(CONFIG_TEXTSEARCH_BM) && !defined(CONFIG_TEXTSEARCH_BM_MODULE)
+-# error CONFIG_TEXTSEARCH_BM=y/m is required for ipp2p. Either enable textsearch in your kernel ".config" file, or disable ipp2p in the "mconfig" file in Xtables-addons.
++//# error CONFIG_TEXTSEARCH_BM=y/m is required for ipp2p. Either enable textsearch in your kernel ".config" file, or disable ipp2p in the "mconfig" file in Xtables-addons.
+ #endif
+
+ //#define IPP2P_DEBUG_ARES