Remove CPack stuff from CMake (#16608)
vkalintiris committed
Dec 14, 2023 at 20:50 UTC
353cc267d4daefb1dab5d76c221da49331ea3585
1 file changed
-58
CMakeLists.txt
-58
@@ -2180,61 +2180,3 @@ install(FILES web/gui/.well-known/dnt/cookies
2180
# v0 dashboard
2181
install(FILES web/gui/v0/index.html
2182
DESTINATION usr/share/netdata/web/v0)
2183
-
2184
-#
2185
-# packaging
2186
-#
2187
-
2188
-set(NETDATA_PACKAGE_DESCRIPTION "real-time charts for system monitoring
2189
-Netdata is a daemon that collects data in realtime (per second)
2190
-and presents a web site to view and analyze them. The presentation
2191
-is also real-time and full of interactive charts that precisely
2192
-render all collected values.")
2193
-
2194
-set(CPACK_PACKAGE_NAME ${PROJECT_NAME}
2195
- CACHE STRING "The resulting package name"
2196
-)
2197
-# which is useful in case of packing only selected components instead of the whole thing
2198
-set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${NETDATA_PACKAGE_DESCRIPTION}
2199
- CACHE STRING "Package description for the package metadata"
2200
-)
2201
-set(CPACK_PACKAGE_VENDOR "Netdata Inc.")
2202
-
2203
-set(CPACK_VERBATIM_VARIABLES YES)
2204
-
2205
-# set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
2206
-# SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_SOURCE_DIR}/_packages")
2207
-
2208
-# https://unix.stackexchange.com/a/11552/254512
2209
-set(CPACK_PACKAGING_INSTALL_PREFIX "/")
2210
-
2211
-set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
2212
-set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
2213
-set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
2214
-
2215
-set(CPACK_PACKAGE_CONTACT "<bot@netdata.cloud>")
2216
-set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Netdata Builder ${CPACK_PACKAGE_CONTACT}")
2217
-
2218
-set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
2219
-set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
2220
-
2221
-# package name for deb. If set, then instead of some-application-0.9.2-Linux.deb
2222
-# you'll get some-application_0.9.2_amd64.deb (note the underscores too)
2223
-set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
2224
-set(CPACK_DEBIAN_PACKAGE_SECTION "net")
2225
-
2226
-set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE)
2227
-set(CPACK_DEBIAN_PACKAGE_DEPENDS "openssl, netdata-plugin-ebpf [amd64], netdata-plugin-apps, netdata-plugin-pythond, netdata-plugin-go, netdata-plugin-debugfs, netdata-plugin-nfacct, netdata-plugin-chartsd, netdata-plugin-slabinfo, netdata-plugin-perf")
2228
-set(CPACK_DEBIAN_PACKAGE_PREDEPENDS "adduser, dpkg (>= 1.17.14), libcap2-bin (>= 1:2.0), lsb-base (>= 3.1-23.2)")
2229
-set(CPACK_DEBIAN_PACKAGE_CONFLICTS "netdata-core, netdata-plugins-bash, netdata-plugins-python, netdata-web")
2230
-set(CPACK_DEBIAN_PACKAGE_SUGGESTS "netdata-plugin-cups, netdata-plugin-freeipmi")
2231
-set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "netdata-plugin-systemd-journal")
2232
-# that is if you want every group to have its own package,
2233
-# although the same will happen if this is not set (so it defaults to ONE_PER_GROUP)
2234
-# and CPACK_DEB_COMPONENT_INSTALL is set to YES
2235
-set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)#ONE_PER_GROUP)
2236
-# without this you won't be able to pack only specified component
2237
-set(CPACK_DEB_COMPONENT_INSTALL YES)
2238
-
2239
-include(CPack)
2240
-