1 ################################################################################
5 ################################################################################
7 EBTABLES_VERSION
= 2.0.10-4
8 EBTABLES_SOURCE
= ebtables-v
$(EBTABLES_VERSION
).
tar.gz
9 EBTABLES_SITE
= http
://ftp.netfilter.org
/pub
/ebtables
10 EBTABLES_LICENSE
= GPLv2
+
11 EBTABLES_LICENSE_FILES
= COPYING
12 EBTABLES_STATIC
= $(if
$(BR2_STATIC_LIBS
),static
)
13 EBTABLES_K64U32
= $(if
$(BR2_KERNEL_64_USERLAND_32
),-DKERNEL_64_USERSPACE_32
)
15 define EBTABLES_BUILD_CMDS
16 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) LIBDIR
=/lib
/ebtables
$(EBTABLES_STATIC
) \
17 CFLAGS
="$(TARGET_CFLAGS) $(EBTABLES_K64U32)" -C
$(@D
)
20 ifeq ($(BR2_STATIC_LIBS
),y
)
21 define EBTABLES_INSTALL_TARGET_CMDS
22 $(INSTALL
) -m
0755 -D
$(@D
)/$(EBTABLES_SUBDIR
)/static \
23 $(TARGET_DIR
)/sbin
/ebtables
26 define EBTABLES_INSTALL_TARGET_CMDS
27 for so in
$(@D
)/$(EBTABLES_SUBDIR
)/*.so \
28 $(@D
)/$(EBTABLES_SUBDIR
)/extensions
/*.so
; \
30 $(INSTALL
) -m
0755 -D
$${so} \
31 $(TARGET_DIR
)/lib
/ebtables
/`basename $${so}` || exit
1; \
33 $(INSTALL
) -m
0755 -D
$(@D
)/$(EBTABLES_SUBDIR
)/ebtables \
34 $(TARGET_DIR
)/sbin
/ebtables
35 $(INSTALL
) -m
0644 -D
$(@D
)/ethertypes
$(TARGET_DIR
)/etc
/ethertypes
39 $(eval
$(generic-package
))