Skip to content

Commit

Permalink
cpack: Add Debian copyright file and Augeas license (#5951)
Browse files Browse the repository at this point in the history
  • Loading branch information
theopolis authored Oct 29, 2019
1 parent b67736d commit b47e349
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions tools/deployment/copyright.debian
Original file line number Diff line number Diff line change
@@ -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+

0 comments on commit b47e349

Please sign in to comment.