--- CMakeLists.txt.orig	2020-06-02 09:51:52 UTC
+++ CMakeLists.txt
@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
 
 INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
 
-SET( SYSCONFDIR /etc)
+SET( SYSCONFDIR ${CMAKE_INSTALL_PREFIX}/etc)
 SET( SYSTEMD_DIR /usr/lib/systemd/system)
 
 IF (NOT PYTHON_DESIRED)
@@ -25,7 +25,9 @@ MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL
 ADD_SUBDIRECTORY (dnf)
 ADD_SUBDIRECTORY (bin)
 ADD_SUBDIRECTORY (etc)
+if (FREEBSD_INSTALL_DOC)
 ADD_SUBDIRECTORY (doc)
+endif()
 ADD_SUBDIRECTORY (po)
 ENABLE_TESTING()
 ADD_SUBDIRECTORY (tests)
