]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
netem: fix installs of dist files
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Jun 2010 14:52:09 +0000 (14:52 +0000)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Sun, 1 Aug 2010 02:31:04 +0000 (19:31 -0700)
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>
netem/Makefile

index b6ccfc6a4d0c29dcc8f433acf55a252c869086fc..e52e125e3bef3d42f352fe962808f618b631541f 100644 (file)
@@ -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: