source: trunk/dports/net/nagios-plugins/Portfile

Last change on this file was 152621, checked in by mps@…, 12 months ago

nagios-plugins: update to version 2.1.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# -*- 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
2# $Id: Portfile 152621 2016-09-13 12:24:20Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                nagios-plugins
8version             2.1.3
9categories          net
10license             GPL-3+
11maintainers         nomaintainer
12platforms           darwin
13
14description         Nagios plugins for the Nagios host and service monitor
15
16long_description    Nagios plugins are standalone programs that report the \
17                    status of hosts and services to the Nagios monitoring \
18                    framework.
19
20homepage            http://nagios.org
21master_sites        https://nagios-plugins.org/download/
22
23checksums           rmd160  86bae48de59f95af9e4ec189f89ac38becc6e272 \
24                    sha256  46f57d4b2379f4255719be7605290ec90639b9f411be78091e8971cf54f15453
25
26patchfiles          patch-plugins-check_nt.c.diff
27
28perl5.branches      5.24
29
30destroot.destdir    prefix=${prefix} DESTDIR=${destroot}
31
32depends_build       port:fping \
33                    port:p${perl5.major}-net-snmp \
34                    port:p${perl5.major}-digest-sha1 \
35                    port:p${perl5.major}-digest-hmac \
36                    port:p${perl5.major}-crypt-des \
37                    path:lib/libssl.dylib:openssl
38
39configure.args      --sbindir=${prefix}/share/nagios/cgi-bin \
40                    --libexecdir=${prefix}/libexec/nagios \
41                    --datadir=${prefix}/share/nagios \
42                    --sysconfdir=${prefix}/etc/nagios \
43                    --with-df-command="/bin/df -Pkt noprocfs" \
44                    --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \
45                    --with-openssl=${prefix}/bin \
46                    --without-mysql \
47                    --without-pgsql \
48                    --without-radius \
49                    --without-lmstat \
50                    --without-qstat \
51                    --without-qmail-qstat \
52                    --with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \
53                    --with-ps-format="%s %d %d %d %d %d %f %s %n" \
54                    --with-ps-cols=9 \
55                    --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
56
57variant mysql56 conflicts mysql57 {
58    depends_lib-append path:bin/mysql_config56:mysql56
59    configure.args-delete --without-mysql
60    configure.args-append --with-mysql=${prefix}/lib/mysql56
61}
62
63variant mysql57 conflicts mysql56 {
64    depends_lib-append path:bin/mysql_config57:mysql57
65    configure.args-delete --without-mysql
66    configure.args-append --with-mysql=${prefix}/lib/mysql57
67}
68
69variant qstat {
70    depends_lib-append port:qstat
71    configure.args-delete --without-qstat
72    configure.args-append --with-qstat=${prefix}/bin
73}
74
75post-extract {
76# Replace check_nt with the enhanced one from www.shatterit.com/nc_net/files that supports NC_Net Win client
77    file copy -force ${filespath}/check_nt.c ${worksrcpath}/plugins
78}
79
80post-destroot {
81# Put a copy of utils.pm in perl's path for certain Nagios perl plugins
82    xinstall -m 755 -d ${destroot}${perl5.archlib}
83    xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \
84        ${destroot}${perl5.archlib}
85}
Note: See TracBrowser for help on using the repository browser.