Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do. The monitoring
daemon runs intermittent checks on hosts and services you specify
using external "plugins" which return status information to Nagios.
When problems are encountered, the daemon can send notifications out
to administrative contacts in a variety of different ways (email,
instant message, SMS, etc.). Current status information, historical
logs, and reports can all be accessed via a web browser.
WWW: http://www.nagios.org/

===> The following configuration options are available for nagios4-4.3.4_1,1:
COREWINDOW=off: Enable the corewindow parameter
NANOSLEEP=off: Use nanosleep in event timing
UNHANDLED_HACK=off: Display passive checks in unhandled queries
====> Build and/or install plugins: you can only select none or one of them
MONPLUGINS=off: Plugins from monitoring-plugins.org
NAGPLUGINS=on: Plugins from nagios-plugins.org
===> Use 'make config' to modify these settings

converters/libiconv:
- Remove const qualifier from iconv(3) to match POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
- Patch iconv.h to expose more GNU extensions when LIBICONV_PLUG is
defined because the base system iconv supports these extensions too.
Add/remove patches to/from ports to call iconv with non-const arguments.
This breaks some ports on FreeBSD 10 because base system iconv.h still has
the const qualifier. Fix this by letting USES=iconv add a build dependency
on converters/libiconv so ports can use its iconv.h (with LIBICONV_PLUG
defined) instead of the base system iconv.h.
This exposed some ports that link with libiconv when it is available instead
of using libc iconv. In these cases one of the following changes has been

Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS. Also remove references to
PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
required additional patches.
Somewhat simplified a linker command line looks like:
${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}
where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us. If possible -L and -l flags need to be

It seems nagios 4 can't build without the event broker, so remove the option
and force it on.
While there, replace a REINPLACE_CMD by a patch to get rid of a
bsd.port.options.mk include.
Reported by: demon, pkg-fallout
Sponsored by: Absolight