Ticket #2324: iproute2-2.6.28-destdir_fix-1.patch

File iproute2-2.6.28-destdir_fix-1.patch, 1.5 KB (added by Marty Jack, 16 years ago)

Destination directory fixups

  • iproute2-2.6.28

    diff -Naur iproute2-2.6.28.orig/Makefile iproute2-2.6.28/Makefile
    old new  
    4242
    4343install: all
    4444        install -m 0755 -d $(DESTDIR)$(SBINDIR)
    45         install -m 0755 -d $(DESTDIR)$(CONFDIR)
     45        install -m 0755 -d $(CONFDIR)
    4646        install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples
    4747        install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv
    4848        install -m 0644 README.iproute2+tc $(shell find examples -maxdepth 1 -type f) \
     
    5050        install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \
    5151                $(DESTDIR)$(DOCDIR)/examples/diffserv
    5252        @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
    53         install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
     53        install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(CONFDIR)
    5454        install -m 0755 -d $(DESTDIR)$(MANDIR)/man8
    5555        install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8
    5656        ln -sf tc-bfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
  • iproute2-2.6.28

    diff -Naur iproute2-2.6.28.orig/tc/Makefile iproute2-2.6.28/tc/Makefile
    old new  
    7575        $(AR) rcs $@ $(TCLIB)
    7676
    7777install: all
    78         mkdir -p $(DESTDIR)$(LIBDIR)/tc
     78        mkdir -p $(LIBDIR)/tc
    7979        install -m 0755 tc $(DESTDIR)$(SBINDIR)
    8080        for i in $(TCSO); \
    81         do install -m 755 $$i $(DESTDIR)$(LIBDIR)/tc; \
     81        do install -m 755 $$i $(LIBDIR)/tc; \
    8282        done
    8383
    8484clean: