1 #############################################################
5 #############################################################
6 IPROUTE2_DIR
=$(BUILD_DIR
)/iproute2
8 #IPROUTE2_SOURCE_URL=ftp://ftp.inr.ac.ru/ip-routing/
9 #IPROUTE2_SOURCE=iproute2-2.4.7-now-ss020116-try.tar.gz
11 #Use the debian source for now, as the .ru site has availability problems
12 IPROUTE2_SOURCE_URL
=http
://ftp.debian.org
/debian
/pool
/main
/i
/iproute
/
13 IPROUTE2_SOURCE
=iproute_20010824.orig.
tar.gz
14 IPROUTE2_PATCH
:=iproute_20010824-8.diff.gz
17 $(DL_DIR
)/$(IPROUTE2_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(IPROUTE2_SOURCE_URL
)$(IPROUTE2_SOURCE
)
20 $(DL_DIR
)/$(IPROUTE2_PATCH
):
21 $(WGET
) -P
$(DL_DIR
) $(IPROUTE2_SOURCE_URL
)/$(IPROUTE2_PATCH
)
23 iproute2-source
: $(DL_DIR
)/$(IPROUTE2_SOURCE
) #$(DL_DIR)/$(IPROUTE2_PATCH)
25 $(IPROUTE2_DIR
)/.unpacked
: $(DL_DIR
)/$(IPROUTE2_SOURCE
) #$(DL_DIR)/$(IPROUTE2_PATCH)
26 rm -rf
$(IPROUTE2_DIR
).orig
$(IPROUTE2_DIR
)
27 zcat
$(DL_DIR
)/$(IPROUTE2_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
28 #zcat $(DL_DIR)/$(IPROUTE2_PATCH) | patch -p1 -d $(IPROUTE2_DIR)
29 touch
$(IPROUTE2_DIR
)/.unpacked
31 $(IPROUTE2_DIR
)/.configured
: $(IPROUTE2_DIR
)/.unpacked
32 $(SED
) "s,-I/usr/include/db3,," $(IPROUTE2_DIR
)/Makefile
33 $(SED
) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
34 $(IPROUTE2_DIR
)/Makefile
35 $(SED
) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
36 $(IPROUTE2_DIR
)/Makefile
37 # For now disable compiling of the misc directory because it seems to fail
38 rm -rf
$(IPROUTE2_DIR
)/misc
39 $(SED
) "s, misc,," $(IPROUTE2_DIR
)/Makefile
40 touch
$(IPROUTE2_DIR
)/.configured
42 $(IPROUTE2_DIR
)/tc
/tc
: $(IPROUTE2_DIR
)/.configured
43 $(MAKE
) -C
$(IPROUTE2_DIR
) KERNEL_INCLUDE
=$(LINUX_SOURCE_DIR
)/include CC
=$(TARGET_CC
) AR
=$(TARGET_AR
)
45 $(TARGET_DIR
)/usr
/sbin
/tc
: $(IPROUTE2_DIR
)/tc
/tc
47 cp
-af
$(IPROUTE2_DIR
)/tc
/tc
$(TARGET_DIR
)/usr
/sbin
/
49 iproute2
: $(TARGET_DIR
)/usr
/sbin
/tc
52 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(IPROUTE2_DIR
) uninstall
53 -$(MAKE
) -C
$(IPROUTE2_DIR
) clean
56 rm -rf
$(IPROUTE2_DIR
)