blob: 563a915cdbfa940999475becf24f6dcd766860d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
diff -Naur iproute2.old/Makefile iproute2-2.6.29/Makefile
--- iproute2.old/Makefile 2009-11-11 22:05:21.251407668 +0100
+++ iproute2-2.6.29/Makefile 2009-11-11 22:07:09.891833516 +0100
@@ -1,11 +1,12 @@
DESTDIR=/usr/
ROOTDIR=$(DESTDIR)
LIBDIR=/usr/lib/
-SBINDIR=/sbin
+SBINDIR=/usr/sbin
CONFDIR=/etc/iproute2
-DOCDIR=/share/doc/iproute2
-MANDIR=/share/man
+DOCDIR=/usr/share/doc/iproute2
+MANDIR=/usr/share/man
ARPDDIR=/var/lib/arpd
+SHAREDIR=/usr/share
# Path to db_185.h include
DBM_INCLUDE:=$(ROOTDIR)/usr/include
diff -Naur iproute2.old/netem/Makefile iproute2-2.6.29/netem/Makefile
--- iproute2.old/netem/Makefile 2009-11-11 22:05:21.284750207 +0100
+++ iproute2-2.6.29/netem/Makefile 2009-11-11 22:07:54.674736924 +0100
@@ -20,9 +20,9 @@
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
install: all
- mkdir -p $(DESTDIR)/lib/tc
+ mkdir -p $(DESTDIR)/${SHAREDIR}/tc
for i in $(DISTDATA); \
- do install -m 755 $$i $(DESTDIR)/lib/tc; \
+ do install -m 755 $$i $(DESTDIR)/${SHAREDIR}/tc; \
done
clean:
diff -Naur iproute2.old/tc/tc_util.c iproute2-2.6.29/tc/tc_util.c
--- iproute2.old/tc/tc_util.c 2009-11-11 22:05:21.298076943 +0100
+++ iproute2-2.6.29/tc/tc_util.c 2009-11-11 22:09:32.865152646 +0100
@@ -24,8 +24,8 @@
#include "utils.h"
#include "tc_util.h"
-#ifndef LIBDIR
-#define LIBDIR "/usr/lib/"
+#ifndef SHAREDIR
+#define SHAREDIR "/usr/share"
#endif
const char *get_tc_lib(void)
@@ -34,7 +34,7 @@
lib_dir = getenv("TC_LIB_DIR");
if (!lib_dir)
- lib_dir = LIBDIR "/tc/";
+ lib_dir = SHAREDIR "/tc/";
return lib_dir;
}
|