1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# ebtables 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunEBTABLES_VERSION = 2.0.11 8*4882a593SmuzhiyunEBTABLES_SITE = http://ftp.netfilter.org/pub/ebtables 9*4882a593SmuzhiyunEBTABLES_LICENSE = GPL-2.0+ 10*4882a593SmuzhiyunEBTABLES_LICENSE_FILES = COPYING 11*4882a593SmuzhiyunEBTABLES_CPE_ID_VENDOR = netfilter 12*4882a593SmuzhiyunEBTABLES_SELINUX_MODULES = iptables 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun# for 0003-configure.ac-add-option-enable-kernel-64-userland-32.patch 15*4882a593SmuzhiyunEBTABLES_AUTORECONF = YES 16*4882a593Smuzhiyunifeq ($(BR2_KERNEL_64_USERLAND_32),y) 17*4882a593SmuzhiyunEBTABLES_CONF_OPTS += --enable-kernel-64-userland-32 18*4882a593Smuzhiyunendif 19*4882a593Smuzhiyun 20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y) 21*4882a593Smuzhiyundefine EBTABLES_INSTALL_TARGET_UTILS_SAVE 22*4882a593Smuzhiyun $(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save 23*4882a593Smuzhiyunendef 24*4882a593SmuzhiyunEBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_TARGET_UTILS_SAVE 25*4882a593Smuzhiyunelse 26*4882a593Smuzhiyun# ebtables-legacy-save is installed by default, thus remove it from target 27*4882a593Smuzhiyundefine EBTABLES_REMOVE_UTILS_SAVE 28*4882a593Smuzhiyun $(RM) -f $(TARGET_DIR)/usr/sbin/ebtables-legacy-save 29*4882a593Smuzhiyunendef 30*4882a593SmuzhiyunEBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_SAVE 31*4882a593Smuzhiyunendif 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun# ebtables-legacy-restore is installed by default, thus remove it if not 34*4882a593Smuzhiyun# selected 35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_EBTABLES_UTILS_RESTORE),) 36*4882a593Smuzhiyundefine EBTABLES_REMOVE_UTILS_RESTORE 37*4882a593Smuzhiyun $(RM) -f $(TARGET_DIR)/usr/sbin/ebtables-legacy-restore 38*4882a593Smuzhiyunendef 39*4882a593SmuzhiyunEBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_REMOVE_UTILS_RESTORE 40*4882a593Smuzhiyunendif 41*4882a593Smuzhiyun 42*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IPTABLES_NFTABLES),) 43*4882a593Smuzhiyundefine EBTABLES_INSTALL_LEGACY_SYMLINK 44*4882a593Smuzhiyun ln -sf /usr/sbin/ebtables-legacy $(TARGET_DIR)/sbin/ebtables 45*4882a593Smuzhiyunendef 46*4882a593SmuzhiyunEBTABLES_POST_INSTALL_TARGET_HOOKS += EBTABLES_INSTALL_LEGACY_SYMLINK 47*4882a593Smuzhiyunendif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun$(eval $(autotools-package)) 50