summaryrefslogtreecommitdiff
path: root/netem
diff options
context:
space:
mode:
authorRafael Almeida <rafaelc@dcc.ufmg.br>2008-06-01 21:33:44 -0300
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-25 13:40:19 -0700
commitb514b3587ee56552fcc87a066c955a7ff4f55d6f (patch)
treed9614f89044a3458b22b69b4f54afc87963cc9ca /netem
parent6579feeac4ccc0f087fa402486b3b2fcbcabc77f (diff)
downloadiproute2-b514b3587ee56552fcc87a066c955a7ff4f55d6f.tar.gz
Fixed installation when changing DESTDIR
After changing the DESTDIR the installated binaries have some issues due to hard coded paths. For example, using distributions on NetEm would segfault. I've changed iplink.c and tc_util.c so they are now aware of DESTDIR. Along with that change I needed to change the main Makefile so it defines the DESTDIR macro when calling gcc. I also changed the paths so that during the installation sbin, etc, share and lib directories are created directly inside of the DESTDIR, instead of creating a usr directory inside that. That's the behaviour of most packages out there, so I think most users will be expecting that to happen.
Diffstat (limited to 'netem')
-rw-r--r--netem/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/netem/Makefile b/netem/Makefile
index 2d7d68bb..b6ccfc6a 100644
--- a/netem/Makefile
+++ b/netem/Makefile
@@ -20,9 +20,9 @@ stats: stats.c
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
install: all
- mkdir -p $(DESTDIR)/usr/lib/tc
+ mkdir -p $(DESTDIR)/lib/tc
for i in $(DISTDATA); \
- do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
+ do install -m 755 $$i $(DESTDIR)/lib/tc; \
done
clean: