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
|
|
|
|
2012-01-05 19:26:19 +01:00
|
|
|
EBTABLES_VERSION = 2.0.10-4
|
2011-07-11 16:33:31 +02:00
|
|
|
EBTABLES_SOURCE = ebtables-v$(EBTABLES_VERSION).tar.gz
|
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
|
2014-12-03 22:41:29 +01:00
|
|
|
EBTABLES_STATIC = $(if $(BR2_STATIC_LIBS),static)
|
2014-05-12 05:27:05 +02:00
|
|
|
EBTABLES_K64U32 = $(if $(BR2_KERNEL_64_USERLAND_32),-DKERNEL_64_USERSPACE_32)
|
2011-07-11 16:33:31 +02:00
|
|
|
|
|
|
|
define EBTABLES_BUILD_CMDS
|
2013-05-06 09:02:57 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) LIBDIR=/lib/ebtables $(EBTABLES_STATIC) \
|
2014-05-12 05:27:05 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(EBTABLES_K64U32)" -C $(@D)
|
2011-07-11 16:33:31 +02:00
|
|
|
endef
|
|
|
|
|
2019-12-16 23:08:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
|
|
|
|
define EBTABLES_INSTALL_TARGET_UTILS_SAVE
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/sbin/ebtables-save
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_RESTORE),y)
|
|
|
|
define EBTABLES_INSTALL_TARGET_UTILS_RESTORE
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ebtables-restore $(TARGET_DIR)/sbin/ebtables-restore
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2013-05-06 09:02:57 +02:00
|
|
|
define EBTABLES_INSTALL_TARGET_CMDS
|
2019-12-22 21:15:33 +01:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/static $(TARGET_DIR)/sbin/ebtables
|
2013-05-06 09:02:57 +02:00
|
|
|
endef
|
|
|
|
else
|
2011-07-11 16:33:31 +02:00
|
|
|
define EBTABLES_INSTALL_TARGET_CMDS
|
2019-12-22 21:17:36 +01:00
|
|
|
$(foreach so,$(wildcard $(@D)/*.so $(@D)/extensions/*.so), \
|
|
|
|
$(INSTALL) -m 0755 -D $(so) \
|
|
|
|
$(TARGET_DIR)/lib/ebtables/$(notdir $(so))
|
|
|
|
)
|
2019-12-22 21:15:33 +01:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ebtables $(TARGET_DIR)/sbin/ebtables
|
2013-10-24 18:13:57 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/ethertypes $(TARGET_DIR)/etc/ethertypes
|
2019-12-16 23:08:32 +01:00
|
|
|
$(EBTABLES_INSTALL_TARGET_UTILS_RESTORE)
|
|
|
|
$(EBTABLES_INSTALL_TARGET_UTILS_SAVE)
|
2011-07-11 16:33:31 +02:00
|
|
|
endef
|
2013-05-06 09:02:57 +02:00
|
|
|
endif
|
2011-07-11 16:33:31 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|