2004-03-11 18:35:09 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# mrouted
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
MROUTED_VERSION:=3.9-beta3.orig
|
|
|
|
MROUTED_SOURCE:=mrouted_$(MROUTED_VERSION).tar.gz
|
2008-01-25 11:02:32 +01:00
|
|
|
MROUTED_SITE:=http://archive.debian.org/debian-archive/pool/non-free/m/mrouted/
|
2007-07-11 16:06:06 +02:00
|
|
|
MROUTED_DIR:=$(BUILD_DIR)/mrouted-$(MROUTED_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
MROUTED_CAT:=$(ZCAT)
|
2004-03-11 18:35:09 +01:00
|
|
|
MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
|
|
|
|
MROUTED_BINARY:=mrouted
|
|
|
|
MROUTED_TARGET_BINARY:=usr/sbin/mrouted
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MROUTED_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(MROUTED_SITE),$(MROUTED_SOURCE))
|
2004-03-11 18:35:09 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(MROUTED_PATCH):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(MROUTED_SITE),$(MROUTED_PATCH))
|
2004-03-11 18:35:09 +01:00
|
|
|
|
2004-10-14 11:39:25 +02:00
|
|
|
$(MROUTED_DIR)/.unpacked: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(MROUTED_CAT) $(DL_DIR)/$(MROUTED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2004-03-11 18:35:09 +01:00
|
|
|
$(MROUTED_CAT) $(DL_DIR)/$(MROUTED_PATCH) | patch -p1 -d $(MROUTED_DIR)
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(MROUTED_DIR) package/mrouted/ mrouted\*.patch
|
2004-03-11 18:35:09 +01:00
|
|
|
touch $(MROUTED_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(MROUTED_DIR)/$(MROUTED_BINARY): $(MROUTED_DIR)/.unpacked
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(MROUTED_DIR)
|
2004-03-11 18:35:09 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(MROUTED_TARGET_BINARY): $(MROUTED_DIR)/$(MROUTED_BINARY)
|
|
|
|
cp -a $(MROUTED_DIR)/$(MROUTED_BINARY) $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
mrouted: $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
2004-03-11 18:35:09 +01:00
|
|
|
|
2009-01-14 23:05:19 +01:00
|
|
|
mrouted-source: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
|
|
|
|
|
|
|
|
mrouted-unpacked: $(MROUTED_DIR)/.unpacked
|
|
|
|
|
2004-03-11 18:35:09 +01:00
|
|
|
mrouted-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(MROUTED_DIR) clean
|
|
|
|
|
|
|
|
mrouted-dirclean:
|
|
|
|
rm -rf $(MROUTED_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MROUTED),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=mrouted
|
|
|
|
endif
|