summaryrefslogtreecommitdiffstats
path: root/recipes-extended/nagios/nagios-plugins_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/nagios/nagios-plugins_git.bb')
-rw-r--r--recipes-extended/nagios/nagios-plugins_git.bb82
1 files changed, 82 insertions, 0 deletions
diff --git a/recipes-extended/nagios/nagios-plugins_git.bb b/recipes-extended/nagios/nagios-plugins_git.bb
new file mode 100644
index 00000000..82263def
--- /dev/null
+++ b/recipes-extended/nagios/nagios-plugins_git.bb
@@ -0,0 +1,82 @@
1require nagios-common.inc
2
3DESCRIPTION = "A host/service/network monitoring and management system plugins"
4HOMEPAGE = "http://www.nagios-plugins.org"
5SECTION = "console/network"
6PRIORITY = "optional"
7LICENSE = "GPL-3.0-only"
8
9LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
10
11SRCREV = "7c74420158c3e228b3d66d4c781a6abc7a93075a"
12SRC_URI = "git://github.com/nagios-plugins/nagios-plugins.git;protocol=https;branch=master"
13
14PV = "2.4.12+git"
15S = "${WORKDIR}/git"
16
17inherit autotools gettext pkgconfig autotools-brokensep
18
19SKIP_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)}"
20
21EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_HOST} \
22 --with-nagios-user=${NAGIOS_USER} \
23 --with-nagios-group=${NAGIOS_GROUP} \
24 --without-apt-get-command \
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 \
32 ac_cv_path_PERL=${bindir}/perl \
33"
34
35# IPv6
36PACKAGECONFIG[ipv6] = "--with-ipv6,--without-ipv6,,"
37
38# Enable check_ldaps, check_http --ssl, check_tcp --ssl
39PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_DIR_HOST},--without-openssl,openssl,libssl"
40
41# Enable check_ldaps
42PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
43
44# Enable check_smtp --starttls
45PACKAGECONFIG[gnutls] = "--with-gnutls=${STAGING_DIR_HOST},--without-gnutls,gnutls,gnutls"
46
47# Enable check_pgsql
48PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_HOST},--without-pgsql,postgresql,libpq"
49
50# Enable check_mysql, check_mysql_query
51PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_HOST},--without-mysql,mysql5,libmysqlclient"
52
53# Enable check_snmp
54PACKAGECONFIG[snmp] = "\
55 --with-snmpget-command=${bindir}/snmpget --with-snmpgetnext-command=${bindir}/snmpgetnext, \
56 --without-snmpget-command --without-snmpgetnext-command, \
57 , net-snmp-utils \
58"
59
60PACKAGECONFIG ??= "ssl gnutls"
61
62do_configure:prepend() {
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
67}
68
69do_install:append() {
70 sed -i '1s,#! /usr/bin/perl -w.*,#! ${bindir}/env perl,' ${D}${libdir}/nagios/plugins/*
71}
72
73RDEPENDS:${PN} += "\
74 iputils \
75 nagios-base \
76 perl \
77 bash \
78"
79
80FILES:${PN} += "${datadir} \
81 ${NAGIOS_PLUGIN_DIR} \
82"