source: patches/iproute2-3.4.0-libdir-1.patch@ bf398d4

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

Update iproute2 patch for good, again.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[06b2d12]1Submitted By: Joe Ciccone <jciccone@gmail.com>
2Date: 14-06-2010
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
10 Renamed for Iproute2-2.6.38 by Jonathan Norman
11 Rediffed for Iproute2-3.4.0 by William Harrington
12
13diff -Naur iproute2-3.4.0.orig/Makefile iproute2-3.4.0/Makefile
[1463997]14--- iproute2-3.4.0.orig/Makefile 2012-10-25 19:59:31.824412361 +0000
15+++ iproute2-3.4.0/Makefile 2012-10-25 20:00:11.334366911 +0000
16@@ -12,7 +12,7 @@
[06b2d12]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-3.4.0.orig/include/iptables.h iproute2-3.4.0/include/iptables.h
[1463997]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-10-25 20:00:56.064367711 +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
42diff -Naur iproute2-3.4.0.orig/misc/arpd.c iproute2-3.4.0/misc/arpd.c
[1463997]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-10-25 20:01:19.474370303 +0000
[06b2d12]45@@ -40,7 +40,7 @@
46 int resolve_hosts;
47
[1463997]48 DB *dbase;
49-char *dbname = "/var/lib/arpd/arpd.db";
[78a403b]50+char *dbname = ARPDDIR "/arpd.db";
[06b2d12]51
[1463997]52 int ifnum;
53 int *ifvec;
Note: See TracBrowser for help on using the repository browser.