mirror of
				https://github.com/falcosecurity/falco.git
				synced 2025-11-03 18:59:53 +00:00 
			
		
		
		
	Add a cmake module "plugins" that does the following: - Downloads/installs the plugins artifacts from a known tag - Copies the resulting cloudtrail/json shared libraries to CMAKE_CURRENT_BINARY_DIR/plugins - Installs them to FALCO_SHARE_DIR/plugins The default config will define the plugins but they will be disabled by default. Co-authored-by: Leonardo Grasso <me@leonardograsso.com> Co-authored-by: Loris Degioanni <loris@sysdig.com> Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
#
 | 
						|
# Copyright (C) 2021 The Falco Authors.
 | 
						|
#
 | 
						|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 | 
						|
# the License. You may obtain a copy of the License at
 | 
						|
#
 | 
						|
# http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
#
 | 
						|
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
 | 
						|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 | 
						|
# specific language governing permissions and limitations under the License.
 | 
						|
#
 | 
						|
 | 
						|
include(ExternalProject)
 | 
						|
 | 
						|
set(PLUGINS_VERSION "0.1.0-rc1-28-g019437e")
 | 
						|
 | 
						|
ExternalProject_Add(
 | 
						|
  cloudtrail-plugin
 | 
						|
  URL "https://download.falco.org/plugins/dev/cloudtrail-${PLUGINS_VERSION}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz"
 | 
						|
  URL_HASH "SHA256=ad9692957c5435238e07d1625e1b247eabe98b85f54de9218367fdd73a6f3f0b"
 | 
						|
  CONFIGURE_COMMAND ""
 | 
						|
  BUILD_COMMAND ""
 | 
						|
  INSTALL_COMMAND "")
 | 
						|
 | 
						|
install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-plugin-prefix/src/cloudtrail-plugin/libcloudtrail.so" DESTINATION "${FALCO_PLUGINS_DIR}")
 | 
						|
 | 
						|
ExternalProject_Add(
 | 
						|
  json-plugin
 | 
						|
  URL "https://download.falco.org/plugins/dev/json-${PLUGINS_VERSION}-${CMAKE_HOST_SYSTEM_PROCESSOR}.tar.gz"
 | 
						|
  URL_HASH "SHA256=721ea5226b0f623915d0d5c34870589ad33a8ff795b0daa1af72f21a67430077"
 | 
						|
  CONFIGURE_COMMAND ""
 | 
						|
  BUILD_COMMAND ""
 | 
						|
  INSTALL_COMMAND "")
 | 
						|
 | 
						|
install(FILES "${PROJECT_BINARY_DIR}/json-plugin-prefix/src/json-plugin/libjson.so" DESTINATION "${FALCO_PLUGINS_DIR}")
 |