mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
83 lines
3.1 KiB
Tcl
83 lines
3.1 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup perl5 1.0
|
|
|
|
name nagios-plugins
|
|
version 2.3.3
|
|
revision 1
|
|
categories net
|
|
license GPL-3+
|
|
maintainers nomaintainer
|
|
|
|
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 \
|
|
framework.
|
|
|
|
homepage https://nagios.org
|
|
master_sites https://nagios-plugins.org/download/
|
|
|
|
checksums rmd160 4ceeae22f81e306cba9dc935a3721568469eff1d \
|
|
sha256 07859071632ded58c5135d613438137022232da75f8bdc1687f3f75da2fe597f \
|
|
size 2782610
|
|
|
|
patchfiles patch-plugins-check_nt.c.diff \
|
|
implicit.patch
|
|
|
|
perl5.branches 5.34
|
|
|
|
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 \
|
|
--without-mysql \
|
|
--without-pgsql \
|
|
--without-radius \
|
|
--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-cols=9 \
|
|
--with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
|
|
|
|
variant mysql56 conflicts mysql57 {
|
|
depends_lib-append port:mysql56
|
|
configure.args-delete --without-mysql
|
|
configure.args-append --with-mysql=${prefix}/lib/mysql56
|
|
}
|
|
|
|
variant mysql57 conflicts mysql56 {
|
|
depends_lib-append port:mysql57
|
|
configure.args-delete --without-mysql
|
|
configure.args-append --with-mysql=${prefix}/lib/mysql57
|
|
}
|
|
|
|
variant qstat {
|
|
depends_lib-append port:qstat
|
|
configure.args-delete --without-qstat
|
|
configure.args-append --with-qstat=${prefix}/bin
|
|
}
|
|
|
|
post-extract {
|
|
# Replace check_nt with the enhanced one from www.shatterit.com/nc_net/files that supports NC_Net Win client
|
|
file copy -force ${filespath}/check_nt.c ${worksrcpath}/plugins
|
|
}
|
|
|
|
post-destroot {
|
|
# Put a copy of utils.pm in perl's path for certain Nagios perl plugins
|
|
xinstall -m 755 -d ${destroot}${perl5.archlib}
|
|
xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \
|
|
${destroot}${perl5.archlib}
|
|
}
|