2010-11-08 14:46:05 +01:00
|
|
|
---
|
2012-11-14 01:25:11 +01:00
|
|
|
Makefile | 4 ++--
|
2010-11-08 14:46:05 +01:00
|
|
|
include/iptables.h | 2 +-
|
|
|
|
netem/Makefile | 6 ++++--
|
2012-11-14 01:25:11 +01:00
|
|
|
3 files changed, 7 insertions(+), 5 deletions(-)
|
2010-11-08 14:46:05 +01:00
|
|
|
|
2013-09-13 00:44:07 +02:00
|
|
|
Index: iproute2-3.11.0/Makefile
|
2010-11-08 14:46:05 +01:00
|
|
|
===================================================================
|
2013-09-13 00:44:07 +02:00
|
|
|
--- iproute2-3.11.0.orig/Makefile
|
|
|
|
+++ iproute2-3.11.0/Makefile
|
2012-11-14 01:25:11 +01:00
|
|
|
@@ -1,7 +1,7 @@
|
2010-11-08 14:46:05 +01:00
|
|
|
ROOTDIR=$(DESTDIR)
|
2012-05-24 21:38:11 +02:00
|
|
|
PREFIX=/usr
|
|
|
|
LIBDIR=$(PREFIX)/lib
|
2010-11-08 14:46:05 +01:00
|
|
|
-SBINDIR=/sbin
|
|
|
|
+SBINDIR=/usr/sbin
|
|
|
|
CONFDIR=/etc/iproute2
|
2012-05-24 21:38:11 +02:00
|
|
|
DATADIR=$(PREFIX)/share
|
2012-11-14 01:25:11 +01:00
|
|
|
DOCDIR=$(DATADIR)/doc/iproute2
|
2013-04-15 10:27:29 +02:00
|
|
|
@@ -33,7 +33,7 @@ CCOPTS = -O2
|
2013-09-13 00:44:07 +02:00
|
|
|
WFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes
|
2013-04-15 10:27:29 +02:00
|
|
|
WFLAGS += -Wmissing-declarations -Wold-style-definition
|
|
|
|
|
2012-05-24 21:38:11 +02:00
|
|
|
-CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
|
|
|
|
+CFLAGS = -DLIBDIR=\"${LIBDIR}\" $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
|
2009-08-13 23:25:48 +02:00
|
|
|
YACCFLAGS = -d -t -v
|
|
|
|
|
2012-09-10 03:14:07 +02:00
|
|
|
SUBDIRS=lib ip tc bridge misc netem genl man
|
2013-09-13 00:44:07 +02:00
|
|
|
Index: iproute2-3.11.0/include/iptables.h
|
2010-11-08 14:46:05 +01:00
|
|
|
===================================================================
|
2013-09-13 00:44:07 +02:00
|
|
|
--- iproute2-3.11.0.orig/include/iptables.h
|
|
|
|
+++ iproute2-3.11.0/include/iptables.h
|
2010-11-08 14:46:05 +01:00
|
|
|
@@ -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
|
2013-09-13 00:44:07 +02:00
|
|
|
Index: iproute2-3.11.0/netem/Makefile
|
2010-11-08 14:46:05 +01:00
|
|
|
===================================================================
|
2013-09-13 00:44:07 +02:00
|
|
|
--- iproute2-3.11.0.orig/netem/Makefile
|
|
|
|
+++ iproute2-3.11.0/netem/Makefile
|
2010-11-08 14:46:05 +01:00
|
|
|
@@ -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:
|