diff -ur a/stubby/CMakeLists.txt b/stubby/CMakeLists.txt --- a/stubby/CMakeLists.txt 2024-10-14 20:08:06.950985143 +0200 +++ b/stubby/CMakeLists.txt 2024-10-14 20:09:29.408454887 +0200 @@ -58,13 +58,6 @@ else () set(RUNSTATEDIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/run") endif () -install(DIRECTORY - DESTINATION ${RUNSTATEDIR} - DIRECTORY_PERMISSIONS - OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE - ) set(STUBBYCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/stubby") find_package(Libyaml REQUIRED) @@ -187,8 +180,8 @@ if (ENABLE_WINDOWS_SERVICE) install(TARGETS stubres LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif () -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/stubby.1 DESTINATION share/man/man1) -install(FILES AUTHORS COPYING ChangeLog NEWS README.md DESTINATION share/doc/stubby) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/stubby.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +install(FILES AUTHORS COPYING ChangeLog NEWS README.md DESTINATION ${CMAKE_INSTALL_DOCDIR}/stubby) # Ensure the file gets CRLF line endings on Windows. file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stubby.yml INPUT ${CMAKE_CURRENT_SOURCE_DIR}/stubby.yml.example)