Packaging.cmake 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. #
  2. # CPack options
  3. #
  4. if(NETDATA_VERSION_DESCR STREQUAL "N/A")
  5. set(CPACK_PACKAGE_VERSION ${NETDATA_VERSION_MAJOR}.${NETDATA_VERSION_MINOR}.${NETDATA_VERSION_PATCH})
  6. else()
  7. set(CPACK_PACKAGE_VERSION ${NETDATA_VERSION_MAJOR}.${NETDATA_VERSION_MINOR}.${NETDATA_VERSION_PATCH}-${NETDATA_VERSION_TWEAK}-${NETDATA_VERSION_DESCR})
  8. endif()
  9. set(CPACK_THREADS 0)
  10. set(CPACK_STRIP_FILES NO)
  11. set(CPACK_DEBIAN_DEBUGINFO_PACKAGE NO)
  12. set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)
  13. set(CPACK_PACKAGING_INSTALL_PREFIX "/")
  14. set(CPACK_PACKAGE_VENDOR "Netdata Inc.")
  15. set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
  16. set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
  17. set(CPACK_PACKAGE_INSTALL_DIRECTORY "netdata")
  18. set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/packages")
  19. # to silence lintian
  20. set(CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
  21. OWNER_READ OWNER_WRITE OWNER_EXECUTE
  22. GROUP_READ GROUP_EXECUTE
  23. WORLD_READ WORLD_EXECUTE)
  24. #
  25. # Debian options
  26. #
  27. set(CPACK_DEB_COMPONENT_INSTALL YES)
  28. set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS YES)
  29. set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
  30. set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Netdata Builder <bot@netdata.cloud>")
  31. #
  32. # netdata
  33. #
  34. set(CPACK_COMPONENT_NETDATA_DESCRIPTION
  35. "real-time charts for system monitoring
  36. Netdata is a daemon that collects data in realtime (per second)
  37. and presents a web site to view and analyze them. The presentation
  38. is also real-time and full of interactive charts that precisely
  39. render all collected values.")
  40. set(CPACK_DEBIAN_NETDATA_PACKAGE_NAME "netdata")
  41. set(CPACK_DEBIAN_NETDATA_PACKAGE_SECTION "net")
  42. set(CPACK_DEBIAN_NETDATA_PACKAGE_PREDEPENDS "adduser, libcap2-bin")
  43. set(CPACK_DEBIAN_NETDATA_PACKAGE_SUGGESTS
  44. "netdata-plugin-cups, netdata-plugin-freeipmi")
  45. set(CPACK_DEBIAN_NETDATA_PACKAGE_RECOMMENDS
  46. "netdata-plugin-systemd-journal, \
  47. netdata-plugin-network-viewer")
  48. set(CPACK_DEBIAN_NETDATA_PACKAGE_CONFLICTS
  49. "netdata-core, netdata-plugins-bash, netdata-plugins-python, netdata-web")
  50. if(ENABLE_PLUGIN_CHARTS)
  51. list(APPEND _main_deps "netdata-plugin-chartsd")
  52. endif()
  53. if(ENABLE_PLUGIN_PYTHON)
  54. list(APPEND _main_deps "netdata-plugin-pythond")
  55. endif()
  56. if(ENABLE_PLUGIN_APPS)
  57. list(APPEND _main_deps "netdata-plugin-apps")
  58. endif()
  59. if(ENABLE_PLUGIN_GO)
  60. list(APPEND _main_deps "netdata-plugin-go")
  61. endif()
  62. if(ENABLE_PLUGIN_DEBUGFS)
  63. list(APPEND _main_deps "netdata-plugin-debugfs")
  64. endif()
  65. if(ENABLE_PLUGIN_NFACCT)
  66. list(APPEND _main_deps "netdata-plugin-nfacct")
  67. endif()
  68. if(ENABLE_PLUGIN_SLABINFO)
  69. list(APPEND _main_deps "netdata-plugin-slabinfo")
  70. endif()
  71. if(ENABLE_PLUGIN_PERF)
  72. list(APPEND _main_deps "netdata-plugin-perf")
  73. endif()
  74. if(ENABLE_PLUGIN_EBPF)
  75. list(APPEND _main_deps "netdata-plugin-ebpf")
  76. endif()
  77. list(JOIN _main_deps ", " CPACK_DEBIAN_NETDATA_PACKAGE_DEPENDS)
  78. set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
  79. "${PKG_FILES_PATH}/deb/netdata/conffiles;"
  80. "${PKG_FILES_PATH}/deb/netdata/preinst"
  81. "${PKG_FILES_PATH}/deb/netdata/postinst"
  82. "${PKG_FILES_PATH}/deb/netdata/postrm")
  83. set(CPACK_DEBIAN_NETDATA_DEBUGINFO_PACKAGE On)
  84. #
  85. # apps.plugin
  86. #
  87. set(CPACK_COMPONENT_PLUGIN-APPS_DEPENDS "netdata")
  88. set(CPACK_COMPONENT_PLUGIN-APPS_DESCRIPTION
  89. "The per-application metrics collector plugin for the Netdata Agent
  90. This plugin allows the Netdata Agent to collect per-application and
  91. per-user metrics without using cgroups.")
  92. set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_NAME "netdata-plugin-apps")
  93. set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_SECTION "net")
  94. set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  95. set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  96. set(CPACK_DEBIAN_PLUGIN-APPS_PACKAGE_CONTROL_EXTRA
  97. "${PKG_FILES_PATH}/deb/plugin-apps/preinst;"
  98. "${PKG_FILES_PATH}/deb/plugin-apps/postinst")
  99. set(CPACK_DEBIAN_PLUGIN-APPS_DEBUGINFO_PACKAGE On)
  100. #
  101. # charts.d.plugin
  102. #
  103. set(CPACK_COMPONENT_PLUGIN-CHARTSD_DEPENDS "netdata")
  104. set(CPACK_COMPONENT_PLUGIN-CHARTSD_DESCRIPTION
  105. "The charts.d metrics collection plugin for the Netdata Agent
  106. This plugin adds a selection of additional collectors written in shell
  107. script to the Netdata Agent. It includes collectors for APCUPSD,
  108. LibreSWAN, OpenSIPS, and Wireless access point statistics.")
  109. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_NAME "netdata-plugin-chartsd")
  110. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_SECTION "net")
  111. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  112. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_PREDEPENDS "adduser")
  113. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_DEPENDS "bash")
  114. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_ARCHITECTURE "all")
  115. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_SUGGESTS "apcupsd, iw, sudo")
  116. set(CPACK_DEBIAN_PLUGIN-CHARTSD_PACKAGE_CONTROL_EXTRA
  117. "${PKG_FILES_PATH}/deb/plugin-chartsd/preinst;"
  118. "${PKG_FILES_PATH}/deb/plugin-chartsd/postinst")
  119. set(CPACK_DEBIAN_PLUGIN-CHARTSD_DEBUGINFO_PACKAGE Off)
  120. #
  121. # cups.plugin
  122. #
  123. set(CPACK_COMPONENT_PLUGIN-CUPS_DEPENDS "netdata")
  124. set(CPACK_COMPONENT_PLUGIN-CUPS_DESCRIPTION
  125. "The CUPS metrics collection plugin for the Netdata Agent
  126. This plugin allows the Netdata Agent to collect metrics from the Common UNIX Printing System.")
  127. set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_NAME "netdata-plugin-cups")
  128. set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_SECTION "net")
  129. set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_PREDEPENDS "adduser")
  130. set(CPACK_DEBIAN_PLUGIN-CUPS_PACKAGE_CONTROL_EXTRA
  131. "${PKG_FILES_PATH}/deb/plugin-cups/preinst;"
  132. "${PKG_FILES_PATH}/deb/plugin-cups/postinst")
  133. set(CPACK_DEBIAN_PLUGIN-CUPS_DEBUGINFO_PACKAGE On)
  134. #
  135. # debugfs.plugin
  136. #
  137. set(CPACK_COMPONENT_PLUGIN-DEBUGFS_DEPENDS "netdata")
  138. set(CPACK_COMPONENT_PLUGIN-DEBUGFS_DESCRIPTION
  139. "The debugfs metrics collector for the Netdata Agent
  140. This plugin allows the Netdata Agent to collect Linux kernel metrics
  141. exposed through debugfs.")
  142. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_NAME "netdata-plugin-debugfs")
  143. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_SECTION "net")
  144. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  145. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  146. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_PACKAGE_CONTROL_EXTRA
  147. "${PKG_FILES_PATH}/deb/plugin-debugfs/preinst;"
  148. "${PKG_FILES_PATH}/deb/plugin-debugfs/postinst")
  149. set(CPACK_DEBIAN_PLUGIN-DEBUGFS_DEBUGINFO_PACKAGE On)
  150. #
  151. # ebpf.plugin
  152. #
  153. set(CPACK_COMPONENT_PLUGIN-EBPF_DEPENDS "netdata")
  154. set(CPACK_COMPONENT_PLUGIN-EBPF_DESCRIPTION
  155. "The eBPF metrics collection plugin for the Netdata Agent
  156. This plugin allows the Netdata Agent to use eBPF code to collect more
  157. detailed kernel-level metrics for the system.")
  158. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_NAME "netdata-plugin-ebpf")
  159. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_SECTION "net")
  160. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  161. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_PREDEPENDS "adduser")
  162. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_RECOMMENDS "netdata-plugin-apps (= ${CPACK_PACKAGE_VERSION}), netdata-ebpf-code-legacy (= ${CPACK_PACKAGE_VERSION})")
  163. set(CPACK_DEBIAN_PLUGIN-EBPF_PACKAGE_CONTROL_EXTRA
  164. "${PKG_FILES_PATH}/deb/plugin-ebpf/preinst;"
  165. "${PKG_FILES_PATH}/deb/plugin-ebpf/postinst")
  166. set(CPACK_DEBIAN_PLUGIN-EBPF_DEBUGINFO_PACKAGE On)
  167. #
  168. # ebpf-code-legacy
  169. #
  170. set(CPACK_COMPONENT_EBPF-CODE-LEGACY_DEPENDS "netdata")
  171. set(CPACK_COMPONENT_EBPF-CODE-LEGACY_DESCRIPTION
  172. "Compiled eBPF legacy code for the Netdata eBPF plugin
  173. This package provides the pre-compiled eBPF legacy code for use by
  174. the Netdata eBPF plugin. This code is only needed when using the eBPF
  175. plugin with kernel that do not include BTF support (mostly kernel
  176. versions lower than 5.10).")
  177. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_NAME "netdata-ebpf-code-legacy")
  178. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_SECTION "net")
  179. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  180. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_PREDEPENDS "adduser")
  181. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_RECOMMENDS "netdata-plugin-ebpf (= ${CPACK_PACKAGE_VERSION})")
  182. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_PACKAGE_CONTROL_EXTRA
  183. "${PKG_FILES_PATH}/deb/ebpf-code-legacy/preinst;"
  184. "${PKG_FILES_PATH}/deb/ebpf-code-legacy/postinst")
  185. set(CPACK_DEBIAN_EBPF-CODE-LEGACY_DEBUGINFO_PACKAGE Off)
  186. #
  187. # freeipmi.plugin
  188. #
  189. set(CPACK_COMPONENT_PLUGIN-FREEIPMI_DEPENDS "netdata")
  190. set(CPACK_COMPONENT_PLUGIN-FREEIPMI_DESCRIPTION
  191. "The FreeIPMI metrics collection plugin for the Netdata Agent
  192. This plugin allows the Netdata Agent to collect metrics from hardware
  193. using FreeIPMI.")
  194. set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_NAME "netdata-plugin-freeipmi")
  195. set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_SECTION "net")
  196. set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_PREDEPENDS "adduser")
  197. set(CPACK_DEBIAN_PLUGIN-FREEIPMI_PACKAGE_CONTROL_EXTRA
  198. "${PKG_FILES_PATH}/deb/plugin-freeipmi/preinst;"
  199. "${PKG_FILES_PATH}/deb/plugin-freeipmi/postinst")
  200. set(CPACK_DEBIAN_PLUGIN-FREEIPMI_DEBUGINFO_PACKAGE On)
  201. #
  202. # go.plugin
  203. #
  204. set(CPACK_COMPONENT_PLUGIN-GO_DEPENDS "netdata")
  205. set(CPACK_COMPONENT_PLUGIN-GO_DESCRIPTION
  206. "The go.d metrics collection plugin for the Netdata Agent
  207. This plugin adds a selection of additional collectors written in Go to
  208. the Netdata Agent. A significant percentage of the application specific
  209. collectors provided by Netdata are part of this plugin, so most users
  210. will want it installed.")
  211. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_NAME "netdata-plugin-go")
  212. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_SECTION "net")
  213. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  214. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  215. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_SUGGESTS "nvme-cli")
  216. set(CPACK_DEBIAN_PLUGIN-GO_PACKAGE_CONTROL_EXTRA
  217. "${PKG_FILES_PATH}/deb/plugin-go/preinst;"
  218. "${PKG_FILES_PATH}/deb/plugin-go/postinst")
  219. set(CPACK_DEBIAN_PLUGIN-GO_DEBUGINFO_PACKAGE Off)
  220. #
  221. # network-viewer.plugin
  222. #
  223. # TODO: recommends netdata-plugin-ebpf
  224. set(CPACK_COMPONENT_PLUGIN-NETWORK-VIEWER_DEPENDS "netdata")
  225. set(CPACK_COMPONENT_PLUGIN-NETWORK-VIEWER_DESCRIPTION
  226. "The network viewer plugin for the Netdata Agent
  227. This plugin allows the Netdata Agent to provide network connection
  228. mapping functionality for use in Netdata Cloud.")
  229. set(CPACK_DEBIAN_PLUGIN-NETWORK_VIEWER_PACKAGE_NAME "netdata-plugin-network-viewer")
  230. set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_SECTION "net")
  231. set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  232. set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_RECOMMENDS "netdata-plugin-ebpf (= ${CPACK_PACKAGE_VERSION})")
  233. set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_PACKAGE_CONTROL_EXTRA
  234. "${PKG_FILES_PATH}/deb/plugin-network-viewer/preinst;"
  235. "${PKG_FILES_PATH}/deb/plugin-network-viewer/postinst")
  236. set(CPACK_DEBIAN_PLUGIN-NETWORK-VIEWER_DEBUGINFO_PACKAGE On)
  237. #
  238. # nfacct.plugin
  239. #
  240. set(CPACK_COMPONENT_PLUGIN-NFACCT_DEPENDS "netdata")
  241. set(CPACK_COMPONENT_PLUGIN-NFACCT_DESCRIPTION
  242. "The NFACCT metrics collection plugin for the Netdata Agent
  243. This plugin allows the Netdata Agent to collect metrics from the firewall
  244. using NFACCT objects.")
  245. set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_NAME "netdata-plugin-nfacct")
  246. set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_SECTION "net")
  247. set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  248. set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_PREDEPENDS "adduser")
  249. set(CPACK_DEBIAN_PLUGIN-NFACCT_PACKAGE_CONTROL_EXTRA
  250. "${PKG_FILES_PATH}/deb/plugin-nfacct/preinst;"
  251. "${PKG_FILES_PATH}/deb/plugin-nfacct/postinst")
  252. set(CPACK_DEBIAN_PLUGIN-NFACCT_DEBUGINFO_PACKAGE On)
  253. #
  254. # perf.plugin
  255. #
  256. set(CPACK_COMPONENT_PLUGIN-PERF_DEPENDS "netdata")
  257. set(CPACK_COMPONENT_PLUGIN-PERF_DESCRIPTION
  258. "The perf metrics collector for the Netdata Agent
  259. This plugin allows the Netdata to collect metrics from the Linux perf
  260. subsystem.")
  261. set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_NAME "netdata-plugin-perf")
  262. set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_SECTION "net")
  263. set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  264. set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  265. set(CPACK_DEBIAN_PLUGIN-PERF_PACKAGE_CONTROL_EXTRA
  266. "${PKG_FILES_PATH}/deb/plugin-perf/preinst;"
  267. "${PKG_FILES_PATH}/deb/plugin-perf/postinst")
  268. set(CPACK_DEBIAN_PLUGIN-PERF_DEBUGINFO_PACKAGE On)
  269. #
  270. # pythond.plugin
  271. #
  272. set(CPACK_COMPONENT_PLUGIN-PYTHOND_DEPENDS "netdata")
  273. set(CPACK_COMPONENT_PLUGIN-PYTHOND_DESCRIPTION
  274. "The python.d metrics collection plugin for the Netdata Agent
  275. Many of the collectors provided by this package are also available
  276. in netdata-plugin-god. In msot cases, you probably want to use those
  277. versions instead of the Python versions.")
  278. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_NAME "netdata-plugin-pythond")
  279. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_SECTION "net")
  280. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  281. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_PREDEPENDS "adduser")
  282. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_SUGGESTS "sudo")
  283. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACHAGE_DEPENDS "python3")
  284. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_ARCHITECTURE "all")
  285. set(CPACK_DEBIAN_PLUGIN-PYTHOND_PACKAGE_CONTROL_EXTRA
  286. "${PKG_FILES_PATH}/deb/plugin-pythond/preinst;"
  287. "${PKG_FILES_PATH}/deb/plugin-pythond/postinst")
  288. set(CPACK_DEBIAN_PLUGIN-PYTHOND_DEBUGINFO_PACKAGE Off)
  289. #
  290. # slabinfo.plugin
  291. #
  292. set(CPACK_COMPONENT_PLUGIN-SLABINFO_DEPENDS "netdata")
  293. set(CPACK_COMPONENT_PLUGIN-SLABINFO_DESCRIPTION
  294. "The slabinfo metrics collector for the Netdata Agent
  295. This plugin allows the Netdata Agent to collect perfromance and
  296. utilization metrics for the Linux kernel’s SLAB allocator.")
  297. set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_NAME "netdata-plugin-slabinfo")
  298. set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_SECTION "net")
  299. set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  300. set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  301. set(CPACK_DEBIAN_PLUGIN-SLABINFO_PACKAGE_CONTROL_EXTRA
  302. "${PKG_FILES_PATH}/deb/plugin-slabinfo/preinst;"
  303. "${PKG_FILES_PATH}/deb/plugin-slabinfo/postinst")
  304. set(CPACK_DEBIAN_PLUGIN-SLABINFO_DEBUGINFO_PACKAGE On)
  305. #
  306. # systemd-journal.plugin
  307. #
  308. set(CPACK_COMPONENT_PLUGIN-SYSTEMD-JOURNAL_DEPENDS "netdata")
  309. set(CPACK_COMPONENT_PLUGIN-SYSTEMD-JOURNAL_DESCRIPTION
  310. "The systemd-journal collector for the Netdata Agent
  311. This plugin allows the Netdata Agent to present logs from the systemd
  312. journal on Netdata Cloud or the local Agent dashboard.")
  313. set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_NAME "netdata-plugin-systemd-journal")
  314. set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_SECTION "net")
  315. set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_PREDEPENDS "libcap2-bin, adduser")
  316. set(CPACK_DEBIAN_PLUGIN-SYSTEMD-JOURNAL_PACKAGE_CONTROL_EXTRA
  317. "${PKG_FILES_PATH}/deb/plugin-systemd-journal/preinst;"
  318. "${PKG_FILES_PATH}/deb/plugin-systemd-journal/postinst")
  319. set(CPACK_DEBIAN_PLUGIN-SYSTEMD_JOURNAL_DEBUGINFO_PACKAGE On)
  320. #
  321. # xenstat.plugin
  322. #
  323. set(CPACK_COMPONENT_PLUGIN-XENSTAT_DEPENDS "netdata")
  324. set(CPACK_COMPONENT_PLUGIN-XENSTAT_DESCRIPTION
  325. "The xenstat plugin for the Netdata Agent
  326. This plugin allows the Netdata Agent to collect metrics from the Xen
  327. Hypervisor.")
  328. set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_NAME "netdata-plugin-xenstat")
  329. set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_SECTION "net")
  330. set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_CONFLICTS "netdata (<< 1.40)")
  331. set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_PREDEPENDS "adduser")
  332. set(CPACK_DEBIAN_PLUGIN-XENSTAT_PACKAGE_CONTROL_EXTRA
  333. "${PKG_FILES_PATH}/deb/plugin-xenstat/preinst;"
  334. "${PKG_FILES_PATH}/deb/plugin-xenstat/postinst")
  335. set(CPACK_DEBIAN_PLUGIN-XENSTAT_DEBUGINFO_PACKAGE On)
  336. #
  337. # CPack components
  338. #
  339. list(APPEND CPACK_COMPONENTS_ALL "netdata")
  340. if(ENABLE_PLUGIN_APPS)
  341. list(APPEND CPACK_COMPONENTS_ALL "plugin-apps")
  342. endif()
  343. if(ENABLE_PLUGIN_CHARTS)
  344. list(APPEND CPACK_COMPONENTS_ALL "plugin-chartsd")
  345. endif()
  346. if(ENABLE_PLUGIN_CUPS)
  347. list(APPEND CPACK_COMPONENTS_ALL "plugin-cups")
  348. endif()
  349. if(ENABLE_PLUGIN_DEBUGFS)
  350. list(APPEND CPACK_COMPONENTS_ALL "plugin-debugfs")
  351. endif()
  352. if(ENABLE_PLUGIN_EBPF)
  353. list(APPEND CPACK_COMPONENTS_ALL "plugin-ebpf")
  354. endif()
  355. if(ENABLE_EBPF_LEGACY_PROGRAMS)
  356. list(APPEND CPACK_COMPONENTS_ALL "ebpf-code-legacy")
  357. endif()
  358. if(ENABLE_PLUGIN_FREEIPMI)
  359. list(APPEND CPACK_COMPONENTS_ALL "plugin-freeipmi")
  360. endif()
  361. if(ENABLE_PLUGIN_GO)
  362. list(APPEND CPACK_COMPONENTS_ALL "plugin-go")
  363. endif()
  364. if(ENABLE_PLUGIN_NETWORK_VIEWER)
  365. list(APPEND CPACK_COMPONENTS_ALL "plugin-network-viewer")
  366. endif()
  367. if(ENABLE_PLUGIN_NFACCT)
  368. list(APPEND CPACK_COMPONENTS_ALL "plugin-nfacct")
  369. endif()
  370. if(ENABLE_PLUGIN_PERF)
  371. list(APPEND CPACK_COMPONENTS_ALL "plugin-perf")
  372. endif()
  373. if(ENABLE_PLUGIN_PYTHON)
  374. list(APPEND CPACK_COMPONENTS_ALL "plugin-pythond")
  375. endif()
  376. if(ENABLE_PLUGIN_SLABINFO)
  377. list(APPEND CPACK_COMPONENTS_ALL "plugin-slabinfo")
  378. endif()
  379. if(ENABLE_PLUGIN_SYSTEMD_JOURNAL)
  380. list(APPEND CPACK_COMPONENTS_ALL "plugin-systemd-journal")
  381. endif()
  382. if(ENABLE_PLUGIN_XENSTAT)
  383. list(APPEND CPACK_COMPONENTS_ALL "plugin-xenstat")
  384. endif()
  385. include(CPack)