Packaging.cmake 17 KB

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