summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/make/ebtables.mk
diff options
context:
space:
mode:
authorsolar <solar@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-30 04:15:05 +0000
committersolar <solar@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-30 04:15:05 +0000
commitd9d1b68745a739772a18fc458b6ebb4091d0ad23 (patch)
treec4f142a617f8302fd0cf369de8483e3031c6217d /obsolete-buildroot/make/ebtables.mk
parentb84b3c1bb95d1e9846b4ec35dba2d5e86f5ea6bb (diff)
initial commit of ebtables-2.0.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/ebtables.mk')
-rw-r--r--obsolete-buildroot/make/ebtables.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/ebtables.mk b/obsolete-buildroot/make/ebtables.mk
new file mode 100644
index 000000000..8fec4e8d6
--- /dev/null
+++ b/obsolete-buildroot/make/ebtables.mk
@@ -0,0 +1,51 @@
+#############################################################
+#
+# ebtables
+#
+#############################################################
+
+EBTABLES_NAME=ebtables
+EBTABLES_VERSION=v2.0.6
+EBTABLES_SOURCE=$(EBTABLES_NAME)-$(EBTABLES_VERSION).tar.gz
+#EBTABLES_SOURCE_URL=http://unc.dl.sourceforge.net/sourceforge/$(EBTABLES_NAME)/
+EBTABLES_SOURCE_URL=http://aleron.dl.sourceforge.net/sourceforge/$(EBTABLES_NAME)/
+EBTABLES_BUILD_DIR=$(BUILD_DIR)/$(EBTABLES_NAME)-$(EBTABLES_VERSION)
+
+$(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) -xvf -
+ touch $(EBTABLES_BUILD_DIR)/.unpacked
+
+$(EBTABLES_BUILD_DIR)/.configured: $(EBTABLES_BUILD_DIR)/.unpacked
+ # Allow patches. Needed for openwrt for instance.
+ $(SOURCE_DIR)/patch-kernel.sh $(EBTABLES_BUILD_DIR) $(SOURCE_DIR) $(EBTABLES_NAME)-*.patch
+ touch $(EBTABLES_BUILD_DIR)/.configured
+
+$(EBTABLES_BUILD_DIR)/$(EBTABLES_NAME): $(EBTABLES_BUILD_DIR)/.configured
+ $(TARGET_CONFIGURE_OPTS) \
+ $(MAKE) -C $(EBTABLES_BUILD_DIR) \
+ CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"
+
+$(TARGET_DIR)/sbin/$(EBTABLES_NAME): $(EBTABLES_BUILD_DIR)/$(EBTABLES_NAME)
+ $(TARGET_CONFIGURE_OPTS) \
+ $(MAKE) -C $(EBTABLES_BUILD_DIR) \
+ MANDIR=$(TARGET_DIR)/usr/share/man \
+ ETHERTYPESPATH=${D}/etc/ \
+ BINPATH=$(TARGET_DIR)/sbin/ \
+ CC=$(TARGET_CC) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ install
+ $(STRIP) $(TARGET_DIR)/sbin/$(EBTABLES_NAME)
+ rm -rf $(TARGET_DIR)/usr/share/man
+
+$(EBTABLES_NAME): $(TARGET_DIR)/sbin/$(EBTABLES_NAME)
+
+$(EBTABLES_NAME)-source: $(DL_DIR)/$(EBTABLES_SOURCE)
+
+$(EBTABLES_NAME)-clean:
+ -$(MAKE) -C $(EBTABLES_BUILD_DIR) clean
+
+$(EBTABLES_NAME)-dirclean:
+ rm -rf $(EBTABLES_BUILD_DIR)