diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-02-17 22:27:08 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-02-17 22:27:08 +0000 |
commit | 93993a9a69e3d5e66a9ec5591309005f80e52ed0 (patch) | |
tree | 5463df879b477ac080b2cc90ae1afd05a33cbd5b /openwrt/package/ebtables/ebtables.mk | |
parent | 4bbadbe9891adf4834707f4c229bfd080ff659f2 (diff) |
add ebtables usertools
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@250 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ebtables/ebtables.mk')
-rw-r--r-- | openwrt/package/ebtables/ebtables.mk | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/openwrt/package/ebtables/ebtables.mk b/openwrt/package/ebtables/ebtables.mk new file mode 100644 index 0000000000..b28e86c28b --- /dev/null +++ b/openwrt/package/ebtables/ebtables.mk @@ -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) |