# -*- 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
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 https://nagios.org
livecheck.regex nagios-(\[0-9.\]+)${extract.suffix}
master_sites sourceforge:project/nagios/nagios-4.x/nagios-${version}
checksums rmd160 afdbd6ed29b6ac64574caeade70a37810c5b2cdc \
sha256 bf69e2d2fae218694585677472d355ba676120cbd024164281e635dc467c391d\
depends_lib path:lib/libssl.dylib: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"