From 7515c8aeec3f6e60aa7e97e6903f6306ca7af34e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 5 Nov 2022 23:30:53 +0100 Subject: Experimental systemd support. Signed-off-by: Toni Uhlig --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 69301cce6..172b0ffb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ option(ENABLE_SANITIZER "Enable ASAN/LSAN/UBSAN." OFF) option(ENABLE_SANITIZER_THREAD "Enable TSAN (does not work together with ASAN)." OFF) option(ENABLE_MEMORY_PROFILING "Enable dynamic memory tracking." OFF) option(ENABLE_ZLIB "Enable zlib support for nDPId (experimental)." OFF) +option(ENABLE_SYSTEMD "Install systemd components." OFF) option(BUILD_EXAMPLES "Build C examples." ON) option(BUILD_NDPI "Clone and build nDPI from github." OFF) if(BUILD_NDPI) @@ -324,6 +325,11 @@ if(BUILD_EXAMPLES) install(DIRECTORY examples/c-collectd/www DESTINATION share/nDPId/nDPIsrvd-collectd) endif() +if(ENABLE_SYSTEMD) + install(FILES packages/systemd/ndpisrvd.service DESTINATION lib/systemd/system) + install(FILES packages/systemd/ndpid@.service DESTINATION lib/systemd/system) +endif() + install(TARGETS nDPId DESTINATION sbin) install(TARGETS nDPIsrvd nDPId-test DESTINATION bin) install(FILES dependencies/nDPIsrvd.py examples/py-flow-dashboard/plotly_dash.py -- cgit v1.2.3