# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description Nagios plugins for the Nagios host and service monitor
long_description Nagios plugins are standalone programs that report the \
status of hosts and services to the Nagios monitoring \
homepage https://nagios.org
master_sites https://nagios-plugins.org/download/
checksums rmd160 39c364ac08854a1829d47562d4add1ae58a49334 \
sha256 647c0ba4583d891c965fc29b77c4ccfeccc21f409fdf259cb8af52cb39c21e18
patchfiles patch-plugins-check_nt.c.diff \
patch-plugins-check_load.c.diff
destroot.destdir prefix=${prefix} DESTDIR=${destroot}
depends_build port:fping \
port:p${perl5.major}-net-snmp \
port:p${perl5.major}-digest-sha1 \
port:p${perl5.major}-digest-hmac \
port:p${perl5.major}-crypt-des \
path:lib/libssl.dylib:openssl
configure.args --sbindir=${prefix}/share/nagios/cgi-bin \
--libexecdir=${prefix}/libexec/nagios \
--datadir=${prefix}/share/nagios \
--sysconfdir=${prefix}/etc/nagios \
--with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \
--with-openssl=${prefix}/bin \
--with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \
--with-ps-format="%s %d %d %d %d %d %f %s %n" \
--with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
variant mysql56 conflicts mysql57 {
depends_lib-append path:bin/mysql_config56:mysql56
configure.args-delete --without-mysql
configure.args-append --with-mysql=${prefix}/lib/mysql56
variant mysql57 conflicts mysql56 {
depends_lib-append path:bin/mysql_config57:mysql57
configure.args-delete --without-mysql
configure.args-append --with-mysql=${prefix}/lib/mysql57