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>
This commit is contained in:
Mike Frysinger 2010-06-09 14:52:09 +00:00 committed by Stephen Hemminger
parent 4b45abd1f0
commit 1a7943bcf3

View File

@ -20,9 +20,9 @@ stats: stats.c
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
install: all install: all
mkdir -p $(DESTDIR)/lib/tc mkdir -p $(DESTDIR)$(LIBDIR)/tc
for i in $(DISTDATA); \ for i in $(DISTDATA); \
do install -m 755 $$i $(DESTDIR)/lib/tc; \ do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
done done
clean: clean: