1 diff -Naur iproute2.old/Makefile iproute2-2.6.29/Makefile
2 --- iproute2.old/Makefile 2009-11-11 22:05:21.251407668 +0100
3 +++ iproute2-2.6.29/Makefile 2009-11-11 22:07:09.891833516 +0100
11 -DOCDIR=/share/doc/iproute2
13 +DOCDIR=/usr/share/doc/iproute2
14 +MANDIR=/usr/share/man
18 # Path to db_185.h include
19 DBM_INCLUDE:=$(ROOTDIR)/usr/include
20 diff -Naur iproute2.old/tc/tc_util.c iproute2-2.6.29/tc/tc_util.c
21 --- iproute2.old/tc/tc_util.c 2009-11-11 22:05:21.298076943 +0100
22 +++ iproute2-2.6.29/tc/tc_util.c 2009-11-11 22:09:32.865152646 +0100
28 -#define LIBDIR "/usr/lib/"
30 +#define SHAREDIR "/usr/share"
33 const char *get_tc_lib(void)
36 lib_dir = getenv("TC_LIB_DIR");
38 - lib_dir = LIBDIR "/tc/";
39 + lib_dir = SHAREDIR "/tc/";
43 diff -Naur iproute2.old/netem/Makefile iproute2-2.6.35/netem/Makefile
44 --- iproute2.old/netem/Makefile 2010-08-06 11:30:48.640940183 +0200
45 +++ iproute2-2.6.35/netem/Makefile 2010-08-06 11:32:34.210908892 +0200
47 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
50 - mkdir -p $(DESTDIR)$(LIBDIR)/tc
51 + mkdir -p $(DESTDIR)$(SHAREDIR)/tc
52 for i in $(DISTDATA); \
53 - do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
54 + do install -m 644 $$i $(DESTDIR)$(SHAREDIR)/tc; \
58 diff -Naur iproute2.old/tc/Makefile iproute2-2.6.35/tc/Makefile
59 --- iproute2.old/tc/Makefile 2010-08-06 11:48:35.607472252 +0200
60 +++ iproute2-2.6.35/tc/Makefile 2010-08-06 11:49:36.977473380 +0200
65 - mkdir -p $(MODDESTDIR)
66 - install -m 0755 tc $(DESTDIR)$(SBINDIR)
68 - do install -m 755 $$i $(MODDESTDIR); \
70 - if [ ! -f $(MODDESTDIR)/m_ipt.so ]; then \
71 - if [ -f $(MODDESTDIR)/m_xt.so ]; \
72 - then ln -s m_xt.so $(MODDESTDIR)/m_ipt.so ; \
73 - elif [ -f $(MODDESTDIR)/m_xt_old.so ]; \
74 - then ln -s m_xt_old.so $(MODDESTDIR)/m_ipt.so ; \
77 + mkdir -p $(DESTDIR)$(LIBDIR)/tc
78 + install -m 0755 tc $(DESTDIR)$(SBINDIR)
80 + do install -m 755 $$i $(DESTDIR)$(LIBDIR)/tc; \
84 rm -f $(TCOBJ) $(TCLIB) libtc.a tc *.so emp_ematch.yacc.h; \