]> git.puffer.fish Git - matthieu/frr.git/commit
build: untangle sysconfdir & localstatedir
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 24 Jan 2024 18:32:10 +0000 (19:32 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 27 Jan 2024 18:01:19 +0000 (19:01 +0100)
commitff62df2e4484b9f89fea4ed736006c21f3a797cc
tree2664eb4ea9f7b2f0bd2fa5b725c66f4a16863d3e
parent27f6171a251ef24b435582638c95895c907aa31f
build: untangle sysconfdir & localstatedir

`--sysconfdir` should be `/etc` and `--localstatedir` should be `/var`.
The package-specific subdirectory should be added by configure, not
given by the user, to match established behavior by other packages.

Note that `--bindir`, `--sbindir`, `--libdir` and `--libexecdir` have
different established/expected behavior due to distro specific
multi-arch support.  That's why these are left unchanged.

The reason this is getting fixed now is that we need to use
`--localstatedir` for its actual value to put things in `/var/lib`.  As
it is now, being overloaded for `/run`, the configured `/var` path
becomes inaccessible.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Makefile.am
configure.ac
pkgsrc/bgpd.sh.in
pkgsrc/eigrpd.sh.in
pkgsrc/mgmtd.sh.in
pkgsrc/ospf6d.sh.in
pkgsrc/ospfd.sh.in
pkgsrc/ripd.sh.in
pkgsrc/ripngd.sh.in
pkgsrc/zebra.sh.in