mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

There's been some wondering why kernel headers are required to compile this plugin as it's not providing a kernel module or otherwise provides functionality related to kernel APIs. AF_PACKET sockets are provided through user-space APIs. There may have been historical reasons, but let's move forward and remove the dependency. Fixes #29 #24
22 lines
634 B
CMake
22 lines
634 B
CMake
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
project(ZeekPluginAF_Packet)
|
|
|
|
include(ZeekPlugin)
|
|
|
|
zeek_plugin_begin(Zeek AF_Packet)
|
|
zeek_plugin_cc(src/Plugin.cc)
|
|
zeek_plugin_cc(src/AF_Packet.cc)
|
|
zeek_plugin_cc(src/RX_Ring.cc)
|
|
zeek_plugin_bif(src/af_packet.bif)
|
|
zeek_plugin_dist_files(zeekctl/af_packet.py README COPYING VERSION)
|
|
zeek_plugin_end()
|
|
|
|
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION LIMIT_COUNT 1)
|
|
|
|
if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
|
# Allows building rpm/deb packages via "make package" in build dir.
|
|
include(ConfigurePackaging)
|
|
ConfigurePackaging(${VERSION})
|
|
endif ()
|