+set(CPACK_CHANGELOG_FILE "${CMAKE_SOURCE_DIR}/ChangeLog-1.1.md")
+
+set(CPACK_SOURCE_IGNORE_FILES "/[.]git/;/[.](idea|settings|c?project);~$;[.]log$;[.]bak$")
+
+set(CPACK_PACKAGE_FILE_NAME
+ "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
+
+set(CPACK_ARCHIVE_COMPONENT_INSTALL ${CPACK_COMPONENT_INSTALL})
+
+# dependencies
+if(HAVE_LIBSASL)
+ string(APPEND CPACK_PACKAGE_DEPENDS " libsasl2")
+endif()
+if(HAVE_TBB)
+ string(APPEND CPACK_PACKAGE_DEPENDS " tbb")
+endif()
+if(HAVE_LIBEVENT)
+ string(APPEND CPACK_PACKAGE_DEPENDS " libevent")
+endif()
+
+
+# DEBs
+if(EXISTS /usr/bin/dpkg)
+ cpack_include_if(DEB)
+endif()
+
+if(APPLE)
+endif()
+
+# BSDs
+if(CMAKE_SYSTEM_NAME MATCHES BSD)
+ cpack_include_if(BSD)
+endif()
+
+# RPMs
+if(EXISTS /usr/bin/dnf OR EXISTS /usr/bin/yum OR EXISTS /usr/bin/rpmbuild)
+ cpack_include_if(RPM)
+endif()