mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
The symlink commands create absolute symlinks instead of relative.
This causes dangling links in case the package is installed using DESTDIR. Some package managers will report this as an error.
This commit is contained in:
parent
6d4662d4f7
commit
c4c9765e0b
4
Makefile
4
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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user