source:
patches/iproute2-3.4.0-libdir-1.patch@
0e1672e9
Last change on this file since 0e1672e9 was 06b2d12, checked in by , 12 years ago | |
---|---|
|
|
File size: 4.0 KB |
-
iproute2-3.4.0
Submitted By: Joe Ciccone <jciccone@gmail.com> Date: 14-06-2010 Initial Package Version: 2.6.18 Upstream Status: Unknown Origin: Joe Ciccone Description: This patch gives the ability to change the libdir. Updated for Iproute2-2.6.28 by Jim Gifford Updated for Iproute2-2.6.34 by Joe Ciccone Updated for Iproute2-2.6.37 by Joe Ciccone Renamed for Iproute2-2.6.38 by Jonathan Norman Rediffed for Iproute2-3.4.0 by William Harrington diff -Naur iproute2-3.4.0.orig/Makefile iproute2-3.4.0/Makefile
old new 13 13 14 14 SHARED_LIBS = y 15 15 16 DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\" 16 DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\" -DARPDDIR=\"$(ARPDDIR)\" 17 17 ifneq ($(SHARED_LIBS),y) 18 18 DEFINES+= -DNO_SHARED_LIBS 19 19 endif -
Makefile.orig
diff -Naur iproute2-3.4.0.orig/Makefile.orig iproute2-3.4.0/Makefile.orig
old new 1 ROOTDIR=$(DESTDIR) 2 PREFIX=/usr 3 LIBDIR=$(PREFIX)/lib 4 SBINDIR=/sbin 5 CONFDIR=/etc/iproute2 6 DATADIR=$(PREFIX)/share 7 DOCDIR=$(DATADIR)/doc/iproute2 8 MANDIR=$(DATADIR)/man 9 ARPDDIR=/var/lib/arpd 10 11 # Path to db_185.h include 12 DBM_INCLUDE:=$(ROOTDIR)/usr/include 13 14 SHARED_LIBS = y 15 16 DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\" 17 ifneq ($(SHARED_LIBS),y) 18 DEFINES+= -DNO_SHARED_LIBS 19 endif 20 21 DEFINES+=-DCONFDIR=\"$(CONFDIR)\" 22 23 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc) 24 LDLIBS=-lresolv 25 ADDLIB= 26 27 #options for decnet 28 ADDLIB+=dnet_ntop.o dnet_pton.o 29 30 #options for ipx 31 ADDLIB+=ipx_ntop.o ipx_pton.o 32 33 CC = gcc 34 HOSTCC = gcc 35 DEFINES += -D_GNU_SOURCE 36 CCOPTS = -O2 37 WFLAGS = -Wall -Wstrict-prototypes 38 CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) 39 YACCFLAGS = -d -t -v 40 41 SUBDIRS=lib ip tc misc netem genl man 42 43 LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a 44 LDLIBS += $(LIBNETLINK) 45 46 all: Config 47 @set -e; \ 48 for i in $(SUBDIRS); \ 49 do $(MAKE) $(MFLAGS) -C $$i; done 50 51 Config: 52 sh configure $(KERNEL_INCLUDE) 53 54 install: all 55 install -m 0755 -d $(DESTDIR)$(SBINDIR) 56 install -m 0755 -d $(DESTDIR)$(CONFDIR) 57 install -m 0755 -d $(DESTDIR)$(ARPDDIR) 58 install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples 59 install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv 60 install -m 0644 README.iproute2+tc $(shell find examples -maxdepth 1 -type f) \ 61 $(DESTDIR)$(DOCDIR)/examples 62 install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \ 63 $(DESTDIR)$(DOCDIR)/examples/diffserv 64 @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done 65 install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR) 66 67 snapshot: 68 echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \ 69 > include/SNAPSHOT.h 70 71 clean: 72 @for i in $(SUBDIRS) doc; \ 73 do $(MAKE) $(MFLAGS) -C $$i clean; done 74 75 clobber: 76 touch Config 77 $(MAKE) $(MFLAGS) clean 78 rm -f Config cscope.* 79 80 distclean: clobber 81 82 cscope: 83 cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc 84 85 .EXPORT_ALL_VARIABLES: -
include/iptables.h
diff -Naur iproute2-3.4.0.orig/include/iptables.h iproute2-3.4.0/include/iptables.h
old new 4 4 #include "iptables_common.h" 5 5 #include "libiptc/libiptc.h" 6 6 7 #ifndef LIBDIR 8 #define LIBDIR "/usr/lib" 9 #endif 10 7 11 #ifndef IPT_LIB_DIR 8 #define IPT_LIB_DIR "/usr/local/lib/iptables"12 #define IPT_LIB_DIR LIBDIR "/iptables" 9 13 #endif 10 14 11 15 #ifndef IPPROTO_SCTP -
iproute2-3.4.0
diff -Naur iproute2-3.4.0.orig/misc/arpd.c iproute2-3.4.0/misc/arpd.c
old new 40 40 int resolve_hosts; 41 41 42 42 DB *dbase; 43 char *dbname = "/var/lib/arpd/arpd.db";43 char *dbname = ARPDDIR "/arpd.db"; 44 44 45 45 int ifnum; 46 46 int *ifvec;
Note:
See TracBrowser
for help on using the repository browser.