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
|
2013-07-20 11:24:48 +02:00
|
|
|
EBTABLES_SITE = http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-$(subst .,-,$(EBTABLES_VERSION))
|
2013-10-08 12:06:58 +02:00
|
|
|
EBTABLES_LICENSE = GPLv2+
|
2012-08-01 06:48:59 +02:00
|
|
|
EBTABLES_LICENSE_FILES = COPYING
|
2013-05-06 09:02:57 +02:00
|
|
|
EBTABLES_STATIC = $(if $(BR2_PREFER_STATIC_LIB),static)
|
2013-10-25 15:10:23 +02:00
|
|
|
EBTABLES_K64U32 = $(if $(BR2_KERNEL_64_USERLAND_32),CFLAGS+="-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) \
|
2013-10-25 15:10:23 +02:00
|
|
|
$(EBTABLES_K64U32) -C $(@D)
|
2011-07-11 16:33:31 +02:00
|
|
|
endef
|
|
|
|
|
2013-05-06 09:02:57 +02:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
define EBTABLES_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/static \
|
|
|
|
$(TARGET_DIR)/sbin/ebtables
|
|
|
|
endef
|
|
|
|
else
|
2011-07-11 16:33:31 +02:00
|
|
|
define EBTABLES_INSTALL_TARGET_CMDS
|
|
|
|
for so in $(@D)/$(EBTABLES_SUBDIR)/*.so \
|
|
|
|
$(@D)/$(EBTABLES_SUBDIR)/extensions/*.so; \
|
|
|
|
do \
|
|
|
|
$(INSTALL) -m 0755 -D $${so} \
|
|
|
|
$(TARGET_DIR)/lib/ebtables/`basename $${so}`; \
|
|
|
|
done
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/ebtables \
|
|
|
|
$(TARGET_DIR)/sbin/ebtables
|
2013-10-24 18:13:57 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/ethertypes $(TARGET_DIR)/etc/ethertypes
|
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))
|