[06b2d12] | 1 | Submitted By: Joe Ciccone <jciccone@gmail.com>
|
---|
| 2 | Date: 14-06-2010
|
---|
| 3 | Initial Package Version: 2.6.18
|
---|
| 4 | Upstream Status: Unknown
|
---|
| 5 | Origin: Joe Ciccone
|
---|
| 6 | Description: This patch gives the ability to change the libdir.
|
---|
| 7 | Updated for Iproute2-2.6.28 by Jim Gifford
|
---|
| 8 | Updated for Iproute2-2.6.34 by Joe Ciccone
|
---|
| 9 | Updated for Iproute2-2.6.37 by Joe Ciccone
|
---|
| 10 | Renamed for Iproute2-2.6.38 by Jonathan Norman
|
---|
| 11 | Rediffed for Iproute2-3.4.0 by William Harrington
|
---|
| 12 |
|
---|
| 13 | diff -Naur iproute2-3.4.0.orig/Makefile iproute2-3.4.0/Makefile
|
---|
[78a403b] | 14 | --- iproute2-3.4.0.orig/Makefile 2012-05-21 21:12:19.000000000 +0000
|
---|
| 15 | +++ iproute2-3.4.0/Makefile 2012-09-14 14:10:33.000000000 +0000
|
---|
[06b2d12] | 16 | @@ -13,7 +13,7 @@
|
---|
| 17 |
|
---|
| 18 | SHARED_LIBS = y
|
---|
| 19 |
|
---|
| 20 | -DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\"
|
---|
| 21 | +DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\" -DARPDDIR=\"$(ARPDDIR)\"
|
---|
| 22 | ifneq ($(SHARED_LIBS),y)
|
---|
| 23 | DEFINES+= -DNO_SHARED_LIBS
|
---|
| 24 | endif
|
---|
| 25 | diff -Naur iproute2-3.4.0.orig/include/iptables.h iproute2-3.4.0/include/iptables.h
|
---|
[78a403b] | 26 | --- iproute2-3.4.0.orig/include/iptables.h 2012-05-21 21:12:19.000000000 +0000
|
---|
| 27 | +++ iproute2-3.4.0/include/iptables.h 2012-09-14 14:10:33.000000000 +0000
|
---|
[06b2d12] | 28 | @@ -4,8 +4,12 @@
|
---|
| 29 | #include "iptables_common.h"
|
---|
| 30 | #include "libiptc/libiptc.h"
|
---|
| 31 |
|
---|
| 32 | +#ifndef LIBDIR
|
---|
| 33 | +#define LIBDIR "/usr/lib"
|
---|
| 34 | +#endif
|
---|
| 35 | +
|
---|
| 36 | #ifndef IPT_LIB_DIR
|
---|
| 37 | -#define IPT_LIB_DIR "/usr/local/lib/iptables"
|
---|
| 38 | +#define IPT_LIB_DIR LIBDIR "/iptables"
|
---|
| 39 | #endif
|
---|
| 40 |
|
---|
| 41 | #ifndef IPPROTO_SCTP
|
---|
| 42 | diff -Naur iproute2-3.4.0.orig/misc/arpd.c iproute2-3.4.0/misc/arpd.c
|
---|
[78a403b] | 43 | --- iproute2-3.4.0.orig/misc/arpd.c 2012-05-21 21:12:19.000000000 +0000
|
---|
| 44 | +++ iproute2-3.4.0/misc/arpd.c 2012-09-14 14:10:33.000000000 +0000
|
---|
[06b2d12] | 45 | @@ -40,7 +40,7 @@
|
---|
| 46 | int resolve_hosts;
|
---|
| 47 |
|
---|
[78a403b] | 48 | DB *dbase;
|
---|
| 49 | -char *dbname = "/var/lib/arpd/arpd.db";
|
---|
| 50 | +char *dbname = ARPDDIR "/arpd.db";
|
---|
[06b2d12] | 51 |
|
---|
[78a403b] | 52 | int ifnum;
|
---|
| 53 | int *ifvec;
|
---|