62cdfc3d16
This adds basic systemd support, incl. socket activation. If systemd build is disabled, there won't be any sign of it neither during build nor after. If systemd build is enabled (default), but systemd is not available, no systemd stuff is installed, so there is no impact whatsoever.
7 lines
354 B
CMake
7 lines
354 B
CMake
CONFIGURE_FILE(ubus.socket.in ubus.socket)
|
|
CONFIGURE_FILE(ubus.service.in ubus.service)
|
|
|
|
# Cmakes pkgconfig support is very limited, so for now just hardcode
|
|
SET(SYSTEMD_SYSUNIT_DIR "${SYSTEMD_PREFIX}/lib/systemd/system")
|
|
INSTALL(FILES ${CMAKE_BINARY_DIR}/systemd/ubus.socket ${CMAKE_BINARY_DIR}/systemd/ubus.service
|
|
DESTINATION ${SYSTEMD_SYSUNIT_DIR})
|