diff options
Diffstat (limited to 'meta-webserver')
5 files changed, 72 insertions, 58 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-Timeout-issue.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-Timeout-issue.patch deleted file mode 100644 index abea0d66bd..0000000000 --- a/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-Timeout-issue.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | Index: git/plugins.d/charts.d.plugin | ||
2 | =================================================================== | ||
3 | --- git.orig/plugins.d/charts.d.plugin | ||
4 | +++ git/plugins.d/charts.d.plugin | ||
5 | @@ -246,16 +246,6 @@ else | ||
6 | info "configuration file '$myconfig' not found. Using defaults." | ||
7 | fi | ||
8 | |||
9 | -# we check for the timeout command, after we load our | ||
10 | -# configuration, so that the user may overwrite the | ||
11 | -# timeout command we use, providing a function that | ||
12 | -# can emulate the timeout command we need: | ||
13 | -# > timeout SECONDS command ... | ||
14 | -if [ $check_for_timeout -eq 1 ] | ||
15 | - then | ||
16 | - require_cmd timeout || exit 1 | ||
17 | -fi | ||
18 | - | ||
19 | # ----------------------------------------------------------------------------- | ||
20 | # internal checks | ||
21 | |||
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-timeout-issue.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-timeout-issue.patch new file mode 100644 index 0000000000..c4be8270ca --- /dev/null +++ b/meta-webserver/recipes-webadmin/netdata/netdata/0001-Correct-timeout-issue.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From ccaf4225239c3092a51cf44f2ab0a2141b8a5fa6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Luca Palano <github@lpzone.it> | ||
3 | Date: Wed, 5 Dec 2018 10:36:52 +0100 | ||
4 | Subject: [PATCH 1/2] Correct of timeout issue | ||
5 | |||
6 | The timeout issue has been disabled | ||
7 | |||
8 | Signed-off-by: Luca Palano <github@lpzone.it> | ||
9 | --- | ||
10 | collectors/charts.d.plugin/charts.d.plugin.in | 9 +++++---- | ||
11 | 1 file changed, 5 insertions(+), 4 deletions(-) | ||
12 | |||
13 | diff --git a/collectors/charts.d.plugin/charts.d.plugin.in b/collectors/charts.d.plugin/charts.d.plugin.in | ||
14 | index 0df6c30c..63ea4506 100755 | ||
15 | --- a/collectors/charts.d.plugin/charts.d.plugin.in | ||
16 | +++ b/collectors/charts.d.plugin/charts.d.plugin.in | ||
17 | @@ -156,7 +156,7 @@ restart_timeout=$((3600 * 4)) | ||
18 | dryrunner=0 | ||
19 | |||
20 | # check for timeout command | ||
21 | -check_for_timeout=1 | ||
22 | +check_for_timeout=0 | ||
23 | |||
24 | # the default enable/disable value for all charts | ||
25 | enable_all_charts="yes" | ||
26 | @@ -251,9 +251,10 @@ time_divisor=$((time_divisor)) | ||
27 | # timeout command we use, providing a function that | ||
28 | # can emulate the timeout command we need: | ||
29 | # > timeout SECONDS command ... | ||
30 | -if [ $check_for_timeout -eq 1 ]; then | ||
31 | - require_cmd timeout || exit 1 | ||
32 | -fi | ||
33 | +#if [ $check_for_timeout -eq 1 ] | ||
34 | +# then | ||
35 | +# require_cmd timeout || exit 1 | ||
36 | +#fi | ||
37 | |||
38 | # ----------------------------------------------------------------------------- | ||
39 | # internal checks | ||
40 | -- | ||
41 | 2.20.1 (Apple Git-117) | ||
42 | |||
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0001-makefile-Do-not-build-contrib-dir.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0001-makefile-Do-not-build-contrib-dir.patch deleted file mode 100644 index 6a0d75e37b..0000000000 --- a/meta-webserver/recipes-webadmin/netdata/netdata/0001-makefile-Do-not-build-contrib-dir.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From 87f868918a9ae1dcf93e01f3e177d185c19a149a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 13 Jul 2017 14:32:09 -0700 | ||
4 | Subject: [PATCH] makefile: Do not build contrib dir | ||
5 | |||
6 | It contains debian build iteams anyway | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Makefile.am | 1 - | ||
11 | 1 file changed, 1 deletion(-) | ||
12 | |||
13 | diff --git a/Makefile.am b/Makefile.am | ||
14 | index 2ea9e40..acb1bd8 100644 | ||
15 | --- a/Makefile.am | ||
16 | +++ b/Makefile.am | ||
17 | @@ -56,7 +56,6 @@ SUBDIRS = \ | ||
18 | src \ | ||
19 | system \ | ||
20 | web \ | ||
21 | - contrib \ | ||
22 | tests \ | ||
23 | $(NULL) | ||
24 | |||
25 | -- | ||
26 | 2.13.2 | ||
27 | |||
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0002-Makefiles-does-not-build-contrib-dir.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0002-Makefiles-does-not-build-contrib-dir.patch new file mode 100644 index 0000000000..f0887fed02 --- /dev/null +++ b/meta-webserver/recipes-webadmin/netdata/netdata/0002-Makefiles-does-not-build-contrib-dir.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 95e1da77de80e38068bb2739faeaad49105700cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Luca Palano <github@lpzone.it> | ||
3 | Date: Mon, 15 Jul 2019 10:16:32 +0200 | ||
4 | Subject: [PATCH 2/2] Makefiles does not build contrib | ||
5 | |||
6 | Signed-off-by: Luca Palano <github@lpzone.it> | ||
7 | --- | ||
8 | Makefile.am | 1 - | ||
9 | 1 file changed, 1 deletion(-) | ||
10 | |||
11 | diff --git a/Makefile.am b/Makefile.am | ||
12 | index bc928bba..ba9edc6b 100644 | ||
13 | --- a/Makefile.am | ||
14 | +++ b/Makefile.am | ||
15 | @@ -54,7 +54,6 @@ dist_noinst_DATA= \ | ||
16 | CHANGELOG.md \ | ||
17 | cppcheck.sh \ | ||
18 | configs.signatures \ | ||
19 | - contrib \ | ||
20 | netdata.cppcheck \ | ||
21 | netdata.spec \ | ||
22 | package.json \ | ||
23 | -- | ||
24 | 2.20.1 (Apple Git-117) | ||
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_git.bb b/meta-webserver/recipes-webadmin/netdata/netdata_git.bb index 390fa4ba9b..811c2c5223 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_git.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_git.bb | |||
@@ -1,19 +1,17 @@ | |||
1 | HOMEPAGE = "https://github.com/firehol/netdata/" | 1 | HOMEPAGE = "https://github.com/firehol/netdata/" |
2 | SUMMARY = "Real-time performance monitoring" | 2 | SUMMARY = "Real-time performance monitoring" |
3 | LICENSE = "GPLv3" | 3 | LICENSE = "GPLv3" |
4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=95b49e9ea979a337578f13c2a3ab9535 \ | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc9b848046ef54b5eaee6071947abd24" |
5 | file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
6 | " | ||
7 | 5 | ||
8 | SRC_URI = "git://github.com/firehol/netdata.git;protocol=https \ | 6 | SRC_URI = "git://github.com/firehol/netdata.git;protocol=https \ |
9 | file://0001-makefile-Do-not-build-contrib-dir.patch \ | 7 | file://0002-Makefiles-does-not-build-contrib-dir.patch \ |
10 | " | 8 | " |
11 | SRCREV = "89ed309252981ddd50f697fde4fe93019cb3e652" | 9 | SRCREV = "2c4146832061635273d153a5174c85fb1d967d57" |
12 | PV = "1.8.0+git${SRCPV}" | 10 | PV = "1.16.0+git${SRCPV}" |
13 | 11 | ||
14 | # patch to disable timeout because timeout are not available with actual version | 12 | # patch to disable timeout because timeout are not available with actual version |
15 | # of core-utils | 13 | # of core-utils |
16 | SRC_URI += "file://0001-Correct-Timeout-issue.patch" | 14 | SRC_URI += "file://0001-Correct-timeout-issue.patch" |
17 | 15 | ||
18 | # default netdata.conf for netdata configuration | 16 | # default netdata.conf for netdata configuration |
19 | SRC_URI += "file://netdata.conf" | 17 | SRC_URI += "file://netdata.conf" |
@@ -25,9 +23,7 @@ S = "${WORKDIR}/git" | |||
25 | 23 | ||
26 | DEPENDS += "zlib util-linux" | 24 | DEPENDS += "zlib util-linux" |
27 | 25 | ||
28 | inherit pkgconfig autotools useradd systemd | 26 | inherit pkgconfig autotools-brokensep useradd systemd |
29 | |||
30 | LDFLAGS += "-pthread" | ||
31 | 27 | ||
32 | #systemd | 28 | #systemd |
33 | SYSTEMD_PACKAGES = "${PN}" | 29 | SYSTEMD_PACKAGES = "${PN}" |