source:
patches/iproute2-2.6.22-070710-libdir-1.patch@
c30178f
Last change on this file since c30178f was 918a9d3, checked in by , 17 years ago | |
---|---|
|
|
File size: 3.3 KB |
-
iproute2-2.6.22-070710
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> Date: 2007-09-01 Upstream Status: Unknown Origin: Joe Ciccone Description: Changes the path of /usr/lib/tc to one defined in the Makefile. diff -Naur iproute2-2.6.22-070710.orig/include/iptables.h iproute2-2.6.22-070710/include/iptables.h
old new 5 5 #include "libiptc/libiptc.h" 6 6 7 7 #ifndef IPT_LIB_DIR 8 #define IPT_LIB_DIR "/usr/local/lib/iptables"8 #define IPT_LIB_DIR LIBDIR 9 9 #endif 10 10 11 11 #ifndef IPPROTO_SCTP -
iproute2-2.6.22-070710
diff -Naur iproute2-2.6.22-070710.orig/Makefile iproute2-2.6.22-070710/Makefile
old new 1 1 DESTDIR= 2 2 SBINDIR=/usr/sbin 3 LIBDIR=/usr/lib 4 VARLIB=/var/lib 3 5 CONFDIR=/etc/iproute2 4 6 DOCDIR=/usr/share/doc/iproute2 5 7 MANDIR=/usr/share/man … … 22 24 CC = gcc 23 25 HOSTCC = gcc 24 26 CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall 25 CFLAGS = $(CCOPTS) -I../include $(DEFINES)27 CFLAGS = -DLIBDIR=\"$(LIBDIR)\" -DVARLIB=\"$(VARLIB)\" $(CCOPTS) -I../include $(DEFINES) 26 28 YACCFLAGS = -d -t -v 27 29 28 30 LDLIBS += -L../lib -lnetlink -lutil -
iproute2-2.6.22-070710
diff -Naur iproute2-2.6.22-070710.orig/misc/arpd.c iproute2-2.6.22-070710/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 = VARLIB "/arpd/arpd.db"; 44 44 45 45 int ifnum; 46 46 int *ifvec; -
iproute2-2.6.22-070710
diff -Naur iproute2-2.6.22-070710.orig/netem/Makefile iproute2-2.6.22-070710/netem/Makefile
old new 4 4 HOSTCC ?= $(CC) 5 5 LDLIBS += -lm 6 6 7 LIBDIR = /usr/lib 8 7 9 all: $(DISTGEN) $(DISTDATA) 8 10 9 11 $(DISTGEN): … … 19 21 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm 20 22 21 23 install: all 22 mkdir -p $(DESTDIR)/ usr/lib/tc24 mkdir -p $(DESTDIR)/$(LIBDIR)/tc 23 25 for i in $(DISTDATA); \ 24 do install -m 755 $$i $(DESTDIR)/ usr/lib/tc; \26 do install -m 755 $$i $(DESTDIR)/$(LIBDIR)/tc; \ 25 27 done 26 28 27 29 clean: -
iproute2-2.6.22-070710
diff -Naur iproute2-2.6.22-070710.orig/tc/Makefile iproute2-2.6.22-070710/tc/Makefile
old new 69 69 $(AR) rcs $@ $(TCLIB) 70 70 71 71 install: all 72 mkdir -p $(DESTDIR)/ usr/lib/tc72 mkdir -p $(DESTDIR)/$(LIBDIR)/tc 73 73 install -m 0755 -s tc $(DESTDIR)$(SBINDIR) 74 74 for i in $(TCSO); \ 75 do install -m 755 -s $$i $(DESTDIR)/ usr/lib/tc; \75 do install -m 755 -s $$i $(DESTDIR)/$(LIBDIR)/tc; \ 76 76 done 77 77 78 78 clean: -
iproute2-2.6.22-070710
diff -Naur iproute2-2.6.22-070710.orig/tc/tc_util.c iproute2-2.6.22-070710/tc/tc_util.c
old new 30 30 31 31 lib_dir = getenv("TC_LIB_DIR"); 32 32 if (!lib_dir) 33 lib_dir = "/usr/lib/tc";33 lib_dir = LIBDIR "/tc"; 34 34 35 35 return lib_dir; 36 36 }
Note:
See TracBrowser
for help on using the repository browser.