File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -553,6 +553,19 @@ find_package(Systemd)
553553include_directories (${SYSTEMD_INCLUDE_DIRS} )
554554RDMA_DoFixup ("${SYSTEMD_FOUND} " "systemd/sd-daemon.h" )
555555
556+ # https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
557+ set (SYSUSERS_DIR "" )
558+ if (NOT ${CMAKE_VERSION} VERSION_LESS "3.4" )
559+ pkg_check_modules (SYSTEMD_PC systemd QUIET )
560+ if (SYSTEMD_PC_FOUND)
561+ pkg_get_variable (SYSUSERS_DIR systemd sysusersdir )
562+ endif ()
563+ endif ()
564+ if ("${SYSUSERS_DIR} " STREQUAL "" )
565+ set (SYSUSERS_DIR "/usr/lib/sysusers.d" )
566+ endif ()
567+ install (FILES rdma-sysusers.conf DESTINATION "${SYSUSERS_DIR} " RENAME rdma.conf)
568+
556569# drm headers
557570
558571# Check if the headers have been installed by kernel-headers
Original file line number Diff line number Diff line change 11usr/lib/*/libibverbs*.so.*
2+ usr/lib/sysusers.d/rdma.conf
23usr/share/doc/rdma-core/libibverbs.md usr/share/doc/libibverbs1/
Original file line number Diff line number Diff line change 1+ g rdma
Original file line number Diff line number Diff line change 604604%{_libdir}/libmlx4.so.*
605605%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver
606606%doc %{_docdir}/%{name}/libibverbs.md
607+ %{_prefix}/lib/sysusers.d/rdma.conf
607608
608609%files -n libibverbs-utils
609610%{_bindir}/ibv_*
Original file line number Diff line number Diff line change 724724%doc %{_docdir }/%{name }-%{version }/rxe.md
725725%doc %{_docdir }/%{name }-%{version }/tag_matching.md
726726%{_mandir }/man7/rxe*
727+ %{_prefix }/lib/sysusers.d/rdma.conf
727728
728729%files -n libibnetdisc%{ibnetdisc_major }
729730%{_libdir }/libibnetdisc.so.*
You can’t perform that action at this time.
0 commit comments