2010-11-08 14:46:05 +01:00
|
|
|
---
|
|
|
|
Makefile | 8 ++++----
|
|
|
|
include/iptables.h | 2 +-
|
|
|
|
netem/Makefile | 6 ++++--
|
|
|
|
3 files changed, 9 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
Index: Makefile
|
|
|
|
===================================================================
|
|
|
|
--- Makefile.orig
|
|
|
|
+++ Makefile
|
|
|
|
@@ -1,10 +1,10 @@
|
|
|
|
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/packages/iproute2
|
|
|
|
+MANDIR=/usr/share/man
|
|
|
|
ARPDDIR=/var/lib/arpd
|
2009-08-13 23:25:48 +02:00
|
|
|
|
2010-11-08 14:46:05 +01:00
|
|
|
# Path to db_185.h include
|
|
|
|
@@ -30,7 +30,7 @@ ADDLIB+=ipx_ntop.o ipx_pton.o
|
2009-08-13 23:25:48 +02:00
|
|
|
CC = gcc
|
|
|
|
HOSTCC = gcc
|
|
|
|
CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
|
|
|
|
-CFLAGS = $(CCOPTS) -I../include $(DEFINES)
|
|
|
|
+CFLAGS = -DLIBDIR=\"$(LIBDIR)\" $(CCOPTS) -I../include $(DEFINES)
|
|
|
|
YACCFLAGS = -d -t -v
|
|
|
|
|
2011-07-10 19:14:43 +02:00
|
|
|
SUBDIRS=lib ip tc misc netem genl
|
2010-11-08 14:46:05 +01:00
|
|
|
Index: include/iptables.h
|
|
|
|
===================================================================
|
|
|
|
--- include/iptables.h.orig
|
|
|
|
+++ include/iptables.h
|
|
|
|
@@ -5,7 +5,7 @@
|
|
|
|
#include "libiptc/libiptc.h"
|
|
|
|
|
|
|
|
#ifndef IPT_LIB_DIR
|
|
|
|
-#define IPT_LIB_DIR "/usr/local/lib/iptables"
|
|
|
|
+#define IPT_LIB_DIR LIBDIR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef IPPROTO_SCTP
|
|
|
|
Index: netem/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- netem/Makefile.orig
|
|
|
|
+++ netem/Makefile
|
|
|
|
@@ -5,6 +5,8 @@ HOSTCC ?= $(CC)
|
2009-08-13 23:25:48 +02:00
|
|
|
CCOPTS = $(CBUILD_CFLAGS)
|
|
|
|
LDLIBS += -lm
|
|
|
|
|
|
|
|
+LIBDIR = /usr/lib
|
|
|
|
+
|
|
|
|
all: $(DISTGEN) $(DISTDATA)
|
|
|
|
|
|
|
|
$(DISTGEN):
|
2010-11-08 14:46:05 +01:00
|
|
|
@@ -20,9 +22,9 @@ stats: stats.c
|
2009-08-13 23:25:48 +02:00
|
|
|
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
|
|
|
|
|
|
|
|
install: all
|
2010-11-08 14:46:05 +01:00
|
|
|
- mkdir -p $(DESTDIR)$(LIBDIR)/tc
|
2009-08-13 23:25:48 +02:00
|
|
|
+ mkdir -p $(DESTDIR)/usr/share/tc
|
|
|
|
for i in $(DISTDATA); \
|
2010-11-08 14:46:05 +01:00
|
|
|
- do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
|
|
|
|
+ do install -m 644 $$i $(DESTDIR)/usr/share/tc; \
|
2009-08-13 23:25:48 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|