source: patches/iproute2-3.3.0-libdir-1.patch@ a518847

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a518847 was 5ae576c8, checked in by William Harrington <kb0iic@…>, 12 years ago

Update iproute2-3.3.0-libdir-1.patch Description: header

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[00a531f6]1Submitted By: Joe Ciccone <jciccone@gmail.com>
[94909a8]2Date: 14-06-2010
[00a531f6]3Initial Package Version: 2.6.18
4Upstream Status: Unknown
5Origin: Joe Ciccone
6Description: 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
[94909a8]10 Renamed for Iproute2-2.6.38 by Jonathan Norman
[5ae576c8]11 Renamed for Iproute2-3.3.0 by William Harrington
[00a531f6]12
13diff -Naur iproute2-2.6.37.orig/Makefile iproute2-2.6.37/Makefile
14--- iproute2-2.6.37.orig/Makefile 2011-01-07 12:54:30.000000000 -0500
15+++ iproute2-2.6.37/Makefile 2011-01-08 19:22:59.954895722 -0500
16@@ -12,7 +12,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
25diff -Naur iproute2-2.6.37.orig/include/iptables.h iproute2-2.6.37/include/iptables.h
26--- iproute2-2.6.37.orig/include/iptables.h 2011-01-07 12:54:30.000000000 -0500
27+++ iproute2-2.6.37/include/iptables.h 2011-01-08 19:22:59.954895722 -0500
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
42diff -Naur iproute2-2.6.37.orig/misc/arpd.c iproute2-2.6.37/misc/arpd.c
43--- iproute2-2.6.37.orig/misc/arpd.c 2011-01-07 12:54:30.000000000 -0500
44+++ iproute2-2.6.37/misc/arpd.c 2011-01-08 19:22:59.954895722 -0500
45@@ -40,7 +40,7 @@
46 int resolve_hosts;
47
48 DB *dbase;
49-char *dbname = "/var/lib/arpd/arpd.db";
50+char *dbname = ARPDDIR "/arpd.db";
51
52 int ifnum;
53 int *ifvec;
Note: See TracBrowser for help on using the repository browser.