aboutsummaryrefslogtreecommitdiff
path: root/package/mrouted/mrouted.mk
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/mrouted/mrouted.mk
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.bz2
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/mrouted/mrouted.mk')
-rw-r--r--package/mrouted/mrouted.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/package/mrouted/mrouted.mk b/package/mrouted/mrouted.mk
new file mode 100644
index 0000000000..c017d910b5
--- /dev/null
+++ b/package/mrouted/mrouted.mk
@@ -0,0 +1,45 @@
+#############################################################
+#
+# mrouted
+#
+#
+#############################################################
+MROUTED_SOURCE:=mrouted_3.9-beta3.orig.tar.gz
+MROUTED_SITE:=http://ftp.debian.org/debian/pool/non-free/m/mrouted
+MROUTED_DIR:=$(BUILD_DIR)/mrouted-3.9-beta3.orig
+MROUTED_CAT:=zcat
+#MROUTED_PATCH:=$(SOURCE_DIR)/mrouted_3.9-beta3-1.1.diff
+MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
+MROUTED_BINARY:=mrouted
+MROUTED_TARGET_BINARY:=usr/sbin/mrouted
+
+$(DL_DIR)/$(MROUTED_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_SOURCE)
+
+$(DL_DIR)/$(MROUTED_PATCH):
+ $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_PATCH)
+
+mrouted-source: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
+
+$(MROUTED_DIR)/.unpacked: mrouted-source
+ $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_PATCH) | patch -p1 -d $(MROUTED_DIR)
+ $(SOURCE_DIR)/patch-kernel.sh $(MROUTED_DIR) $(SOURCE_DIR) mrouted-\*.patch
+ touch $(MROUTED_DIR)/.unpacked
+
+$(MROUTED_DIR)/$(MROUTED_BINARY): $(MROUTED_DIR)/.unpacked
+ $(TARGET_CONFIGURE_OPTS) \
+ $(MAKE) CC=$(TARGET_CC) -C $(MROUTED_DIR)
+
+$(TARGET_DIR)/$(MROUTED_TARGET_BINARY): $(MROUTED_DIR)/$(MROUTED_BINARY)
+ cp -a $(MROUTED_DIR)/$(MROUTED_BINARY) $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
+
+mrouted: uclibc $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
+
+mrouted-clean:
+ rm -f $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
+ -$(MAKE) -C $(MROUTED_DIR) clean
+
+mrouted-dirclean:
+ rm -rf $(MROUTED_DIR)
+