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

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

Correct iproute2-3.4.0-libdir-1.patch

  • 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
[78a403b]14--- iproute2-3.4.0.orig/Makefile 2012-05-21 21:12:19.000000000 +0000
[2920fa0]15+++ iproute2-3.4.0/Makefile 2012-09-16 00:43:20.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
25diff -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
[2920fa0]27+++ iproute2-3.4.0/include/iptables.h 2012-09-16 00:43:20.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
42diff -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
[2920fa0]44+++ iproute2-3.4.0/misc/arpd.c 2012-09-16 00:43:20.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;
Note: See TracBrowser for help on using the repository browser.