summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh69
1 files changed, 1 insertions, 68 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index b8a598dc69..82acb524de 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -211,7 +211,7 @@ USAGE: ${PROGRAM} [options]
--disable-dbengine Explicitly disable DB engine support.
--enable-plugin-go Enable the Go plugin. Default: Enabled when possible.
--disable-plugin-go Disable the Go plugin.
- --disable-go Equivalent to --disable-go-plugin
+ --disable-go Disable all Go components.
--enable-plugin-nfacct Enable nfacct plugin. Default: enable it when libmnl and libnetfilter_acct are available.
--disable-plugin-nfacct Explicitly disable the nfacct plugin.
--enable-plugin-xenstat Enable the xenstat plugin. Default: enable it when libxenstat and libyajl are available.
@@ -557,73 +557,6 @@ fi
trap build_error EXIT
# -----------------------------------------------------------------------------
-build_jsonc() {
- env_cmd=''
-
- if [ -z "${DONT_SCRUB_CFLAGS_EVEN_THOUGH_IT_MAY_BREAK_THINGS}" ]; then
- env_cmd="env CFLAGS='-fPIC -pipe' CXXFLAGS='-fPIC -pipe' LDFLAGS="
- fi
-
- cd "${1}" > /dev/null || exit 1
- run eval "${env_cmd} ${cmake} ${CMAKE_OPTS} -DBUILD_SHARED_LIBS=OFF -DDISABLE_WERROR=On ."
- run eval "${env_cmd} ${cmake} --build . --parallel ${JOBS} -- ${BUILD_OPTS}"
- cd - > /dev/null || return 1
-}
-
-copy_jsonc() {
- target_dir="${PWD}/externaldeps/jsonc"
-
- run mkdir -p "${target_dir}" "${target_dir}/json-c" || return 1
-
- run cp "${1}/libjson-c.a" "${target_dir}/libjson-c.a" || return 1
- # shellcheck disable=SC2086
- run cp ${1}/*.h "${target_dir}/json-c" || return 1
-}
-
-bundle_jsonc() {
- # If --build-json-c flag or not json-c on system, then bundle our own json-c
- if [ -z "${NETDATA_BUILD_JSON_C}" ] && pkg-config json-c; then
- NETDATA_BUILD_JSON_C=0
- return 0
- fi
-
- [ -n "${GITHUB_ACTIONS}" ] && echo "::group::Bundling JSON-C."
-
- progress "Prepare JSON-C"
-
- JSONC_PACKAGE_VERSION="$(cat packaging/jsonc.version)"
-
- tmp="$(mktemp -d -t netdata-jsonc-XXXXXX)"
- JSONC_PACKAGE_BASENAME="json-c-${JSONC_PACKAGE_VERSION}.tar.gz"
-
- if fetch_and_verify "jsonc" \
- "https://github.com/json-c/json-c/archive/${JSONC_PACKAGE_BASENAME}" \
- "${JSONC_PACKAGE_BASENAME}" \
- "${tmp}" \
- "${NETDATA_LOCAL_TARBALL_OVERRIDE_JSONC}"; then
- if run tar --no-same-owner -xf "${tmp}/${JSONC_PACKAGE_BASENAME}" -C "${tmp}" &&
- build_jsonc "${tmp}/json-c-json-c-${JSONC_PACKAGE_VERSION}" &&
- copy_jsonc "${tmp}/json-c-json-c-${JSONC_PACKAGE_VERSION}" &&
- rm -rf "${tmp}"; then
- run_ok "JSON-C built and prepared."
- NETDATA_BUILD_JSON_C=1
- else
- run_failed "Failed to build JSON-C, Netdata Cloud support will be disabled in this build."
- NETDATA_BUILD_JSON_C=0
- ENABLE_CLOUD=0
- fi
- else
- run_failed "Unable to fetch sources for JSON-C, Netdata Cloud support will be disabled in this build."
- NETDATA_BUILD_JSON_C=0
- ENABLE_CLOUD=0
- fi
-
- [ -n "${GITHUB_ACTIONS}" ] && echo "::endgroup::"
-}
-
-bundle_jsonc
-
-# -----------------------------------------------------------------------------
get_kernel_version() {
r="$(uname -r | cut -f 1 -d '-')"