6 | | name nagios-plugins |
7 | | version 1.4.15 |
8 | | revision 4 |
9 | | categories net |
10 | | license GPL-3+ |
11 | | maintainers markd openmaintainer |
12 | | platforms darwin |
13 | | |
14 | | description Nagios plugins for the Nagios host and service monitor |
15 | | |
16 | | long_description Nagios plugins are standalone programs that report the \ |
17 | | status of hosts and services to the Nagios monitoring \ |
18 | | framework. |
19 | | |
20 | | homepage http://nagios.org |
21 | | master_sites sourceforge:nagiosplug |
22 | | checksums md5 56abd6ade8aa860b38c4ca4a6ac5ab0d |
23 | | patchfiles patch-plugins-check_procs.c.diff |
24 | | |
25 | | perl5.branches 5.12 |
26 | | |
27 | | destroot.destdir prefix=${prefix} DESTDIR=${destroot} |
28 | | |
29 | | depends_build port:fping \ |
30 | | port:p5.12-net-snmp \ |
31 | | port:p5.12-digest-sha1 \ |
32 | | port:p5.12-digest-hmac \ |
33 | | port:p5.12-crypt-des \ |
34 | | port:openssl |
35 | | |
36 | | configure.args --sbindir=${prefix}/share/nagios/cgi-bin \ |
37 | | --libexecdir=${prefix}/libexec/nagios \ |
38 | | --datadir=${prefix}/share/nagios \ |
39 | | --sysconfdir=${prefix}/etc/nagios \ |
40 | | --with-df-command="/bin/df -Pkt noprocfs" \ |
41 | | --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ |
42 | | --with-openssl=${prefix}/bin \ |
43 | | --without-mysql \ |
44 | | --without-pgsql \ |
45 | | --without-radius \ |
46 | | --without-lmstat \ |
47 | | --without-qstat \ |
48 | | --without-qmail-qstat \ |
49 | | --with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \ |
50 | | --with-ps-format="%s %d %d %d %d %d %f %s %n" \ |
51 | | --with-ps-cols=9 \ |
52 | | --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos" |
| 7 | name nagios-plugins |
| 8 | version 2.0.3 |
| 9 | categories net |
| 10 | license GPL-3+ |
| 11 | maintainers markd openmaintainer |
| 12 | platforms darwin |
| 13 | |
| 14 | description Nagios plugins for the Nagios host and service monitor |
| 15 | |
| 16 | long_description Nagios plugins are standalone programs that report the \ |
| 17 | status of hosts and services to the Nagios monitoring \ |
| 18 | framework. |
| 19 | |
| 20 | homepage http://www.nagios.org/projects/nagiosplugins |
| 21 | master_sites http://nagios-plugins.org/download/ |
| 22 | checksums rmd160 b682b126c78df51f64d9cb8599d2f9dfd411d5f4 \ |
| 23 | sha256 8f0021442dce0138f0285ca22960b870662e28ae8973d49d439463588aada04a |
| 24 | |
| 25 | destroot.destdir prefix=${prefix} DESTDIR=${destroot} |
| 26 | |
| 27 | depends_build port:fping port:openssl |
| 28 | depends_lib port:openssl port:cyrus-sasl2 port:gettext \ |
| 29 | port:libiconv port:openldap |
| 30 | |
| 31 | configure.args --sbindir=${prefix}/share/nagios/cgi-bin \ |
| 32 | --libexecdir=${prefix}/libexec/nagios \ |
| 33 | --datadir=${prefix}/share/nagios \ |
| 34 | --sysconfdir=${prefix}/etc/nagios \ |
| 35 | --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ |
| 36 | --with-openssl=${prefix}/bin \ |
| 37 | --without-mysql \ |
| 38 | --without-pgsql \ |
| 39 | --without-radius \ |
| 40 | --with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \ |
| 41 | --with-ps-format="%s %d %d %d %d %d %f %s %n" \ |
| 42 | --with-ps-cols=9 \ |
| 43 | --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos" \ |
| 44 | --with-mailq-command="/usr/bin/mailq" \ |
| 45 | --with-ipv6 |
79 | | xinstall -m 755 -d ${destroot}${perl5.archlib} |
80 | | xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \ |
81 | | ${destroot}${perl5.archlib} |
| 92 | xinstall -m 755 -d ${destroot}${perl5.archlib} |
| 93 | xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \ |
| 94 | ${destroot}${perl5.archlib} |
| 95 | |
| 96 | xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name} |
| 97 | copy ${filespath}/commands-nagios-plugins.cfg ${destroot}${prefix}/share/examples/${name}/ |
| 98 | } |
| 99 | |
| 100 | post-activate { |
| 101 | if ![file exists ${prefix}/etc/nagios/objects/commands-nagios-plugins.cfg ] { |
| 102 | if ![file exists ${prefix}/etc/nagios/objects ] { |
| 103 | xinstall -d ${prefix}/etc/nagios/objects |
| 104 | } |
| 105 | copy ${prefix}/share/examples/${name}/commands-nagios-plugins.cfg ${prefix}/etc/nagios/objects/ |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | default_variants +perl5_16 +gnutls |
| 110 | |
| 111 | variant universal {} |
| 112 | configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" |
| 113 | |
| 114 | variant perl5_12 conflicts perl5_18 perl5_16 description { Perl bindings with perl 5.12} { |
| 115 | perl5.branches 5.12 |
| 116 | configure.args-append --with-perl=${prefix}/bin/perl5.12 |
| 117 | depends_build-append port:p5.12-net-snmp \ |
| 118 | port:p5.12-digest-sha1 \ |
| 119 | port:p5.12-digest-hmac \ |
| 120 | port:p5.12-crypt-des |