mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 01:55:20 +00:00
cpack: Add Debian copyright file and Augeas license (#5951)
This commit is contained in:
parent
b67736d390
commit
b47e34936c
@ -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)
|
||||
|
11
tools/deployment/copyright.debian
Normal file
11
tools/deployment/copyright.debian
Normal 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+
|
Loading…
Reference in New Issue
Block a user