cpack: Add Debian copyright file and Augeas license (#5951)

This commit is contained in:
Teddy Reed 2019-10-29 19:03:27 -04:00 committed by GitHub
parent b67736d390
commit b47e34936c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -149,6 +149,13 @@ function(generateInstallTargets)
COMPONENT osquery
FILES_MATCHING PATTERN "*.aug"
PATTERN "tests" EXCLUDE)
install(FILES "${augeas_lenses_path}/../COPYING" DESTINATION share/osquery/lenses COMPONENT osquery)
if("${PACKAGING_SYSTEM}" STREQUAL "DEB")
file(COPY "${CMAKE_SOURCE_DIR}/tools/deployment/copyright.debian" DESTINATION "${CMAKE_BINARY_DIR}/package/deb")
file(RENAME "${CMAKE_BINARY_DIR}/package/deb/copyright.debian" "${CMAKE_BINARY_DIR}/package/deb/copyright")
install(FILES "${CMAKE_BINARY_DIR}/package/deb/copyright" DESTINATION share/doc/osquery COMPONENT osquery)
endif()
file(COPY "${CMAKE_SOURCE_DIR}/packs" DESTINATION "${CMAKE_BINARY_DIR}/package/linux")
install(DIRECTORY "${CMAKE_BINARY_DIR}/package/linux/packs" DESTINATION share/osquery COMPONENT osquery)

View File

@ -0,0 +1,11 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: osquery
Source: https://github.com/osquery/osquery
Files: *
License: Apache 2.0 or GPL 2.0
Copyright: Copyright (C) 2014-present, Facebook, Inc.
Files: share/osquery/lenses/*
Copyright: Copyright (C) 2007-2016 David Lutterkort, Augeas Lenses authors.
License: LGPL-2.1+