|
|
|
|
6
|
|
6
|
|
7
|
set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
|
7
|
set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
|
8
|
set(CONFIG_DIR "/etc/default" CACHE PATH "Location of configuration file")
|
8
|
set(CONFIG_DIR "/etc/default" CACHE PATH "Location of configuration file")
|
|
|
9
|
+set(DOC_DIR "share/doc/${PROJECT_NAME}" CACHE PATH "Path for documentation files")
|
9
|
|
10
|
|
10
|
find_program(HELP2MAN help2man DOC "path to help2man executable")
|
11
|
find_program(HELP2MAN help2man DOC "path to help2man executable")
|
11
|
find_program(DD dd DOC "path to dd executable")
|
12
|
find_program(DD dd DOC "path to dd executable")
|
|
|
|
|
57
|
endif()
|
58
|
endif()
|
58
|
|
59
|
|
59
|
install(TARGETS ${PROJECT_NAME} DESTINATION "sbin")
|
60
|
install(TARGETS ${PROJECT_NAME} DESTINATION "sbin")
|
60
|
-install(FILES README.md main.cf.ex DESTINATION "share/doc/${PROJECT_NAME}")
|
|
|
|
|
61
|
+install(FILES README.md main.cf.ex DESTINATION "${DOC_DIR}")
|
61
|
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
|
62
|
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
|
62
|
|
63
|
|