0
0
mirror of https://github.com/netdata/netdata.git synced 2024-11-21 15:28:05 +00:00
netdata_netdata/packaging/cmake/Modules/Packaging.cmake
Austin S. Hemmelgarn acf5adced8
Un-vendor proprietary dashboard code. (#18437)
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-10-22 10:52:17 +03:00

517 lines
18 KiB
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# CPack options
#
if(NETDATA_VERSION_DESCR STREQUAL "N/A")
set(CPACK_PACKAGE_VERSION ${NETDATA_VERSION_MAJOR}.${NETDATA_VERSION_MINOR}.${NETDATA_VERSION_PATCH})
else()
set(CPACK_PACKAGE_VERSION ${NETDATA_VERSION_MAJOR}.${NETDATA_VERSION_MINOR}.${NETDATA_VERSION_PATCH}-${NETDATA_VERSION_TWEAK}-${NETDATA_VERSION_DESCR})
endif()
set(CPACK_THREADS 0)
set(CPACK_STRIP_FILES NO)
set(CPACK_DEBIAN_DEBUGINFO_PACKAGE NO)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)
set(CPACK_PACKAGING_INSTALL_PREFIX "/")
set(CPACK_PACKAGE_VENDOR "Netdata Inc.")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "netdata")
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/packages")
# to silence lintian
set(CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE)
#
# Debian options
#
set(CPACK_DEB_COMPONENT_INSTALL YES)
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS YES)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Netdata Builder <bot@netdata.cloud>")
#
# netdata
#
set(CPACK_COMPONENT_NETDATA_DESCRIPTION
"real-time charts for system monitoring
Netdata is a daemon that collects data in realtime (per second)
and presents a web site to view and analyze them. The presentation
is also real-time and full of interactive charts that precisely
render all collected values.")
set(CPACK_DEBIAN_NETDATA_PACKAGE_NAME "netdata")
set(CPACK_DEBIAN_NETDATA_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_NETDATA_PACKAGE_PREDEPENDS "adduser, libcap2-bin")
set(CPACK_DEBIAN_NETDATA_PACKAGE_SUGGESTS
"netdata-plugin-cups, netdata-plugin-freeipmi")
set(CPACK_DEBIAN_NETDATA_PACKAGE_RECOMMENDS
"netdata-plugin-systemd-journal, \
netdata-plugin-network-viewer")
set(CPACK_DEBIAN_NETDATA_PACKAGE_CONFLICTS
"netdata-core, netdata-plugins-bash, netdata-plugins-python, netdata-web")
if(ENABLE_DASHBOARD)
list(APPEND _main_deps "netdata-dashboard")
endif()
if(ENABLE_PLUGIN_CHARTS)
list(APPEND _main_deps "netdata-plugin-chartsd")
endif()
if(ENABLE_PLUGIN_PYTHON)
list(APPEND _main_deps "netdata-plugin-pythond")
endif()
if(ENABLE_PLUGIN_APPS)
list(APPEND _main_deps "netdata-plugin-apps")
endif()
if(ENABLE_PLUGIN_GO)
list(APPEND _main_deps "netdata-plugin-go")
endif()
if(ENABLE_PLUGIN_DEBUGFS)
list(APPEND _main_deps "netdata-plugin-debugfs")
endif()
if(ENABLE_PLUGIN_NFACCT)
list(APPEND _main_deps "netdata-plugin-nfacct")
endif()
if(ENABLE_PLUGIN_SLABINFO)
list(APPEND _main_deps "netdata-plugin-slabinfo")
endif()
if(ENABLE_PLUGIN_PERF)
list(APPEND _main_deps "netdata-plugin-perf")
endif()
if(ENABLE_PLUGIN_EBPF)
list(APPEND _main_deps "netdata-plugin-ebpf")
endif()
list(JOIN _main_deps ", " CPACK_DEBIAN_NETDATA_PACKAGE_DEPENDS)
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/netdata/conffiles;"
"${PKG_FILES_PATH}/deb/netdata/preinst"
"${PKG_FILES_PATH}/deb/netdata/postinst"
"${PKG_FILES_PATH}/deb/netdata/postrm")
set(CPACK_DEBIAN_NETDATA_DEBUGINFO_PACKAGE On)
#
# dashboard
#
set(CPACK_COMPONENT_DASHBOARD_DEPENDS "netdata")
set(CPACK_COMPONENT_DASHBOARD_DESCRIPTION
"The local dashboard for the Netdata Agent.
This allows access to the dashboard on the local node without internet access.")
set(CPACK_DEBIAN_DASHBOARD_PACKAGE_NAME "netdata-dashboard")
set(CPACK_DEBIAN_DASHBOARD_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_DASHBOARD_PACKAGE_CONFLICTS "netdata (<< ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_DASHBOARD_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_DASHBOARD_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-apps/preinst"
"${PKG_FILES_PATH}/deb/plugin-apps/postinst"
"${PKG_FILES_PATH}/deb/plugin-apps/postrm")
set(CPACK_DEBIAN_DASHBOARD_DEBUGINFO_PACKAGE Off)
#
# apps.plugin
#
set(CPACK_COMPONENT_PLUGIN-APPS_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-APPS_DESCRIPTION
"The per-application metrics collector plugin for the Netdata Agent
This plugin allows the Netdata Agent to collect per-application and
per-user metrics without using cgroups.")
set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_NAME "netdata-plugin-apps")
set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-apps/preinst;"
"${PKG_FILES_PATH}/deb/plugin-apps/postinst")
set(CPACK_DEBIAN_PLUGIN-APPS_DEBUGINFO_PACKAGE On)
#
# charts.d.plugin
#
set(CPACK_COMPONENT_PLUGIN-CHARTSD_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-CHARTSD_DESCRIPTION
"The charts.d metrics collection plugin for the Netdata Agent
This plugin adds a selection of additional collectors written in shell
script to the Netdata Agent. It includes collectors for APCUPSD,
LibreSWAN, OpenSIPS, and Wireless access point statistics.")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_NAME "netdata-plugin-chartsd")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_DEPENDS "bash")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_ARCHITECTURE "all")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_SUGGESTS "apcupsd, iw, sudo")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-chartsd/preinst;"
"${PKG_FILES_PATH}/deb/plugin-chartsd/postinst")
set(CPACK_DEBIAN_PLUGIN-CHARTSD_DEBUGINFO_PACKAGE Off)
#
# cups.plugin
#
set(CPACK_COMPONENT_PLUGIN-CUPS_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-CUPS_DESCRIPTION
"The CUPS metrics collection plugin for the Netdata Agent
This plugin allows the Netdata Agent to collect metrics from the Common UNIX Printing System.")
set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_NAME "netdata-plugin-cups")
set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-cups/preinst;"
"${PKG_FILES_PATH}/deb/plugin-cups/postinst")
set(CPACK_DEBIAN_PLUGIN-CUPS_DEBUGINFO_PACKAGE On)
#
# debugfs.plugin
#
set(CPACK_COMPONENT_PLUGIN-DEBUGFS_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-DEBUGFS_DESCRIPTION
"The debugfs metrics collector for the Netdata Agent
This plugin allows the Netdata Agent to collect Linux kernel metrics
exposed through debugfs.")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_NAME "netdata-plugin-debugfs")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-debugfs/preinst;"
"${PKG_FILES_PATH}/deb/plugin-debugfs/postinst")
set(CPACK_DEBIAN_PLUGIN-DEBUGFS_DEBUGINFO_PACKAGE On)
#
# ebpf.plugin
#
set(CPACK_COMPONENT_PLUGIN-EBPF_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-EBPF_DESCRIPTION
"The eBPF metrics collection plugin for the Netdata Agent
This plugin allows the Netdata Agent to use eBPF code to collect more
detailed kernel-level metrics for the system.")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_NAME "netdata-plugin-ebpf")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_RECOMMENDS "netdata-plugin-apps (= ${CPACK_PACKAGE_VERSION}), netdata-ebpf-code-legacy (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-ebpf/preinst;"
"${PKG_FILES_PATH}/deb/plugin-ebpf/postinst")
set(CPACK_DEBIAN_PLUGIN-EBPF_DEBUGINFO_PACKAGE On)
#
# ebpf-code-legacy
#
set(CPACK_COMPONENT_EBPF-CODE-LEGACY_DEPENDS "netdata")
set(CPACK_COMPONENT_EBPF-CODE-LEGACY_DESCRIPTION
"Compiled eBPF legacy code for the Netdata eBPF plugin
This package provides the pre-compiled eBPF legacy code for use by
the Netdata eBPF plugin. This code is only needed when using the eBPF
plugin with kernel that do not include BTF support (mostly kernel
versions lower than 5.10).")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_NAME "netdata-ebpf-code-legacy")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_RECOMMENDS "netdata-plugin-ebpf (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/ebpf-code-legacy/preinst;"
"${PKG_FILES_PATH}/deb/ebpf-code-legacy/postinst")
set(CPACK_DEBIAN_EBPF-CODE-LEGACY_DEBUGINFO_PACKAGE Off)
#
# freeipmi.plugin
#
set(CPACK_COMPONENT_PLUGIN-FREEIPMI_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-FREEIPMI_DESCRIPTION
"The FreeIPMI metrics collection plugin for the Netdata Agent
This plugin allows the Netdata Agent to collect metrics from hardware
using FreeIPMI.")
set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_NAME "netdata-plugin-freeipmi")
set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-freeipmi/preinst;"
"${PKG_FILES_PATH}/deb/plugin-freeipmi/postinst")
set(CPACK_DEBIAN_PLUGIN-FREEIPMI_DEBUGINFO_PACKAGE On)
#
# go.plugin
#
set(CPACK_COMPONENT_PLUGIN-GO_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-GO_DESCRIPTION
"The go.d metrics collection plugin for the Netdata Agent
This plugin adds a selection of additional collectors written in Go to
the Netdata Agent. A significant percentage of the application specific
collectors provided by Netdata are part of this plugin, so most users
will want it installed.")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_NAME "netdata-plugin-go")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_SUGGESTS "nvme-cli")
set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-go/preinst;"
"${PKG_FILES_PATH}/deb/plugin-go/postinst")
set(CPACK_DEBIAN_PLUGIN-GO_DEBUGINFO_PACKAGE Off)
#
# network-viewer.plugin
#
# TODO: recommends netdata-plugin-ebpf
set(CPACK_COMPONENT_PLUGIN-NETWORK-VIEWER_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-NETWORK-VIEWER_DESCRIPTION
"The network viewer plugin for the Netdata Agent
This plugin allows the Netdata Agent to provide network connection
mapping functionality for use in Netdata Cloud.")
set(CPACK_DEBIAN_PLUGIN-NETWORK_VIEWER_PACKAGE_NAME "netdata-plugin-network-viewer")
set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_RECOMMENDS "netdata-plugin-ebpf (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-network-viewer/preinst;"
"${PKG_FILES_PATH}/deb/plugin-network-viewer/postinst")
set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_DEBUGINFO_PACKAGE On)
#
# nfacct.plugin
#
set(CPACK_COMPONENT_PLUGIN-NFACCT_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-NFACCT_DESCRIPTION
"The NFACCT metrics collection plugin for the Netdata Agent
This plugin allows the Netdata Agent to collect metrics from the firewall
using NFACCT objects.")
set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_NAME "netdata-plugin-nfacct")
set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-nfacct/preinst;"
"${PKG_FILES_PATH}/deb/plugin-nfacct/postinst")
set(CPACK_DEBIAN_PLUGIN-NFACCT_DEBUGINFO_PACKAGE On)
#
# perf.plugin
#
set(CPACK_COMPONENT_PLUGIN-PERF_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-PERF_DESCRIPTION
"The perf metrics collector for the Netdata Agent
This plugin allows the Netdata to collect metrics from the Linux perf
subsystem.")
set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_NAME "netdata-plugin-perf")
set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-perf/preinst;"
"${PKG_FILES_PATH}/deb/plugin-perf/postinst")
set(CPACK_DEBIAN_PLUGIN-PERF_DEBUGINFO_PACKAGE On)
#
# pythond.plugin
#
set(CPACK_COMPONENT_PLUGIN-PYTHOND_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-PYTHOND_DESCRIPTION
"The python.d metrics collection plugin for the Netdata Agent
Many of the collectors provided by this package are also available
in netdata-plugin-god. In msot cases, you probably want to use those
versions instead of the Python versions.")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_NAME "netdata-plugin-pythond")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_SUGGESTS "sudo")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACHAGE_DEPENDS "python3")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_ARCHITECTURE "all")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-pythond/preinst;"
"${PKG_FILES_PATH}/deb/plugin-pythond/postinst")
set(CPACK_DEBIAN_PLUGIN-PYTHOND_DEBUGINFO_PACKAGE Off)
#
# slabinfo.plugin
#
set(CPACK_COMPONENT_PLUGIN-SLABINFO_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-SLABINFO_DESCRIPTION
"The slabinfo metrics collector for the Netdata Agent
This plugin allows the Netdata Agent to collect perfromance and
utilization metrics for the Linux kernels SLAB allocator.")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_NAME "netdata-plugin-slabinfo")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-slabinfo/preinst;"
"${PKG_FILES_PATH}/deb/plugin-slabinfo/postinst")
set(CPACK_DEBIAN_PLUGIN-SLABINFO_DEBUGINFO_PACKAGE On)
#
# systemd-journal.plugin
#
set(CPACK_COMPONENT_PLUGIN-SYSTEMD-JOURNAL_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-SYSTEMD-JOURNAL_DESCRIPTION
"The systemd-journal collector for the Netdata Agent
This plugin allows the Netdata Agent to present logs from the systemd
journal on Netdata Cloud or the local Agent dashboard.")
set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_NAME "netdata-plugin-systemd-journal")
set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-systemd-journal/preinst;"
"${PKG_FILES_PATH}/deb/plugin-systemd-journal/postinst")
set(CPACK_DEBIAN_PLUGIN-SYSTEMD_JOURNAL_DEBUGINFO_PACKAGE On)
#
# xenstat.plugin
#
set(CPACK_COMPONENT_PLUGIN-XENSTAT_DEPENDS "netdata")
set(CPACK_COMPONENT_PLUGIN-XENSTAT_DESCRIPTION
"The xenstat plugin for the Netdata Agent
This plugin allows the Netdata Agent to collect metrics from the Xen
Hypervisor.")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_NAME "netdata-plugin-xenstat")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_SECTION "net")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_CONFLICTS "netdata (<< 1.40)")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_PREDEPENDS "adduser")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_CONTROL_EXTRA
"${PKG_FILES_PATH}/deb/plugin-xenstat/preinst;"
"${PKG_FILES_PATH}/deb/plugin-xenstat/postinst")
set(CPACK_DEBIAN_PLUGIN-XENSTAT_DEBUGINFO_PACKAGE On)
#
# CPack components
#
list(APPEND CPACK_COMPONENTS_ALL "netdata")
if(ENABLE_DASHBOARD)
list(APPEND CPACK_COMPONENTS_ALL "dashboard")
endif()
if(ENABLE_PLUGIN_APPS)
list(APPEND CPACK_COMPONENTS_ALL "plugin-apps")
endif()
if(ENABLE_PLUGIN_CHARTS)
list(APPEND CPACK_COMPONENTS_ALL "plugin-chartsd")
endif()
if(ENABLE_PLUGIN_CUPS)
list(APPEND CPACK_COMPONENTS_ALL "plugin-cups")
endif()
if(ENABLE_PLUGIN_DEBUGFS)
list(APPEND CPACK_COMPONENTS_ALL "plugin-debugfs")
endif()
if(ENABLE_PLUGIN_EBPF)
list(APPEND CPACK_COMPONENTS_ALL "plugin-ebpf")
endif()
if(ENABLE_EBPF_LEGACY_PROGRAMS)
list(APPEND CPACK_COMPONENTS_ALL "ebpf-code-legacy")
endif()
if(ENABLE_PLUGIN_FREEIPMI)
list(APPEND CPACK_COMPONENTS_ALL "plugin-freeipmi")
endif()
if(ENABLE_PLUGIN_GO)
list(APPEND CPACK_COMPONENTS_ALL "plugin-go")
endif()
if(ENABLE_PLUGIN_NETWORK_VIEWER)
list(APPEND CPACK_COMPONENTS_ALL "plugin-network-viewer")
endif()
if(ENABLE_PLUGIN_NFACCT)
list(APPEND CPACK_COMPONENTS_ALL "plugin-nfacct")
endif()
if(ENABLE_PLUGIN_PERF)
list(APPEND CPACK_COMPONENTS_ALL "plugin-perf")
endif()
if(ENABLE_PLUGIN_PYTHON)
list(APPEND CPACK_COMPONENTS_ALL "plugin-pythond")
endif()
if(ENABLE_PLUGIN_SLABINFO)
list(APPEND CPACK_COMPONENTS_ALL "plugin-slabinfo")
endif()
if(ENABLE_PLUGIN_SYSTEMD_JOURNAL)
list(APPEND CPACK_COMPONENTS_ALL "plugin-systemd-journal")
endif()
if(ENABLE_PLUGIN_XENSTAT)
list(APPEND CPACK_COMPONENTS_ALL "plugin-xenstat")
endif()
include(CPack)