]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Makefile: use /usr/share/iproute2 for config files
authorAndrea Claudi <aclaudi@redhat.com>
Wed, 15 Nov 2023 17:25:35 +0000 (18:25 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 17 Nov 2023 03:21:52 +0000 (19:21 -0800)
commit962692356a1cc41932e43575f3c50927e455ab53
tree7a2b476adad1b759c9e078b287ff1943ba509396
parent22f27fcb13175882abbcfc6f1138687432a7f072
Makefile: use /usr/share/iproute2 for config files

According to FHS:

"/usr/lib includes object files and libraries. On some systems, it may
also include internal binaries that are not intended to be executed
directly by users or shell scripts."

A better directory to store config files is /usr/share:

"The /usr/share hierarchy is for all read-only architecture independent
data files.

This hierarchy is intended to be shareable among all architecture
platforms of a given OS; thus, for example, a site with i386, Alpha, and
PPC platforms might maintain a single /usr/share directory that is
centrally-mounted."

Accordingly, move configuration files to $(DATADIR)/iproute2.

Fixes: 946753a4459b ("Makefile: ensure CONF_USR_DIR honours the libdir config")
Reported-by: Luca Boccassi <luca.boccassi@gmail.com>
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Makefile