mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:17:32 +02:00
add ebtables usertools
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@250 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9a0f1fb9ce
commit
68bc528f22
@ -11,5 +11,6 @@ source "package/bridge/Config.in"
|
||||
|
||||
comment "Suggested Extras"
|
||||
source "package/dropbear_sshd/Config.in"
|
||||
source "package/ebtables/Config.in"
|
||||
|
||||
endmenu
|
||||
|
6
package/ebtables/Config.in
Normal file
6
package/ebtables/Config.in
Normal file
@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_EBTABLES
|
||||
bool "ebtables"
|
||||
default n
|
||||
help
|
||||
ethernet bridging firewalling
|
||||
http://ebtables.sourceforge.net/
|
3
package/ebtables/Makefile.in
Normal file
3
package/ebtables/Makefile.in
Normal file
@ -0,0 +1,3 @@
|
||||
ifeq ($(strip $(BR2_PACKAGE_EBTABLES)),y)
|
||||
TARGETS+=ebtables
|
||||
endif
|
37
package/ebtables/ebtables.mk
Normal file
37
package/ebtables/ebtables.mk
Normal file
@ -0,0 +1,37 @@
|
||||
#############################################################
|
||||
#
|
||||
# ebtables
|
||||
#
|
||||
#############################################################
|
||||
#
|
||||
EBTABLES_SOURCE_URL=http://umn.dl.sourceforge.net/sourceforge/ebtables/
|
||||
EBTABLES_SOURCE=ebtables-v2.0.6.tar.gz
|
||||
EBTABLES_BUILD_DIR=$(BUILD_DIR)/ebtables-v2.0.6
|
||||
EBTABLES_TARGET_BINARY:=usr/sbin/ebtables
|
||||
|
||||
$(DL_DIR)/$(EBTABLES_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(EBTABLES_SOURCE_URL)/$(EBTABLES_SOURCE)
|
||||
|
||||
$(EBTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(EBTABLES_SOURCE)
|
||||
zcat $(DL_DIR)/$(EBTABLES_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
touch $(EBTABLES_BUILD_DIR)/.unpacked
|
||||
|
||||
$(EBTABLES_BUILD_DIR)/ebtables: $(EBTABLES_BUILD_DIR)/.unpacked
|
||||
$(MAKE) -C $(EBTABLES_BUILD_DIR) \
|
||||
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
|
||||
CFLAGS="$(TARGET_CFLAGS) -Wall"
|
||||
|
||||
$(TARGET_DIR)/$(EBTABLES_TARGET_BINARY): $(EBTABLES_BUILD_DIR)/ebtables
|
||||
cp -af $(EBTABLES_BUILD_DIR)/ebtables $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
|
||||
$(STRIP) $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
|
||||
|
||||
ebtables: linux $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
|
||||
|
||||
ebtables-source: $(DL_DIR)/$(EBTABLES_SOURCE)
|
||||
|
||||
ebtables-clean:
|
||||
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(EBTABLES_BUILD_DIR) uninstall
|
||||
-$(MAKE) -C $(EBTABLES_BUILD_DIR) clean
|
||||
|
||||
ebtables-dirclean:
|
||||
rm -rf $(EBTABLES_BUILD_DIR)
|
Loading…
Reference in New Issue
Block a user