Support for up to Linux 6.1 by fixing the following build failure: /tmp/instance-5/output-1/build/xtables-addons-3.21/extensions/xt_CHAOS.c: In function ‘xt_chaos_total’: /tmp/instance-5/output-1/build/xtables-addons-3.21/extensions/xt_CHAOS.c:70:46: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 70 | if (!ret || hotdrop || (unsigned int)prandom_u32() > delude_percentage) | ^~~~~~~~~~~ | prandom_u32_max https://fossies.org/linux/privat/xtables-addons-3.22.tar.xz/xtables-addons-3.22/doc/changelog.rst Fixes: - http://autobuild.buildroot.org/results/4564ba888156710819f6bd86117e0c0bdd513dba Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# xtables-addons
|
|
#
|
|
################################################################################
|
|
|
|
XTABLES_ADDONS_VERSION = 3.22
|
|
XTABLES_ADDONS_SOURCE = xtables-addons-$(XTABLES_ADDONS_VERSION).tar.xz
|
|
XTABLES_ADDONS_SITE = https://inai.de/files/xtables-addons
|
|
XTABLES_ADDONS_DEPENDENCIES = iptables linux host-pkgconf
|
|
XTABLES_ADDONS_LICENSE = GPL-2.0+
|
|
XTABLES_ADDONS_LICENSE_FILES = LICENSE
|
|
|
|
XTABLES_ADDONS_CONF_OPTS = \
|
|
--with-kbuild="$(LINUX_DIR)" \
|
|
--with-xtables="$(STAGING_DIR)/usr" \
|
|
--with-xtlibdir="/usr/lib/xtables"
|
|
|
|
# geoip helpers need perl with modules and unzip so disable
|
|
define XTABLES_ADDONS_DISABLE_GEOIP_HELPERS
|
|
$(SED) 's/ geoip//' $(@D)/Makefile.in
|
|
endef
|
|
XTABLES_ADDONS_POST_PATCH_HOOKS += XTABLES_ADDONS_DISABLE_GEOIP_HELPERS
|
|
|
|
define XTABLES_ADDONS_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS)
|
|
endef
|
|
|
|
define XTABLES_ADDONS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) DESTDIR="$(TARGET_DIR)" install
|
|
endef
|
|
|
|
define XTABLES_ADDONS_LINUX_CONFIG_FIXUPS
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_NAT)
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|