summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/iproute2.mk
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-08-27 00:42:33 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-08-27 00:42:33 +0000
commitf0c8400658ac5b039bb48dbb74b02f75d52b9723 (patch)
tree7ef2c062b8733bbd08473f6c2bed78c7ad9708d1 /obsolete-buildroot/make/iproute2.mk
parentaa210b58909434abaa63a7a6cd898a43ba61c3f3 (diff)
various patches
nico: buildroot-20040825-kmodules.patch.txt buildroot-20040825-tcpdump.patch.txt buildroot-20040825-libpcap.patch.txt buildroot-20040825-libpthread.patch.txt buildroot-20040825-fprobe.patch.txt buildroot-20040825-pptp-client.patch.txt twolife: iproute2.patch.txt git-svn-id: svn://svn.openwrt.org/openwrt/trunk@149 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/iproute2.mk')
-rw-r--r--obsolete-buildroot/make/iproute2.mk32
1 files changed, 16 insertions, 16 deletions
diff --git a/obsolete-buildroot/make/iproute2.mk b/obsolete-buildroot/make/iproute2.mk
index 86608ea4bb..94bed41c0e 100644
--- a/obsolete-buildroot/make/iproute2.mk
+++ b/obsolete-buildroot/make/iproute2.mk
@@ -5,6 +5,8 @@
#############################################################
IPROUTE2_DIR=$(BUILD_DIR)/iproute2
+IP_IPK_DIR=$(BUILD_DIR)/ip-2.0-ipk
+TC_IPK_DIR=$(BUILD_DIR)/tc-2.0-ipk
#IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/
#IPROUTE2_SOURCE=iproute2-2.4.7-now-ss020116-try.tar.gz
@@ -15,10 +17,6 @@ IPROUTE2_SOURCE=iproute_20010824.orig.tar.gz
IPROUTE2_PATCH:=iproute_20010824-8.diff.gz
IPROUTE2_PATCH_2:=iproute2-*.patch
-IPROUTE2_IPKTARGET=iproute.ipk
-IPROUTE2_IPKSRC:=iproute-pkg.tgz
-IPROUTE2_IPKSITE:=http://openwrt.rozeware.bc.ca/ipkg-dev
-
$(DL_DIR)/$(IPROUTE2_SOURCE):
$(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)$(IPROUTE2_SOURCE)
@@ -26,9 +24,6 @@ $(DL_DIR)/$(IPROUTE2_SOURCE):
$(DL_DIR)/$(IPROUTE2_PATCH):
$(WGET) -P $(DL_DIR) $(IPROUTE2_SOURCE_URL)/$(IPROUTE2_PATCH)
-$(DL_DIR)/$(IPROUTE2_IPKSRC):
- $(WGET) -P $(DL_DIR) $(IPROUTE2_IPKSITE)/$(IPROUTE2_IPKSRC)
-
iproute2-source: $(DL_DIR)/$(IPROUTE2_SOURCE) #$(DL_DIR)/$(IPROUTE2_PATCH)
@@ -58,7 +53,6 @@ $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
$(IPROUTE2_DIR)/tc/tc: $(IPROUTE2_DIR)/.configured
$(MAKE) -C $(IPROUTE2_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include
- $(STRIP) $(IPROUTE2_DIR)/tc/tc
$(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc
@# Make sure our $(TARGET_DIR)/usr/sbin/ exists.
@@ -74,13 +68,19 @@ iproute2-clean:
-$(MAKE) -C $(IPROUTE2_DIR) clean
iproute2-dirclean:
- rm -rf $(IPROUTE2_DIR)
+ rm -rf $(IPROUTE2_DIR) $(IP_IPK_DIR) $(TC_IPK_DIR)
-iproute2-ipk: $(IPROUTE2_IPKTARGET)
-$(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)