Commit 8b186b5
committed
cmake: allow overriding sysusers.d install directory
Make the systemd sysusers.d install directory configurable through the
`SYSUSERS_DIR` CMake cache variable.
The existing logic discovers `sysusersdir` from systemd's pkg-config data,
falling back to `/usr/lib/sysusers.d`. That preserves the right default for
system installs, but it does not let packagers redirect the file into a staged
install prefix.
Packaging systems often build into an isolated prefix or staging directory and
must not install files directly into /usr/lib. Other rdma-core install paths,
such as systemd service and udev rule directories, are already configurable.
Making `SYSUSERS_DIR` configurable follows the same pattern.
Signed-off-by: Peter Andreas Entschev <peter@entschev.com>1 parent 82ea449 commit 8b186b5
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
607 | 609 | | |
608 | 610 | | |
609 | 611 | | |
| |||
0 commit comments