|
@@ -6,6 +6,7 @@ option(USE_APPARMOR "Enable AppArmor profile" OFF)
|
6
|
6
|
|
7
|
7
|
set(CHROOT_DIR "${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}" CACHE PATH "Chroot jail for daemon")
|
8
|
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
|
11
|
find_program(HELP2MAN help2man DOC "path to help2man executable")
|
11
|
12
|
find_program(DD dd DOC "path to dd executable")
|
|
@@ -57,6 +58,6 @@ if(USE_APPARMOR)
|
57
|
58
|
endif()
|
58
|
59
|
|
59
|
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
|
62
|
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/postinstall.cmake")
|
62
|
63
|
|