2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-07-11 16:33:31 +02:00
|
|
|
#
|
|
|
|
# ebtables
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-04 12:45:18 +01:00
|
|
|
|
2020-04-27 23:26:52 +02:00
|
|
|
EBTABLES_VERSION = 2.0.11
|
2015-09-28 18:10:31 +02:00
|
|
|
EBTABLES_SITE = http://ftp.netfilter.org/pub/ebtables
|
2017-03-30 15:43:32 +02:00
|
|
|
EBTABLES_LICENSE = GPL-2.0+
|
2012-08-01 06:48:59 +02:00
|
|
|
EBTABLES_LICENSE_FILES = COPYING
|
2020-12-04 16:46:01 +01:00
|
|
|
EBTABLES_CPE_ID_VENDOR = netfilter
|
2020-12-28 17:11:24 +01:00
|
|
|
EBTABLES_SELINUX_MODULES = iptables
|
2011-07-11 16:33:31 +02:00
|
|
|
|
2021-05-18 09:46:27 +02:00
|
|
|
# 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
|
|
|
|
|
2019-12-16 23:08:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
|
|
|
|
define EBTABLES_INSTALL_TARGET_UTILS_SAVE
|
2020-04-27 23:26:52 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
|
2019-12-16 23:08:32 +01:00
|
|
|
endef
|
2020-04-27 23:26:52 +02:00
|
|
|
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
|
2019-12-16 23:08:32 +01:00
|
|
|
endef
|
2020-04-27 23:26:52 +02:00
|
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_SAVE
|
2019-12-16 23:08:32 +01:00
|
|
|
endif
|
|
|
|
|
2020-04-27 23:26:52 +02:00
|
|
|
# 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
|
2011-07-11 16:33:31 +02:00
|
|
|
endef
|
2020-04-27 23:26:52 +02:00
|
|
|
EBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_RESTORE
|
2013-05-06 09:02:57 +02:00
|
|
|
endif
|
2011-07-11 16:33:31 +02:00
|
|
|
|
2021-02-16 12:58:01 +01:00
|
|
|
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
|
|
|
|
|
2020-04-27 23:26:52 +02:00
|
|
|
$(eval $(autotools-package))
|