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)
|
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
|
|
|
|
|
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} \
|
2014-11-30 15:18:28 +01:00
|
|
|
$(TARGET_DIR)/lib/ebtables/`basename $${so}` || exit 1; \
|
2011-07-11 16:33:31 +02:00
|
|
|
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))
|