]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
The symlink commands create absolute symlinks instead of relative.
authorshemminger <shemminger>
Thu, 23 Jun 2005 17:39:57 +0000 (17:39 +0000)
committershemminger <shemminger>
Thu, 23 Jun 2005 17:39:57 +0000 (17:39 +0000)
This causes dangling links in case the package is installed using
DESTDIR. Some package managers will report this as an error.

Makefile
misc/Makefile

index 21ff831c8dfc5233673e8100833c85c502a1a6d0..ac58cd97e52f2287198599541c21c0683562b6e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,8 +51,8 @@ install: all
        install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
        install -m 0755 -d $(DESTDIR)$(MANDIR)/man8
        install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8
-       ln -sf $(MANDIR)/man8/tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8
-       ln -sf $(MANDIR)/man8/tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
+       ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8
+       ln -sf tc-pbfifo.8  $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8
        install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
        install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
 
index 2ddf950be90952368cde9819b957769b7b4dfb8f..bda37e5dd92376217b5d46d28f7d73d5111b3758 100644 (file)
@@ -28,8 +28,8 @@ lnstat: $(LNSTATOBJ)
 
 install: all
        install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
-       ln -sf $(SBINDIR)/lnstat $(DESTDIR)$(SBINDIR)/rtstat
-       ln -sf $(SBINDIR)/lnstat $(DESTDIR)$(SBINDIR)/ctstat
+       ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
+       ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
 
 clean:
        rm -f *.o $(TARGETS) ssfilter.c