4b5743e523
ebtables 2.0.11 no longer works correctly when userland is 32-bit and the kernel is 64-bit. This used to work correctly in version 2.0.10-4. Problem is twofold: - ebtables itself was broken and needs to be patched - buildroot needs to pass the correct flag again to indicate when we are in this situation Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# ebtables
|
|
#
|
|
################################################################################
|
|
|
|
EBTABLES_VERSION = 2.0.11
|
|
EBTABLES_SITE = http://ftp.netfilter.org/pub/ebtables
|
|
EBTABLES_LICENSE = GPL-2.0+
|
|
EBTABLES_LICENSE_FILES = COPYING
|
|
EBTABLES_CPE_ID_VENDOR = netfilter
|
|
EBTABLES_SELINUX_MODULES = iptables
|
|
|
|
# for 0003-configure.ac-add-option-enable-kernel-64-userland-32.patch
|
|
EBTABLES_AUTORECONF = YES
|
|
ifeq ($(BR2_KERNEL_64_USERLAND_32),y)
|
|
EBTABLES_CONF_OPTS += --enable-kernel-64-userland-32
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
|
|
define EBTABLES_INSTALL_TARGET_UTILS_SAVE
|
|
$(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
|
|
endef
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_TARGET_UTILS_SAVE
|
|
else
|
|
# ebtables-legacy-save is installed by default, thus remove it from target
|
|
define EBTABLES_REMOVE_UTILS_SAVE
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
|
|
endef
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_SAVE
|
|
endif
|
|
|
|
# ebtables-legacy-restore is installed by default, thus remove it if not
|
|
# selected
|
|
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_RESTORE),)
|
|
define EBTABLES_REMOVE_UTILS_RESTORE
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/ebtables-legacy-restore
|
|
endef
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_RESTORE
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPTABLES_NFTABLES),)
|
|
define EBTABLES_INSTALL_LEGACY_SYMLINK
|
|
ln -sf /usr/sbin/ebtables-legacy $(TARGET_DIR)/sbin/ebtables
|
|
endef
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_LEGACY_SYMLINK
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|