!25 [sync] PR-22: update to 1.39.1
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
b58a2b57c3
BIN
config.tar.gz
Normal file
BIN
config.tar.gz
Normal file
Binary file not shown.
@ -2,8 +2,8 @@ Fix shebang according to
|
||||
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines
|
||||
|
||||
diff -rup a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in
|
||||
--- a/claim/netdata-claim.sh.in 2022-11-30 13:36:48.322052491 +0100
|
||||
+++ b/claim/netdata-claim.sh.in 2022-12-02 19:09:02.003143386 +0100
|
||||
--- a/claim/netdata-claim.sh.in 2023-05-08 14:52:30.397594409 +0200
|
||||
+++ b/claim/netdata-claim.sh.in 2023-05-14 11:12:13.229357763 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -11,8 +11,8 @@ diff -rup a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in
|
||||
# real-time performance and health monitoring, done right!
|
||||
# (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
|
||||
diff -rup a/collectors/cgroups.plugin/cgroup-name.sh b/collectors/cgroups.plugin/cgroup-name.sh
|
||||
--- a/collectors/cgroups.plugin/cgroup-name.sh 2022-11-30 13:36:48.322052491 +0100
|
||||
+++ b/collectors/cgroups.plugin/cgroup-name.sh 2022-12-02 19:09:02.006143400 +0100
|
||||
--- a/collectors/cgroups.plugin/cgroup-name.sh 2023-05-08 14:52:30.397594409 +0200
|
||||
+++ b/collectors/cgroups.plugin/cgroup-name.sh 2023-05-14 11:12:13.253357925 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -20,8 +20,8 @@ diff -rup a/collectors/cgroups.plugin/cgroup-name.sh b/collectors/cgroups.plugin
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/cgroups.plugin/cgroup-network-helper.sh b/collectors/cgroups.plugin/cgroup-network-helper.sh
|
||||
--- a/collectors/cgroups.plugin/cgroup-network-helper.sh 2022-11-30 13:36:48.322052491 +0100
|
||||
+++ b/collectors/cgroups.plugin/cgroup-network-helper.sh 2022-12-02 19:09:02.008143410 +0100
|
||||
--- a/collectors/cgroups.plugin/cgroup-network-helper.sh 2023-05-08 14:52:30.397594409 +0200
|
||||
+++ b/collectors/cgroups.plugin/cgroup-network-helper.sh 2023-05-14 11:12:13.251357912 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -29,8 +29,8 @@ diff -rup a/collectors/cgroups.plugin/cgroup-network-helper.sh b/collectors/cgro
|
||||
|
||||
# cgroup-network-helper.sh
|
||||
diff -rup a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh
|
||||
--- a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2022-11-30 13:36:48.322052491 +0100
|
||||
+++ b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2022-12-02 19:09:02.015143442 +0100
|
||||
--- a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2023-05-08 14:52:30.401594370 +0200
|
||||
+++ b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2023-05-14 11:12:13.242357851 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -38,8 +38,8 @@ diff -rup a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh b/collectors/ch
|
||||
|
||||
# shellcheck disable=SC2181
|
||||
diff -rup a/collectors/charts.d.plugin/charts.d.plugin b/collectors/charts.d.plugin/charts.d.plugin
|
||||
--- a/collectors/charts.d.plugin/charts.d.plugin 2022-11-30 13:37:39.815580278 +0100
|
||||
+++ b/collectors/charts.d.plugin/charts.d.plugin 2022-12-02 19:09:02.013143433 +0100
|
||||
--- a/collectors/charts.d.plugin/charts.d.plugin 2023-05-08 14:53:14.493122687 +0200
|
||||
+++ b/collectors/charts.d.plugin/charts.d.plugin 2023-05-14 11:12:13.240357837 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -47,26 +47,8 @@ diff -rup a/collectors/charts.d.plugin/charts.d.plugin b/collectors/charts.d.plu
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/charts.d.plugin/charts.d.plugin.in b/collectors/charts.d.plugin/charts.d.plugin.in
|
||||
--- a/collectors/charts.d.plugin/charts.d.plugin.in 2022-11-30 13:36:48.322052491 +0100
|
||||
+++ b/collectors/charts.d.plugin/charts.d.plugin.in 2022-12-02 19:09:02.010143419 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/fping.plugin/fping.plugin b/collectors/fping.plugin/fping.plugin
|
||||
--- a/collectors/fping.plugin/fping.plugin 2022-11-30 13:37:39.927583599 +0100
|
||||
+++ b/collectors/fping.plugin/fping.plugin 2022-12-02 19:09:02.033143526 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/fping.plugin/fping.plugin.in b/collectors/fping.plugin/fping.plugin.in
|
||||
--- a/collectors/fping.plugin/fping.plugin.in 2022-11-30 13:36:48.330052728 +0100
|
||||
+++ b/collectors/fping.plugin/fping.plugin.in 2022-12-02 19:09:02.031143516 +0100
|
||||
--- a/collectors/charts.d.plugin/charts.d.plugin.in 2023-05-08 14:52:30.401594370 +0200
|
||||
+++ b/collectors/charts.d.plugin/charts.d.plugin.in 2023-05-14 11:12:13.237357817 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -74,8 +56,8 @@ diff -rup a/collectors/fping.plugin/fping.plugin.in b/collectors/fping.plugin/fp
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/ioping.plugin/ioping.plugin b/collectors/ioping.plugin/ioping.plugin
|
||||
--- a/collectors/ioping.plugin/ioping.plugin 2022-11-30 13:37:39.955584429 +0100
|
||||
+++ b/collectors/ioping.plugin/ioping.plugin 2022-12-02 19:09:02.021143470 +0100
|
||||
--- a/collectors/ioping.plugin/ioping.plugin 2023-05-08 14:53:14.653120991 +0200
|
||||
+++ b/collectors/ioping.plugin/ioping.plugin 2023-05-14 11:12:13.245357872 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -83,8 +65,8 @@ diff -rup a/collectors/ioping.plugin/ioping.plugin b/collectors/ioping.plugin/io
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/ioping.plugin/ioping.plugin.in b/collectors/ioping.plugin/ioping.plugin.in
|
||||
--- a/collectors/ioping.plugin/ioping.plugin.in 2022-11-30 13:36:48.330052728 +0100
|
||||
+++ b/collectors/ioping.plugin/ioping.plugin.in 2022-12-02 19:09:02.024143484 +0100
|
||||
--- a/collectors/ioping.plugin/ioping.plugin.in 2023-05-08 14:52:30.409594292 +0200
|
||||
+++ b/collectors/ioping.plugin/ioping.plugin.in 2023-05-14 11:12:13.247357885 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -92,8 +74,8 @@ diff -rup a/collectors/ioping.plugin/ioping.plugin.in b/collectors/ioping.plugin
|
||||
|
||||
# netdata
|
||||
diff -rup a/collectors/python.d.plugin/python.d.plugin b/collectors/python.d.plugin/python.d.plugin
|
||||
--- a/collectors/python.d.plugin/python.d.plugin 2022-11-30 13:37:40.139589884 +0100
|
||||
+++ b/collectors/python.d.plugin/python.d.plugin 2022-12-02 19:09:02.019143461 +0100
|
||||
--- a/collectors/python.d.plugin/python.d.plugin 2023-05-08 14:53:14.929118066 +0200
|
||||
+++ b/collectors/python.d.plugin/python.d.plugin 2023-05-14 11:12:13.259357966 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -101,8 +83,8 @@ diff -rup a/collectors/python.d.plugin/python.d.plugin b/collectors/python.d.plu
|
||||
pybinary=$(which python3 || which python || which python2)
|
||||
filtered=()
|
||||
diff -rup a/collectors/python.d.plugin/python.d.plugin.in b/collectors/python.d.plugin/python.d.plugin.in
|
||||
--- a/collectors/python.d.plugin/python.d.plugin.in 2022-11-30 13:36:48.346053202 +0100
|
||||
+++ b/collectors/python.d.plugin/python.d.plugin.in 2022-12-02 19:09:02.017143451 +0100
|
||||
--- a/collectors/python.d.plugin/python.d.plugin.in 2023-05-08 14:52:30.429594097 +0200
|
||||
+++ b/collectors/python.d.plugin/python.d.plugin.in 2023-05-14 11:12:13.256357946 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -110,8 +92,8 @@ diff -rup a/collectors/python.d.plugin/python.d.plugin.in b/collectors/python.d.
|
||||
pybinary=$(which python3 || which python || which python2)
|
||||
filtered=()
|
||||
diff -rup a/collectors/python.d.plugin/python_modules/third_party/boinc_client.py b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py
|
||||
--- a/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2022-11-30 13:36:48.346053202 +0100
|
||||
+++ b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2022-12-02 19:09:02.179144203 +0100
|
||||
--- a/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2023-05-08 14:52:30.433594058 +0200
|
||||
+++ b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2023-05-14 11:12:13.437359174 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#
|
||||
@ -119,8 +101,8 @@ diff -rup a/collectors/python.d.plugin/python_modules/third_party/boinc_client.p
|
||||
#
|
||||
# client.py - Somewhat higher-level GUI_RPC API for BOINC core client
|
||||
diff -rup a/collectors/tc.plugin/tc-qos-helper.sh b/collectors/tc.plugin/tc-qos-helper.sh
|
||||
--- a/collectors/tc.plugin/tc-qos-helper.sh 2022-11-30 13:37:40.511600912 +0100
|
||||
+++ b/collectors/tc.plugin/tc-qos-helper.sh 2022-12-02 19:09:02.027143498 +0100
|
||||
--- a/collectors/tc.plugin/tc-qos-helper.sh 2023-05-08 14:53:15.429112767 +0200
|
||||
+++ b/collectors/tc.plugin/tc-qos-helper.sh 2023-05-14 11:12:13.232357783 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -128,8 +110,8 @@ diff -rup a/collectors/tc.plugin/tc-qos-helper.sh b/collectors/tc.plugin/tc-qos-
|
||||
# netdata
|
||||
# real-time performance and health monitoring, done right!
|
||||
diff -rup a/collectors/tc.plugin/tc-qos-helper.sh.in b/collectors/tc.plugin/tc-qos-helper.sh.in
|
||||
--- a/collectors/tc.plugin/tc-qos-helper.sh.in 2022-11-30 13:36:48.354053440 +0100
|
||||
+++ b/collectors/tc.plugin/tc-qos-helper.sh.in 2022-12-02 19:09:02.029143507 +0100
|
||||
--- a/collectors/tc.plugin/tc-qos-helper.sh.in 2023-05-08 14:52:30.441593980 +0200
|
||||
+++ b/collectors/tc.plugin/tc-qos-helper.sh.in 2023-05-14 11:12:13.234357797 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -137,8 +119,8 @@ diff -rup a/collectors/tc.plugin/tc-qos-helper.sh.in b/collectors/tc.plugin/tc-q
|
||||
# netdata
|
||||
# real-time performance and health monitoring, done right!
|
||||
diff -rup a/contrib/debian/install_go.sh b/contrib/debian/install_go.sh
|
||||
--- a/contrib/debian/install_go.sh 2022-11-30 13:36:48.354053440 +0100
|
||||
+++ b/contrib/debian/install_go.sh 2022-12-02 19:09:02.035143535 +0100
|
||||
--- a/contrib/debian/install_go.sh 2023-05-08 14:52:30.441593980 +0200
|
||||
+++ b/contrib/debian/install_go.sh 2023-05-14 11:12:13.261357980 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -146,8 +128,8 @@ diff -rup a/contrib/debian/install_go.sh b/contrib/debian/install_go.sh
|
||||
GO_PACKAGE_VERSION="$1"
|
||||
LIB_DIR="$2"
|
||||
diff -rup a/contrib/rhel/build-netdata-rpm.sh b/contrib/rhel/build-netdata-rpm.sh
|
||||
--- a/contrib/rhel/build-netdata-rpm.sh 2022-11-30 13:36:48.354053440 +0100
|
||||
+++ b/contrib/rhel/build-netdata-rpm.sh 2022-12-02 19:09:02.037143544 +0100
|
||||
--- a/contrib/rhel/build-netdata-rpm.sh 2023-05-08 14:52:30.441593980 +0200
|
||||
+++ b/contrib/rhel/build-netdata-rpm.sh 2023-05-14 11:12:13.264358000 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -155,8 +137,8 @@ diff -rup a/contrib/rhel/build-netdata-rpm.sh b/contrib/rhel/build-netdata-rpm.s
|
||||
# docker run -it --rm centos:6.9 /bin/sh
|
||||
# yum -y install rpm-build redhat-rpm-config yum-utils autoconf automake curl gcc git libmnl-devel libuuid-devel make pkgconfig zlib-devel
|
||||
diff -rup a/coverity-scan.sh b/coverity-scan.sh
|
||||
--- a/coverity-scan.sh 2022-11-30 13:36:48.354053440 +0100
|
||||
+++ b/coverity-scan.sh 2022-12-02 19:09:02.039143553 +0100
|
||||
--- a/coverity-scan.sh 2023-05-08 14:52:30.441593980 +0200
|
||||
+++ b/coverity-scan.sh 2023-05-14 11:12:13.266358014 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -164,8 +146,8 @@ diff -rup a/coverity-scan.sh b/coverity-scan.sh
|
||||
# Coverity scan script
|
||||
#
|
||||
diff -rup a/cppcheck.sh b/cppcheck.sh
|
||||
--- a/cppcheck.sh 2022-11-30 13:36:48.354053440 +0100
|
||||
+++ b/cppcheck.sh 2022-12-02 19:09:02.041143563 +0100
|
||||
--- a/cppcheck.sh 2023-05-08 14:52:30.441593980 +0200
|
||||
+++ b/cppcheck.sh 2023-05-14 11:12:13.269358034 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -173,8 +155,8 @@ diff -rup a/cppcheck.sh b/cppcheck.sh
|
||||
# echo >>/tmp/cppcheck.log "cppcheck ${*}"
|
||||
|
||||
diff -rup a/daemon/anonymous-statistics.sh b/daemon/anonymous-statistics.sh
|
||||
--- a/daemon/anonymous-statistics.sh 2022-11-30 13:37:40.539601742 +0100
|
||||
+++ b/daemon/anonymous-statistics.sh 2022-12-02 19:09:02.076143725 +0100
|
||||
--- a/daemon/anonymous-statistics.sh 2023-05-08 14:53:15.469112343 +0200
|
||||
+++ b/daemon/anonymous-statistics.sh 2023-05-14 11:12:13.309358305 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
@ -182,8 +164,8 @@ diff -rup a/daemon/anonymous-statistics.sh b/daemon/anonymous-statistics.sh
|
||||
# Valid actions:
|
||||
|
||||
diff -rup a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.in
|
||||
--- a/daemon/anonymous-statistics.sh.in 2022-11-30 13:36:48.358053558 +0100
|
||||
+++ b/daemon/anonymous-statistics.sh.in 2022-12-02 19:09:02.073143711 +0100
|
||||
--- a/daemon/anonymous-statistics.sh.in 2023-05-08 14:52:30.445593941 +0200
|
||||
+++ b/daemon/anonymous-statistics.sh.in 2023-05-14 11:12:13.312358326 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
@ -191,8 +173,8 @@ diff -rup a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.i
|
||||
# Valid actions:
|
||||
|
||||
diff -rup a/daemon/get-kubernetes-labels.sh b/daemon/get-kubernetes-labels.sh
|
||||
--- a/daemon/get-kubernetes-labels.sh 2022-11-30 13:37:40.543601861 +0100
|
||||
+++ b/daemon/get-kubernetes-labels.sh 2022-12-02 19:09:02.043143572 +0100
|
||||
--- a/daemon/get-kubernetes-labels.sh 2023-05-08 14:53:15.473112301 +0200
|
||||
+++ b/daemon/get-kubernetes-labels.sh 2023-05-14 11:12:13.275358075 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -200,8 +182,8 @@ diff -rup a/daemon/get-kubernetes-labels.sh b/daemon/get-kubernetes-labels.sh
|
||||
|
||||
# Checks if netdata is running in a kubernetes pod and fetches:
|
||||
diff -rup a/daemon/get-kubernetes-labels.sh.in b/daemon/get-kubernetes-labels.sh.in
|
||||
--- a/daemon/get-kubernetes-labels.sh.in 2022-11-30 13:36:48.358053558 +0100
|
||||
+++ b/daemon/get-kubernetes-labels.sh.in 2022-12-02 19:09:02.045143581 +0100
|
||||
--- a/daemon/get-kubernetes-labels.sh.in 2023-05-08 14:52:30.445593941 +0200
|
||||
+++ b/daemon/get-kubernetes-labels.sh.in 2023-05-14 11:12:13.272358054 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -209,8 +191,8 @@ diff -rup a/daemon/get-kubernetes-labels.sh.in b/daemon/get-kubernetes-labels.sh
|
||||
|
||||
# Checks if netdata is running in a kubernetes pod and fetches:
|
||||
diff -rup a/daemon/system-info.sh b/daemon/system-info.sh
|
||||
--- a/daemon/system-info.sh 2022-11-30 13:36:48.358053558 +0100
|
||||
+++ b/daemon/system-info.sh 2022-12-02 19:09:02.071143702 +0100
|
||||
--- a/daemon/system-info.sh 2023-05-08 14:52:30.445593941 +0200
|
||||
+++ b/daemon/system-info.sh 2023-05-14 11:12:13.307358292 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
@ -218,8 +200,8 @@ diff -rup a/daemon/system-info.sh b/daemon/system-info.sh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# detect the kernel
|
||||
diff -rup a/diagrams/build.sh b/diagrams/build.sh
|
||||
--- a/diagrams/build.sh 2022-11-30 13:36:48.398054744 +0100
|
||||
+++ b/diagrams/build.sh 2022-12-02 19:09:02.047143591 +0100
|
||||
--- a/diagrams/build.sh 2023-05-08 14:52:30.505593355 +0200
|
||||
+++ b/diagrams/build.sh 2023-05-14 11:12:13.277358089 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -227,8 +209,8 @@ diff -rup a/diagrams/build.sh b/diagrams/build.sh
|
||||
|
||||
path=$(dirname "$0")
|
||||
diff -rup a/exporting/nc-exporting.sh b/exporting/nc-exporting.sh
|
||||
--- a/exporting/nc-exporting.sh 2022-11-30 13:36:48.410055100 +0100
|
||||
+++ b/exporting/nc-exporting.sh 2022-12-02 19:09:02.049143600 +0100
|
||||
--- a/exporting/nc-exporting.sh 2023-05-08 14:52:30.525593160 +0200
|
||||
+++ b/exporting/nc-exporting.sh 2023-05-14 11:12:13.279358102 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -236,8 +218,8 @@ diff -rup a/exporting/nc-exporting.sh b/exporting/nc-exporting.sh
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
diff -rup a/health/notifications/alarm-email.sh b/health/notifications/alarm-email.sh
|
||||
--- a/health/notifications/alarm-email.sh 2022-11-30 13:36:48.414055219 +0100
|
||||
+++ b/health/notifications/alarm-email.sh 2022-12-02 19:09:02.059143646 +0100
|
||||
--- a/health/notifications/alarm-email.sh 2023-05-08 14:52:30.529593121 +0200
|
||||
+++ b/health/notifications/alarm-email.sh 2023-05-14 11:12:13.282358122 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -245,8 +227,8 @@ diff -rup a/health/notifications/alarm-email.sh b/health/notifications/alarm-ema
|
||||
|
||||
# OBSOLETE - REPLACED WITH
|
||||
diff -rup a/health/notifications/alarm-notify.sh b/health/notifications/alarm-notify.sh
|
||||
--- a/health/notifications/alarm-notify.sh 2022-11-30 13:37:40.939613600 +0100
|
||||
+++ b/health/notifications/alarm-notify.sh 2022-12-02 19:09:02.055143628 +0100
|
||||
--- a/health/notifications/alarm-notify.sh 2023-05-08 14:53:16.097105688 +0200
|
||||
+++ b/health/notifications/alarm-notify.sh 2023-05-14 11:12:13.291358183 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -254,8 +236,8 @@ diff -rup a/health/notifications/alarm-notify.sh b/health/notifications/alarm-no
|
||||
|
||||
# netdata
|
||||
diff -rup a/health/notifications/alarm-notify.sh.in b/health/notifications/alarm-notify.sh.in
|
||||
--- a/health/notifications/alarm-notify.sh.in 2022-11-30 13:36:48.414055219 +0100
|
||||
+++ b/health/notifications/alarm-notify.sh.in 2022-12-02 19:09:02.052143614 +0100
|
||||
--- a/health/notifications/alarm-notify.sh.in 2023-05-08 14:52:30.533593082 +0200
|
||||
+++ b/health/notifications/alarm-notify.sh.in 2023-05-14 11:12:13.285358143 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -263,8 +245,8 @@ diff -rup a/health/notifications/alarm-notify.sh.in b/health/notifications/alarm
|
||||
|
||||
# netdata
|
||||
diff -rup a/health/notifications/alarm-test.sh b/health/notifications/alarm-test.sh
|
||||
--- a/health/notifications/alarm-test.sh 2022-11-30 13:36:48.414055219 +0100
|
||||
+++ b/health/notifications/alarm-test.sh 2022-12-02 19:09:02.057143637 +0100
|
||||
--- a/health/notifications/alarm-test.sh 2023-05-08 14:52:30.533593082 +0200
|
||||
+++ b/health/notifications/alarm-test.sh 2023-05-14 11:12:13.288358163 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -272,8 +254,8 @@ diff -rup a/health/notifications/alarm-test.sh b/health/notifications/alarm-test
|
||||
# netdata
|
||||
# real-time performance and health monitoring, done right!
|
||||
diff -rup a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py
|
||||
--- a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2022-11-30 13:36:56.678300242 +0100
|
||||
+++ b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2022-12-02 19:09:02.182144217 +0100
|
||||
--- a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2023-05-08 14:52:40.109496786 +0200
|
||||
+++ b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2023-05-14 11:12:13.441359201 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python3
|
||||
+#!/usr/bin/python33
|
||||
@ -281,8 +263,8 @@ diff -rup a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py b/ml/dlib/dlib/externa
|
||||
# Syntax: mkdoc.py [-I<path> ..] [.. a list of header files ..]
|
||||
#
|
||||
diff -rup a/ml/dlib/dlib/travis/build-and-test.sh b/ml/dlib/dlib/travis/build-and-test.sh
|
||||
--- a/ml/dlib/dlib/travis/build-and-test.sh 2022-11-30 13:36:56.750302376 +0100
|
||||
+++ b/ml/dlib/dlib/travis/build-and-test.sh 2022-12-02 19:09:02.061143656 +0100
|
||||
--- a/ml/dlib/dlib/travis/build-and-test.sh 2023-05-08 14:52:40.201495797 +0200
|
||||
+++ b/ml/dlib/dlib/travis/build-and-test.sh 2023-05-14 11:12:13.294358204 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -290,8 +272,8 @@ diff -rup a/ml/dlib/dlib/travis/build-and-test.sh b/ml/dlib/dlib/travis/build-an
|
||||
set -eux
|
||||
|
||||
diff -rup a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py
|
||||
--- a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2022-11-30 13:36:56.798303799 +0100
|
||||
+++ b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2022-12-02 19:09:02.185144231 +0100
|
||||
--- a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2023-05-08 14:52:40.265495109 +0200
|
||||
+++ b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2023-05-14 11:12:13.444359221 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/python3
|
||||
@ -299,8 +281,8 @@ diff -rup a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_c
|
||||
# This script takes the dlib lenet model trained by the
|
||||
# examples/dnn_introduction_ex.cpp example program and runs it using caffe.
|
||||
diff -rup a/packaging/check-kernel-config.sh b/packaging/check-kernel-config.sh
|
||||
--- a/packaging/check-kernel-config.sh 2022-11-30 13:36:48.434055812 +0100
|
||||
+++ b/packaging/check-kernel-config.sh 2022-12-02 19:09:02.063143665 +0100
|
||||
--- a/packaging/check-kernel-config.sh 2023-05-08 14:52:30.557592848 +0200
|
||||
+++ b/packaging/check-kernel-config.sh 2023-05-14 11:12:13.297358224 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -308,35 +290,26 @@ diff -rup a/packaging/check-kernel-config.sh b/packaging/check-kernel-config.sh
|
||||
get_kernel_version() {
|
||||
r="$(uname -r | cut -f 1 -d '-')"
|
||||
diff -rup a/system/edit-config b/system/edit-config
|
||||
--- a/system/edit-config 2022-11-30 13:37:39.643575179 +0100
|
||||
+++ b/system/edit-config 2022-12-02 19:09:02.080143744 +0100
|
||||
--- a/system/edit-config 2023-05-08 14:52:30.565592770 +0200
|
||||
+++ b/system/edit-config 2023-05-14 11:12:13.316358353 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
|
||||
diff -rup a/system/edit-config.in b/system/edit-config.in
|
||||
--- a/system/edit-config.in 2022-11-30 13:36:48.442056049 +0100
|
||||
+++ b/system/edit-config.in 2022-12-02 19:09:02.082143753 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
|
||||
diff -rup a/system/install-service.sh.in b/system/install-service.sh.in
|
||||
--- a/system/install-service.sh.in 2022-11-30 13:36:48.442056049 +0100
|
||||
+++ b/system/install-service.sh.in 2022-12-02 19:09:02.078143735 +0100
|
||||
--- a/system/install-service.sh.in 2023-05-08 14:52:30.565592770 +0200
|
||||
+++ b/system/install-service.sh.in 2023-05-14 11:12:13.318358367 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/usr/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
diff -rup a/system/netdata-lsb.in b/system/netdata-lsb.in
|
||||
--- a/system/netdata-lsb.in 2022-11-30 13:36:48.442056049 +0100
|
||||
+++ b/system/netdata-lsb.in 2022-12-02 19:09:02.065143674 +0100
|
||||
diff -rup a/system/lsb/init.d/netdata.in b/system/lsb/init.d/netdata.in
|
||||
--- a/system/lsb/init.d/netdata.in 2023-05-08 14:52:30.565592770 +0200
|
||||
+++ b/system/lsb/init.d/netdata.in 2023-05-14 11:12:13.299358238 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -344,8 +317,8 @@ diff -rup a/system/netdata-lsb.in b/system/netdata-lsb.in
|
||||
# Netdata LSB start script
|
||||
#
|
||||
diff -rup a/tests/health_mgmtapi/health-cmdapi-test.sh b/tests/health_mgmtapi/health-cmdapi-test.sh
|
||||
--- a/tests/health_mgmtapi/health-cmdapi-test.sh 2022-11-30 13:37:39.683576365 +0100
|
||||
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh 2022-12-02 19:09:02.069143693 +0100
|
||||
--- a/tests/health_mgmtapi/health-cmdapi-test.sh 2023-05-08 14:53:14.297124764 +0200
|
||||
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh 2023-05-14 11:12:13.304358271 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
@ -353,8 +326,8 @@ diff -rup a/tests/health_mgmtapi/health-cmdapi-test.sh b/tests/health_mgmtapi/he
|
||||
|
||||
NETDATA_VARLIB_DIR="/var/lib/netdata"
|
||||
diff -rup a/tests/health_mgmtapi/health-cmdapi-test.sh.in b/tests/health_mgmtapi/health-cmdapi-test.sh.in
|
||||
--- a/tests/health_mgmtapi/health-cmdapi-test.sh.in 2022-11-30 13:36:48.442056049 +0100
|
||||
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh.in 2022-12-02 19:09:02.067143683 +0100
|
||||
--- a/tests/health_mgmtapi/health-cmdapi-test.sh.in 2023-05-08 14:52:30.569592731 +0200
|
||||
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh.in 2023-05-14 11:12:13.301358251 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env bash
|
||||
+#!/usr/bin/bash
|
||||
104
netdata-install-go-plugins.sh
Executable file
104
netdata-install-go-plugins.sh
Executable file
@ -0,0 +1,104 @@
|
||||
#!/bin/bash
|
||||
|
||||
GO_PACKAGE_VERSION="v@PLUGIN_GO_VERSION@"
|
||||
CHECKSUM_FILE="@DATADIR@/netdata/go.d.checksums"
|
||||
LIBEXEC_PATH="@LIBEXEC@/netdata"
|
||||
|
||||
safe_sha256sum() {
|
||||
# Within the context of the installer, we only use -c option that is common between the two commands
|
||||
# We will have to reconsider if we start non-common options
|
||||
if command -v sha256sum >/dev/null 2>&1; then
|
||||
sha256sum $@
|
||||
elif command -v shasum >/dev/null 2>&1; then
|
||||
shasum -a 256 $@
|
||||
else
|
||||
fatal "I could not find a suitable checksum binary to use"
|
||||
fi
|
||||
}
|
||||
|
||||
download_go() {
|
||||
url="${1}"
|
||||
dest="${2}"
|
||||
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -sSL --connect-timeout 10 --retry 3 "${url}" > "${dest}"
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
wget -T 15 -O - "${url}" > "${dest}"
|
||||
else
|
||||
echo >&2
|
||||
echo >&2 "Downloading go.d plugin from '${url}' failed because of missing mandatory packages."
|
||||
echo >&2 "Either add packages or disable it by issuing '--disable-go' in the installer"
|
||||
echo >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
install_go() {
|
||||
# When updating this value, ensure correct checksums in packaging/go.d.checksums
|
||||
ARCH_MAP=(
|
||||
'i386::386'
|
||||
'i686::386'
|
||||
'x86_64::amd64'
|
||||
'aarch64::arm64'
|
||||
'armv64::arm64'
|
||||
'armv6l::arm'
|
||||
'armv7l::arm'
|
||||
'armv5tel::arm'
|
||||
)
|
||||
|
||||
if [ -z "${NETDATA_DISABLE_GO+x}" ]; then
|
||||
echo >&2 "Install go.d.plugin"
|
||||
ARCH=$(uname -m)
|
||||
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
for index in "${ARCH_MAP[@]}" ; do
|
||||
KEY="${index%%::*}"
|
||||
VALUE="${index##*::}"
|
||||
if [ "$KEY" = "$ARCH" ]; then
|
||||
ARCH="${VALUE}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
tmp=$(mktemp -d /tmp/netdata-go-XXXXXX)
|
||||
GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}.tar.gz"
|
||||
download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/${GO_PACKAGE_BASENAME}" "${tmp}/${GO_PACKAGE_BASENAME}"
|
||||
# Include in RPM
|
||||
#download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/config.tar.gz" "${tmp}/config.tar.gz"
|
||||
|
||||
#if [ ! -f "${tmp}/${GO_PACKAGE_BASENAME}" ] || [ ! -f "${tmp}/config.tar.gz" ] || [ ! -s "${tmp}/config.tar.gz" ] || [ ! -s "${tmp}/${GO_PACKAGE_BASENAME}" ]; then
|
||||
if [ ! -f "${tmp}/${GO_PACKAGE_BASENAME}" ] || [ ! -s "${tmp}/${GO_PACKAGE_BASENAME}" ]; then
|
||||
echo >&2 "Either check the error or consider disabling it by issuing '--disable-go' in the installer"
|
||||
echo >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
grep "${GO_PACKAGE_BASENAME}\$" "${CHECKSUM_FILE}" > "${tmp}/sha256sums.txt" 2>/dev/null
|
||||
#grep "config.tar.gz" "${CHECKSUM_FILE}" >> "${tmp}/sha256sums.txt" 2>/dev/null
|
||||
|
||||
# Checksum validation
|
||||
if ! (cd "${tmp}" && safe_sha256sum -c "sha256sums.txt"); then
|
||||
|
||||
echo >&2 "go.d plugin checksum validation failure."
|
||||
echo >&2 "Either check the error or consider disabling it by issuing '--disable-go' in the installer"
|
||||
echo >&2
|
||||
|
||||
echo "go.d.plugin package files checksum validation failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install files
|
||||
#tar -xf "${tmp}/config.tar.gz" -C "${NETDATA_CONF_STOCK}/conf.d/"
|
||||
tar xf "${tmp}/${GO_PACKAGE_BASENAME}"
|
||||
install -m 0750 -p "${GO_PACKAGE_BASENAME/\.tar\.gz/}" ${LIBEXEC_PATH}/plugins.d/go.d.plugin
|
||||
setcap 'cap_net_admin=eip cap_net_raw=eip' ${LIBEXEC_PATH}/plugins.d/go.d.plugin
|
||||
rm -rf "${tmp}"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
if [ ${UID} -ne 0 ]
|
||||
then
|
||||
echo "This script must be run by root, please use sudo"
|
||||
exit 1
|
||||
fi
|
||||
install_go
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rup a/web/gui/dashboard/Makefile.am b/web/gui/dashboard/Makefile.am
|
||||
--- a/web/gui/dashboard/Makefile.am 2022-11-30 13:36:48.450056286 +0100
|
||||
+++ b/web/gui/dashboard/Makefile.am 2022-12-02 19:12:46.215183637 +0100
|
||||
--- a/web/gui/dashboard/Makefile.am 2023-02-06 15:18:31.201561714 +0100
|
||||
+++ b/web/gui/dashboard/Makefile.am 2023-02-07 08:59:30.617627390 +0100
|
||||
@@ -171,36 +171,3 @@ dist_webstaticjs_DATA = \
|
||||
$(srcdir)/static/js/runtime-main.08abed8f.js \
|
||||
$(srcdir)/static/js/runtime-main.08abed8f.js.map \
|
||||
Binary file not shown.
16
netdata.conf
16
netdata.conf
@ -1,6 +1,10 @@
|
||||
# netdata configuration
|
||||
#
|
||||
# You can download the latest version of this file, using:
|
||||
# You can get the latest version of this file, using:
|
||||
#
|
||||
# netdatacli dumpconfig > /etc/netdata/netdata.conf
|
||||
#
|
||||
# You can also download it using:
|
||||
#
|
||||
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
|
||||
# or
|
||||
@ -10,18 +14,18 @@
|
||||
# The value shown in the commented settings, is the default value.
|
||||
#
|
||||
|
||||
# global netdata configuration
|
||||
[global]
|
||||
run as user = netdata
|
||||
|
||||
# the default database size - 1 hour
|
||||
history = 3600
|
||||
# default storage size - increase for longer data retention
|
||||
page cache size = 32
|
||||
dbengine multihost disk space = 256
|
||||
|
||||
# some defaults to run netdata with least priority
|
||||
process scheduling policy = idle
|
||||
OOM score = 1000
|
||||
|
||||
stock config directory = /etc/netdata/conf.d
|
||||
stock config directory = /usr/lib/netdata/conf.d
|
||||
|
||||
[web]
|
||||
web files owner = root
|
||||
@ -31,4 +35,4 @@
|
||||
bind to = localhost
|
||||
|
||||
[health]
|
||||
stock health configuration directory = /etc/netdata/conf.d/health.d
|
||||
stock health configuration directory = /usr/lib/netdata/conf.d/health.d
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# env vars for netdata
|
||||
export NETDATA_STOCK_CONFIG_DIR="/etc/netdata/conf.d"
|
||||
export NETDATA_STOCK_CONFIG_DIR="@STOCK_CONFIG_DIR@/conf.d"
|
||||
export NETDATA_USER_CONFIG_DIR="/etc/netdata"
|
||||
export NETDATA_VARLIB_DIR="/var/lib/netdata"
|
||||
export NETDATA_CACHE_DIR="/var/cache/netdata"
|
||||
|
||||
74
netdata.spec
74
netdata.spec
@ -3,8 +3,13 @@
|
||||
%bcond_without cups
|
||||
%global _hardened_build 1
|
||||
# Build release candidate
|
||||
|
||||
%global plugin_go_ver 0.52.2
|
||||
|
||||
%global netdata_conf_stock %{_prefix}/lib/%{name}
|
||||
|
||||
Name: netdata
|
||||
Version: 1.37.1
|
||||
Version: 1.39.1
|
||||
Release: 1
|
||||
Summary: Real-time performance monitoring
|
||||
License: GPLv3 and GPLv3+ and ASL 2.0 and CC-BY-4.0 and MIT and WTFPL
|
||||
@ -15,9 +20,11 @@ Source2: netdata.init
|
||||
Source3: netdata.conf
|
||||
Source4: netdata.profile
|
||||
Source5: README-packager.md
|
||||
Patch0: netdata-fix-shebang-1.37.0.patch
|
||||
Source6: https://github.com/netdata/go.d.plugin/releases/download/v%{plugin_go_ver}/config.tar.gz
|
||||
Source7: netdata-install-go-plugins.sh
|
||||
Patch0: netdata-fix-shebang-1.39.0.patch
|
||||
# Remove embedded font
|
||||
Patch10: netdata-remove-fonts-1.37.0.patch
|
||||
Patch10: netdata-remove-fonts-1.38.0.patch
|
||||
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: git
|
||||
@ -39,6 +46,7 @@ BuildRequires: libcurl-devel
|
||||
BuildRequires: systemd
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: libpfm-devel
|
||||
BuildRequires: libyaml-devel
|
||||
BuildRequires: autogen
|
||||
|
||||
# Prometheus
|
||||
@ -130,6 +138,11 @@ autoreconf -ivf
|
||||
|
||||
%make_build
|
||||
|
||||
# Integrate go plugins
|
||||
mkdir conf.d
|
||||
tar -xf %{SOURCE6} -C conf.d/
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -name '.keep' -delete
|
||||
@ -137,19 +150,21 @@ find %{buildroot} -name '.keep' -delete
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
install -Dp -m 0644 system/netdata.service %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -Dp -m 0644 system/systemd/netdata.service %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
install -Dp -m 0644 system/netdata.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/netdata
|
||||
install -Dp -m 0644 system/logrotate/netdata %{buildroot}%{_sysconfdir}/logrotate.d/netdata
|
||||
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
||||
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/
|
||||
install -p -m 0644 system/netdata.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
# Conf files must be in /etc, dixit FHS and it's better in a noarch pkg
|
||||
mv %{buildroot}%{_libdir}/%{name}/conf.d %{buildroot}%{_sysconfdir}/%{name}/
|
||||
mkdir -p %{buildroot}%{netdata_conf_stock}/conf.d
|
||||
mv %{buildroot}%{_libdir}/%{name}/conf.d/* %{buildroot}%{netdata_conf_stock}/conf.d/
|
||||
sed -i -e '/NETDATA_STOCK_CONFIG_DIR/ s/lib64/lib/' %{buildroot}%{_sysconfdir}/%{name}/edit-config
|
||||
sed -i -e '/^script_dir/s;=.*;="\$\{NETDATA_USER_CONFIG_DIR:-%{_sysconfdir}/netdata\}";' \
|
||||
%{buildroot}%{_sysconfdir}/%{name}/edit-config
|
||||
|
||||
# Scripts must not be in /etc, /usr/libexec is a better place
|
||||
mv %{buildroot}%{_sysconfdir}/%{name}/edit-config %{buildroot}%{_libexecdir}/%{name}/edit-config
|
||||
# Fix EOL
|
||||
@ -167,6 +182,19 @@ done
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
install -p -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/netdata.sh
|
||||
sed -i -e '/NETDATA_STOCK_CONFIG_DIR/s;@STOCK_CONFIG_DIR@;%{netdata_conf_stock};' %{buildroot}%{_sysconfdir}/profile.d/netdata.sh
|
||||
|
||||
# Integrate go plugins
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/go.d
|
||||
install -p conf.d/go.d.conf %{buildroot}%{netdata_conf_stock}/conf.d/go.d.conf
|
||||
cp -rp conf.d/go.d %{buildroot}%{netdata_conf_stock}/conf.d/go.d
|
||||
install -p -m 0644 packaging/go.d.checksums %{buildroot}%{_datadir}/%{name}/go.d.checksums
|
||||
install -p -m 0750 %{SOURCE7} %{buildroot}%{_sbindir}/netdata-install-go-plugins.sh
|
||||
sed -i \
|
||||
-e 's;@PLUGIN_GO_VERSION@;%{plugin_go_ver};' \
|
||||
-e 's;@DATADIR@;%{_datadir};' \
|
||||
-e 's;@LIBEXEC@;%{_libexecdir};' \
|
||||
%{buildroot}%{_sbindir}/netdata-install-go-plugins.sh
|
||||
|
||||
%check
|
||||
make tests
|
||||
@ -177,10 +205,11 @@ getent passwd netdata > /dev/null || useradd -r -g netdata -c "NetData User" -s
|
||||
|
||||
%post
|
||||
sed -i -e '/web files group/ s/root/netdata/' /etc/netdata/netdata.conf ||:
|
||||
sed -i -e '/stock config directory/ s;/etc/netdata/conf.d;/usr/lib/netdata/conf.d;' /etc/netdata/netdata.conf ||:
|
||||
sed -i -e '/stock health configuration directory/ s;/etc/netdata/conf.d/health.d;/usr/lib/netdata/conf.d/health.d;' /etc/netdata/netdata.conf ||:
|
||||
%systemd_post %{name}.service
|
||||
echo "The current config file can be downloaded with the following command"
|
||||
echo "curl -o /etc/netdata/netdata.conf http://localhost:19999/netdata.conf"
|
||||
echo "Config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
echo "Netdata config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
echo "Netdata go plugin can be easily installed with %{_sbindir}/netdata-install-go-plugins.sh script"
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
@ -211,6 +240,7 @@ echo "Config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
%attr(0755, netdata, netdata) %dir %{_localstatedir}/cache/%{name}
|
||||
%attr(0755, netdata, netdata) %dir %{_localstatedir}/log/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%attr(0750,root,netdata)%{_sbindir}/netdata-install-go-plugins.sh
|
||||
|
||||
%files conf
|
||||
%doc README.md
|
||||
@ -220,19 +250,10 @@ echo "Config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
%dir %{_sysconfdir}/%{name}/health.d
|
||||
%dir %{_sysconfdir}/%{name}/python.d
|
||||
%dir %{_sysconfdir}/%{name}/statsd.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d/charts.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d/health.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d/python.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d/statsd.d
|
||||
%dir %{_sysconfdir}/%{name}/conf.d/ebpf.d
|
||||
%dir %{_sysconfdir}/%{name}/go.d
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/*.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/charts.d/*.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/health.d/*.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/python.d/*.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/statsd.d/*.conf
|
||||
%config %{_sysconfdir}/%{name}/conf.d/ebpf.d/*.conf
|
||||
%dir %{netdata_conf_stock}/conf.d
|
||||
%{netdata_conf_stock}/conf.d/*
|
||||
%config %{_sysconfdir}/logrotate.d/netdata
|
||||
%config %{_sysconfdir}/profile.d/netdata.sh
|
||||
%dir %{_libexecdir}/%{name}
|
||||
@ -244,7 +265,7 @@ echo "Config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
%license LICENSE REDISTRIBUTED.md
|
||||
%dir %{_datadir}/%{name}
|
||||
%attr(-, root, netdata) %{_datadir}/%{name}/web
|
||||
|
||||
%{_datadir}/%{name}/go.d.checksums
|
||||
|
||||
%files freeipmi
|
||||
%doc README.md
|
||||
@ -252,6 +273,9 @@ echo "Config should be edited with %{_libexecdir}/%{name}/edit-config"
|
||||
%caps(cap_setuid=ep) %attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin
|
||||
|
||||
%changelog
|
||||
* Tue May 23 2023 liyanan <thistleslyn@163.com> - 1.39.1-1
|
||||
- update to 1.39.1
|
||||
|
||||
* Mon Jan 30 2023 wangkai <wangkai385@h-partners.com> - 1.37.1-1
|
||||
- Upgrade to version 1.37.1 for fix CVE-2023-22496,CVE-2023-22497
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user