summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-06-09 14:52:09 +0000
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-31 19:31:04 -0700
commit1a7943bcf3edbe160747eee6d2037f5da1af6502 (patch)
tree2fb4f6e00eb0dd9ee460d99c84b458c107b726a4
parent4b45abd1f000f62df9b624e393d9f3d62751a266 (diff)
netem: fix installs of dist files
The tc program searches LIBDIR by default for the .dist files, and that defaults to /usr/lib. But the netem subdir has /lib/ hardcoded which means the default build+install results in the files not being found. Further, these are plain text files which are read at runtime, so it doesn't make sense to give them executable bits. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--netem/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/netem/Makefile b/netem/Makefile
index b6ccfc6a..e52e125e 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)/lib/tc
+ mkdir -p $(DESTDIR)$(LIBDIR)/tc
for i in $(DISTDATA); \
- do install -m 755 $$i $(DESTDIR)/lib/tc; \
+ do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
done
clean: