diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2019-03-15 01:55:31 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-17 00:19:07 +0000 |
commit | b3e9a2b3332382960a9cbf8a6084fbf10a33706c (patch) | |
tree | 731e06dd52d6f6d83e1849984e94dd952407e53c | |
parent | 4b62efe469a88332588cc0ef89d89762aa93640e (diff) | |
download | meta-virtualization-b3e9a2b3332382960a9cbf8a6084fbf10a33706c.tar.gz |
nagios-nsca: uprev to v2.9.2
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/nagios/nagios-nsca/0001-Fix-missing-argument-in-open-calls.patch | 52 | ||||
-rw-r--r-- | recipes-extended/nagios/nagios-nsca_2.9.2.bb (renamed from recipes-extended/nagios/nagios-nsca_2.9.1.bb) | 9 |
2 files changed, 4 insertions, 57 deletions
diff --git a/recipes-extended/nagios/nagios-nsca/0001-Fix-missing-argument-in-open-calls.patch b/recipes-extended/nagios/nagios-nsca/0001-Fix-missing-argument-in-open-calls.patch deleted file mode 100644 index 6b39fec5..00000000 --- a/recipes-extended/nagios/nagios-nsca/0001-Fix-missing-argument-in-open-calls.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From da37e6ce2a8cc315845440488cd2f8dab0a17bfe Mon Sep 17 00:00:00 2001 | ||
2 | From: "John C. Frickson" <jfrickson@nagios.com> | ||
3 | Date: Wed, 7 Oct 2015 14:06:58 -0500 | ||
4 | Subject: [PATCH] Fix missing argument in open calls | ||
5 | |||
6 | Commit b9f2c08dfdf31430f972a48781fc115c4af13cfe | ||
7 | from https://github.com/NagiosEnterprises/nsca | ||
8 | |||
9 | Fix for issue http://tracker.nagios.org/view.php?id=286 | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | |||
13 | Singed-off-by: John C. Frickson <jfrickson@nagios.com> | ||
14 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
15 | [MA: Context updated to allow application to older version] | ||
16 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
17 | --- | ||
18 | Changelog | 4 ++++ | ||
19 | src/nsca.c | 2 +- | ||
20 | 2 files changed, 5 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/Changelog b/Changelog | ||
23 | index 3a7edd4..00ea11e 100644 | ||
24 | --- a/Changelog | ||
25 | +++ b/Changelog | ||
26 | @@ -2,6 +2,10 @@ | ||
27 | NSCA Changelog | ||
28 | ************** | ||
29 | |||
30 | +2.9.x - xx/xx/xxxx | ||
31 | +------------------ | ||
32 | +- Fix missing argument in open calls (Xavier Bachelot / John Frickson) | ||
33 | + | ||
34 | 2.9.1 - 01/27/2012 | ||
35 | ------------------ | ||
36 | - Applied patch to allow packets arriving with a future time stamp (Daniel Wittenberg) | ||
37 | diff --git a/src/nsca.c b/src/nsca.c | ||
38 | index 6b0e436..0e70b8b 100644 | ||
39 | --- a/src/nsca.c | ||
40 | +++ b/src/nsca.c | ||
41 | @@ -477,7 +477,7 @@ static int read_config_file(char *filename){ | ||
42 | int checkresult_test_fd=-1; | ||
43 | char *checkresult_test=NULL; | ||
44 | asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid()); | ||
45 | - checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT); | ||
46 | + checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT,S_IWUSR); | ||
47 | if (checkresult_test_fd>0){ | ||
48 | unlink(checkresult_test); | ||
49 | } | ||
50 | -- | ||
51 | 2.11.0 | ||
52 | |||
diff --git a/recipes-extended/nagios/nagios-nsca_2.9.1.bb b/recipes-extended/nagios/nagios-nsca_2.9.2.bb index f53a47a0..d342810c 100644 --- a/recipes-extended/nagios/nagios-nsca_2.9.1.bb +++ b/recipes-extended/nagios/nagios-nsca_2.9.2.bb | |||
@@ -6,18 +6,17 @@ SECTION = "console/network" | |||
6 | PRIORITY = "optional" | 6 | PRIORITY = "optional" |
7 | LICENSE = "GPLv2" | 7 | LICENSE = "GPLv2" |
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://src/nsca.c;beginline=1;endline=16;md5=c1bd17485c5c1dd42f664fe8b3528674" | 9 | LIC_FILES_CHKSUM = "file://src/nsca.c;beginline=1;endline=16;md5=dd7a195cc7d8a3ebcfabd65360d0cab4" |
10 | 10 | ||
11 | SRCNAME = "nsca" | 11 | SRCNAME = "nsca" |
12 | 12 | ||
13 | SRC_URI = "http://prdownloads.sourceforge.net/sourceforge/nagios/${SRCNAME}-${PV}.tar.gz \ | 13 | SRC_URI = "http://prdownloads.sourceforge.net/sourceforge/nagios/${SRCNAME}-${PV}.tar.gz \ |
14 | file://init-script.in \ | 14 | file://init-script.in \ |
15 | file://nagios-nsca.service \ | 15 | file://nagios-nsca.service \ |
16 | file://0001-Fix-missing-argument-in-open-calls.patch \ | ||
17 | " | 16 | " |
18 | 17 | ||
19 | SRC_URI[md5sum] = "3fe2576a8cc5b252110a93f4c8d978c6" | 18 | SRC_URI[md5sum] = "43f638c51367a3170476ed106fbb4858" |
20 | SRC_URI[sha256sum] = "fb12349e50838c37954fe896ba6a026c09eaeff2f9408508ad7ede53e9ea9580" | 19 | SRC_URI[sha256sum] = "96eb04ef695873ce462e3f8db08e8a49456ff9595d11acf70a3dd8a2c4af3b5e" |
21 | 20 | ||
22 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 21 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
23 | 22 | ||
@@ -26,7 +25,7 @@ inherit update-rc.d autotools-brokensep systemd dos2unix | |||
26 | DEPENDS = "libmcrypt" | 25 | DEPENDS = "libmcrypt" |
27 | 26 | ||
28 | EXTRA_OECONF += "--with-nsca-user=${NAGIOS_USER} \ | 27 | EXTRA_OECONF += "--with-nsca-user=${NAGIOS_USER} \ |
29 | --with-nsca-group=${NAGIOS_GROUP} \ | 28 | --with-nsca-grp=${NAGIOS_GROUP} \ |
30 | --with-libmcrypt-prefix=${STAGING_DIR_HOST} \ | 29 | --with-libmcrypt-prefix=${STAGING_DIR_HOST} \ |
31 | ac_cv_path_LIBMCRYPT_CONFIG=${STAGING_BINDIR_CROSS}/libmcrypt-config \ | 30 | ac_cv_path_LIBMCRYPT_CONFIG=${STAGING_BINDIR_CROSS}/libmcrypt-config \ |
32 | ac_cv_lib_wrap_main=no \ | 31 | ac_cv_lib_wrap_main=no \ |