-$(IPROUTE2_IPKTARGET): $(IPROUTE2_DIR)/ipkg/rules
- (cd $(IPROUTE2_DIR); $(IPKG_BUILDPACKAGE) )
-
-$(IPROUTE2_DIR)/ipkg/rules: $(IPROUTE2_DIR)/tc/tc $(DL_DIR)/$(IPROUTE2_IPKSRC)
- tar -C $(IPROUTE2_DIR) -zxf $(DL_DIR)/$(IPROUTE2_IPKSRC)
-
+iproute2-ipk: $(IPROUTE2_DIR)/tc/tc
+ mkdir -p $(IP_IPK_DIR)
+ mkdir -p $(TC_IPK_DIR)
+ cp -a $(OPENWRT_IPK_DIR)/iproute/ip/CONTROL $(IP_IPK_DIR)/CONTROL
+ cp -a $(OPENWRT_IPK_DIR)/iproute/tc/CONTROL $(TC_IPK_DIR)/CONTROL
+ mkdir -p $(IP_IPK_DIR)/usr/sbin
+ mkdir -p $(TC_IPK_DIR)/usr/sbin
+ install -m 755 $(IPROUTE2_DIR)/ip/ip $(IP_IPK_DIR)/usr/sbin/
+ install -m 755 $(IPROUTE2_DIR)/tc/tc $(TC_IPK_DIR)/usr/sbin/
+ $(STRIP) $(IP_IPK_DIR)/usr/sbin/ip
+ $(STRIP) $(TC_IPK_DIR)/usr/sbin/tc
+ cd $(BUILD_DIR); $(IPKG_BUILD) $(IP_IPK_DIR)
+ cd $(BUILD_DIR); $(IPKG_BUILD) $(TC_IPK_DIR)