Commit Graph

20 Commits

Author SHA1 Message Date
Mike Frysinger
1a7943bcf3 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>
2010-07-31 19:31:04 -07:00
Rafael Almeida
b514b3587e 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.
2008-07-25 13:40:19 -07:00
Bertrand Jacquin
3cc6232e08 netem: fix cross-compiling failure
The programs in netem are compiled and run on the build machine, but they
use the CFLAGS that are meant for the target system and often times, these
are incompatible.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-06-23 09:17:48 -07:00
Stephen Hemminger
81c61790d5 Eliminate trailing whitespace
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-13 17:05:50 -08:00
Stephen Hemminger
da7aea7946 Add ignore files to make using git easier
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 12:04:38 -07:00
Stephen Hemminger
ebfd0f3103 Added stats utility from netem 2006-06-15 16:22:09 -07:00
shemminger
319baacb12 Fix cc compiler flags in netem/Makefile 2006-03-14 19:43:59 +00:00
shemminger
7dae1706bb Add CCOPTS for netem stuff 2005-10-05 17:40:12 +00:00
shemminger
ce715cd94c Allow parallel make of netem directory.
Use HOSTCC when building local tools
2005-09-01 22:38:19 +00:00
shemminger
6864c1e789 Update to latest kernel headers.
Fix out of range on paretonormal
2005-08-08 20:24:41 +00:00
osdl.net!shemminger
f8f9de56f2 Switch to stack (rather than calloc) for tables.
(Logical change 1.176)
2005-03-30 18:11:49 +00:00
osdl.net!shemminger
6411e1f541 (Logical change 1.146) 2005-03-10 18:18:01 +00:00
osdl.net!shemminger
a399f40c46 Initial revision 2005-03-10 18:18:01 +00:00
osdl.net!shemminger
c2fdec53d0 Rename: tc/paretonormal.c -> netem/paretonormal.c
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
a59e8edafc Rename: tc/pareto.c -> netem/pareto.c
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
dfe6094d57 Rename: tc/normal.c -> netem/normal.c
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
b3f23c9091 Rename: tc/maketable.c -> netem/maketable.c
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
68a1ced053 Rename: netem/ping.trace -> netem/experimental.dat
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
eb1d6822e0 (Logical change 1.141) 2005-02-09 22:05:41 +00:00
osdl.net!shemminger
f84f9d0436 Initial revision 2005-02-09 22:05:41 +00:00