source:
patches/iproute2-2.6.29-1-libdir-1.patch@
8df8e62
Last change on this file since 8df8e62 was b347557, checked in by , 16 years ago | |
---|---|
|
|
File size: 2.7 KB |
-
include/iptables.h
Submitted By: Jim Gifford < jim at cross-lfs dot org> Date: 2009-02-08 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 Discovered tc directory is text files moved to /usr/share diff -Naur iproute2-2.6.28.orig/include/iptables.h iproute2-2.6.28/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 "/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-2.6.28
diff -Naur iproute2-2.6.28.orig/Makefile iproute2-2.6.28/Makefile
old new 4 4 CONFDIR=/etc/iproute2 5 5 DOCDIR=/share/doc/iproute2 6 6 MANDIR=/share/man 7 SHAREDIR=/usr/share 7 8 8 9 # Path to db_185.h include 9 10 DBM_INCLUDE:=/usr/include -
netem/Makefile
diff -Naur iproute2-2.6.28.orig/netem/Makefile iproute2-2.6.28/netem/Makefile
old new 20 20 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm 21 21 22 22 install: all 23 mkdir -p $(DESTDIR) /lib/tc23 mkdir -p $(DESTDIR)$(SHAREDIR)/tc 24 24 for i in $(DISTDATA); \ 25 do install -m 755 $$i $(DESTDIR) /lib/tc; \25 do install -m 755 $$i $(DESTDIR)$(SHAREDIR)/tc; \ 26 26 done 27 27 28 28 clean: -
iproute2-2.6.28
diff -Naur iproute2-2.6.28.orig/tc/Makefile iproute2-2.6.28/tc/Makefile
old new 75 75 $(AR) rcs $@ $(TCLIB) 76 76 77 77 install: all 78 mkdir -p $(DESTDIR)$( LIBDIR)/tc78 mkdir -p $(DESTDIR)$(SHAREDIR)/tc 79 79 install -m 0755 tc $(DESTDIR)$(SBINDIR) 80 80 for i in $(TCSO); \ 81 do install -m 755 $$i $(DESTDIR)$( LIBDIR)/tc; \81 do install -m 755 $$i $(DESTDIR)$(SHAREDIR)/tc; \ 82 82 done 83 83 84 84 clean: -
iproute2-2.6.28
diff -Naur iproute2-2.6.28.orig/tc/tc_util.c iproute2-2.6.28/tc/tc_util.c
old new 24 24 #include "utils.h" 25 25 #include "tc_util.h" 26 26 27 #ifndef LIBDIR28 #define LIBDIR "/usr/lib/"27 #ifndef SHAREDIR 28 #define SHAREDIR "/usr/share" 29 29 #endif 30 30 31 31 const char *get_tc_lib(void) … … 34 34 35 35 lib_dir = getenv("TC_LIB_DIR"); 36 36 if (!lib_dir) 37 lib_dir = LIBDIR "/tc/";37 lib_dir = SHAREDIR "/tc"; 38 38 39 39 return lib_dir; 40 40 }
Note:
See TracBrowser
for help on using the repository browser.