maintainers markd openmaintainer
description Nagios is a host and service monitoring program
long_description A network service and host monitor that can notify you \
when servers go down by monitoring for external services \
such as HTTP, FTP, SMTP, SNMP, as well as internal host \
checks for things such as CPU and disk usage and many \
homepage http://nagios.org
checksums md5 d4655ee8c95c9679fd4fd53dac34bbe3
depends_lib port:openssl \
set sysconfdir ${prefix}/etc/${name}
destroot.destdir prefix=${prefix} DESTDIR=${destroot}
destroot.target install install-config install-commandmode install-init
configure.args --with-cgiurl=/nagios/cgi-bin \
--with-nagios-user=nagios \
--with-nagios-grp=nagios \
--with-command-grp=nagios \
--with-gd-lib=${prefix}/lib \
--with-gd-inc=${prefix}/include \
--sbindir=${prefix}/sbin/nagios \
--libexecdir=${prefix}/libexec/nagios \
--datadir=${prefix}/share/nagios \
--with-lockfile=${prefix}/var/nagios/nagios.lock \
--with-init-dir=${prefix}/var/nagios \
--sysconfdir=${sysconfdir} \
--localstatedir=${prefix}/var/nagios \
--with-httpd-conf=/etc/apache2/httpd.conf
configure.args-delete --with-httpd-conf=/etc/apache2/httpd.conf
configure.args-append --with-httpd-conf=/etc/httpd/httpd.conf
startupitem.start "${prefix}/var/nagios/nagios.init start"
startupitem.stop "${prefix}/var/nagios/nagios.init stop"
reinplace "s|INIT_OPTS=-o root -g root|INIT_OPTS=-o nagios -g nagios|g" \
"${worksrcpath}/Makefile.in"