2014-10-21 23:10:50 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# xtables-addons
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-10-14 15:44:34 +02:00
|
|
|
XTABLES_ADDONS_VERSION = 2.9
|
2014-10-21 23:10:50 +02:00
|
|
|
XTABLES_ADDONS_SOURCE = xtables-addons-$(XTABLES_ADDONS_VERSION).tar.xz
|
2015-07-06 20:06:38 +02:00
|
|
|
XTABLES_ADDONS_SITE = http://downloads.sourceforge.net/project/xtables-addons/Xtables-addons
|
2014-10-21 23:10:50 +02:00
|
|
|
XTABLES_ADDONS_DEPENDENCIES = iptables linux host-pkgconf
|
|
|
|
XTABLES_ADDONS_LICENSE = GPLv2+
|
|
|
|
XTABLES_ADDONS_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
XTABLES_ADDONS_CONF_OPTS = \
|
|
|
|
--with-kbuild="$(LINUX_DIR)" \
|
|
|
|
--with-xtables="$(STAGING_DIR)/usr" \
|
|
|
|
--with-xtlibdir="/usr/lib/xtables"
|
|
|
|
|
2015-09-03 14:54:21 +02:00
|
|
|
# We're building a kernel module without using the kernel-module infra,
|
|
|
|
# so we need to tell we want module support in the kernel
|
|
|
|
ifeq ($(BR2_PACKAGE_XTABLES_ADDONS),y)
|
|
|
|
LINUX_NEEDS_MODULES = y
|
|
|
|
endif
|
|
|
|
|
2014-10-21 23:10:50 +02:00
|
|
|
# geoip helpers need perl with modules and unzip so disable
|
|
|
|
define XTABLES_DISABLE_GEOIP_HELPERS
|
|
|
|
$(SED) 's/ geoip//' $(@D)/Makefile.in
|
|
|
|
endef
|
|
|
|
XTABLES_ADDONS_POST_PATCH_HOOKS += XTABLES_DISABLE_GEOIP_HELPERS
|
|
|
|
|
|
|
|
define XTABLES_ADDONS_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define XTABLES_ADDONS_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) DESTDIR="$(TARGET_DIR)" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|