diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-03-26 03:30:07 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-03-26 03:30:07 +0000 |
commit | 5385113151b669dd5593acaa28e26fc81c8ba0d2 (patch) | |
tree | 95f363552cc8508bf6befd2b142585478ed76b22 | |
parent | b24f0a31529ae11d93c63c2b51719ceffb855135 (diff) | |
download | meta-virtualization-5385113151b669dd5593acaa28e26fc81c8ba0d2.tar.gz |
nagios-plugins: update and convert to git
Updating the nagios plugins as well as converting to git from
the sourceforge tarball.
We also pass some additional paths to our binaries to avoid
probing the host build.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/nagios/nagios-plugins_git.bb (renamed from recipes-extended/nagios/nagios-plugins_2.2.1.bb) | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/recipes-extended/nagios/nagios-plugins_2.2.1.bb b/recipes-extended/nagios/nagios-plugins_git.bb index 471d4b42..82263def 100644 --- a/recipes-extended/nagios/nagios-plugins_2.2.1.bb +++ b/recipes-extended/nagios/nagios-plugins_git.bb | |||
@@ -8,15 +8,13 @@ LICENSE = "GPL-3.0-only" | |||
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
10 | 10 | ||
11 | SRC_URI = "https://www.nagios-plugins.org/download/${BPN}-${PV}.tar.gz \ | 11 | SRCREV = "7c74420158c3e228b3d66d4c781a6abc7a93075a" |
12 | " | 12 | SRC_URI = "git://github.com/nagios-plugins/nagios-plugins.git;protocol=https;branch=master" |
13 | |||
14 | SRC_URI[md5sum] = "fb521d5c05897f165b0b1862c1e5cb27" | ||
15 | SRC_URI[sha256sum] = "647c0ba4583d891c965fc29b77c4ccfeccc21f409fdf259cb8af52cb39c21e18" | ||
16 | 13 | ||
17 | S = "${WORKDIR}/${BPN}-${PV}" | 14 | PV = "2.4.12+git" |
15 | S = "${WORKDIR}/git" | ||
18 | 16 | ||
19 | inherit autotools gettext | 17 | inherit autotools gettext pkgconfig autotools-brokensep |
20 | 18 | ||
21 | SKIP_RECIPE[nagios-plugins] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'webserver', '', 'Depends on nagios-core which depends on apache2 from meta-webserver which is not included', d)}" | 19 | SKIP_RECIPE[nagios-plugins] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'webserver', '', 'Depends on nagios-core which depends on apache2 from meta-webserver which is not included', d)}" |
22 | 20 | ||
@@ -25,6 +23,12 @@ EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_HOST} \ | |||
25 | --with-nagios-group=${NAGIOS_GROUP} \ | 23 | --with-nagios-group=${NAGIOS_GROUP} \ |
26 | --without-apt-get-command \ | 24 | --without-apt-get-command \ |
27 | --with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin \ | 25 | --with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin \ |
26 | --with-sudo-command=${bindir}/sudo \ | ||
27 | --with-ssh-command=${bindir}/ssh \ | ||
28 | --with-ps-command=${bindir}/ps \ | ||
29 | --with-ps-format='%*s %s %d %d %d %*s %*s %*s %*s %*s %*s %*s %*s %n%s' \ | ||
30 | --with-ps-varlist='procstat,&procuid,&procpid,&procppid,&pos,procprog' \ | ||
31 | --with-ps-cols=6 \ | ||
28 | ac_cv_path_PERL=${bindir}/perl \ | 32 | ac_cv_path_PERL=${bindir}/perl \ |
29 | " | 33 | " |
30 | 34 | ||
@@ -55,8 +59,11 @@ PACKAGECONFIG[snmp] = "\ | |||
55 | 59 | ||
56 | PACKAGECONFIG ??= "ssl gnutls" | 60 | PACKAGECONFIG ??= "ssl gnutls" |
57 | 61 | ||
58 | do_configure() { | 62 | do_configure:prepend() { |
59 | oe_runconf || die "make failed" | 63 | # rename these macros to have .m4 suffix so that autoreconf could recognize them |
64 | for macro in `ls ${S}/autoconf-macros/ax_nagios_get_*`; do | ||
65 | mv $macro $macro.m4 | ||
66 | done | ||
60 | } | 67 | } |
61 | 68 | ||
62 | do_install:append() { | 69 | do_install:append() { |