# $Id: Portfile 43039 2008-12-03 23:12:23Z mcalhoun@macports.org $ PortSystem 1.0 PortGroup perl5 1.0 name nagios-plugins version 1.4.13 revision 1 categories net maintainers markd platforms darwin 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 http://nagios.org master_sites sourceforge:nagiosplug checksums md5 be6cc7699fff3ee29d1fd4d562377386 destroot.destdir prefix=${prefix} DESTDIR=${destroot} depends_build port:fping \ port:p5-net-snmp \ port:p5-digest-sha1 \ port:p5-digest-hmac \ port:p5-crypt-des \ port:openssl configure.args --sbindir=${prefix}/share/nagios/cgi-bin \ --libexecdir=${prefix}/libexec/nagios \ --datadir=${prefix}/share/nagios \ --sysconfdir=${prefix}/etc/nagios \ --with-df-command="/bin/df -Pkt noprocfs" \ --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ --with-openssl=${prefix}/bin \ --without-mysql \ --without-pgsql \ --without-radius \ --without-lmstat \ --without-qstat \ --without-qmail-qstat variant mysql5 { depends_lib-append port:mysql5 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix}/lib/mysql5 } variant mysql4 { depends_lib-append port:mysql4 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix} } 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} delete ${destroot}${prefix}/lib/charset.alias }