9f8fc0cb1b
ChangeLog: * Fixes problem where disabling all active hosts/services was not taking effect * Fixes for compiler warnings (code cleanup by Stephen Gran) * Fixes for format errors in event handler logging (Guillaume Rousse) * Fixed incorrect info in sample nagios.cfg file for state_retention_file (Michael Friedrich) * Fixed broker_event_handler() to return ERR if data is NULL (Michael Friedrich) * Patch to new_mini_epn to allow any command line length without breaking on extra trailing or leading whitespace (Ray Bengen) * Patch to mini_epn to allow any command line length (Thomas Guyot-Sionnest) * Patch to speed up loading of state retention data (Matthieu Kermagoret) * Custom notifications are now suppressed during scheduled downtime (Sven Nierlein) * Added code to warn user about exit code of 126 meaning plugin is not executable (bug #153) * Scheduled downtime can now start on SOFT error states (bug #47) * Main window frame URL can now be specify with a "corewindow=" parameter * Improved config CGI shows commands, command args in an easier to use manner (Jochen Bern) * Added ability for NEB modules to override execution of event handlers (Sven Nierlein) * Custom macros are no longer cleaned/stripped as they are user-defined and should be trusted (Peter Morch) * Fix for choosing next valid time on day of DST change when clocks go one hour backwards * Fix for nagios now erroring when "Error: Could not find any contactgroup matching..." displayed * Fix tap tests for Sol0 and newer versions of Test::Harness * Fix for notifications not being sent out when scheduled downtime is canceluzzner) * Fix for first notification delay being calculated incorrectly, and notifications potentially going out early (Plachowski) * Fix for text of scheduling downtime of all services on a host (Holger Weiss) * Fix for services inheriting notification period from hosts if not defined (Gordon Messmer) * Fix for incorrect service states on host failures (bug #130 Pet) * Fix for incorrect service state attributes being set on host failures (bug #128 Petya Kohts) * Fix for non-scheduled hostsnd services not being updated in NDOUtils * Fix for typos in TAC, CMD CGIs (bugs #150, #144, #148) * Fix for types in documentation (bugs #145, #105, #106) * Fix for incorrect host state counts in status CGI when viewing servicegroups (bug #72) * Fix few Splunk integration query parameters (bug #136) * Fix for extra field header in availability CSV export (bug #113) * Fix foracro processing code modifying input string (Jochen Bern) * Fix for update check API * Fix for CGI speedup when persistent=0 f comments * Fix for event execution loop re-scheduling host checks instead of executing them if service checks are disabled (b #152) * Fix for segfaults on Solaris (Torsten Huebler) * Fix for incorrect comment expiration times being passed to event bror (Mattieu Kermagot) * Doc updates related to cleaning of custom macros (Peter Valdemar Morch) * Fix to sample notify-service--email command (bug #62) * Fix for retaining host display name and alias, as well as service display name (Folkert van Heusden* Link to allow scheduling downtime for all services on a host (Hendrik Baecker) * Speedup to CGIs when lots of comments or dotimes in status.dat file (Jonathan Kamens) * Patch for new_mini_epn to allow for any command line length without breaking extra trailing or leading whitespace (Ray Bengen) * Fix for incorrect scheduling when time has gone back an hour (partial fix for 24x7) * Fix for compile on Fedora Core 3 (bug #0000082) * Fix for compile on Solaris * Fix for logging test, which was not timezone aware (bug #0000077 - Allan Clark) * Trivial cleanups for autoconf (Allan Clark) * Fix for CSS validation of padding: X * Fix for documentation re: case-insensitive nature of custom variables (Marc Powell) * Fix for template configurations which use negated wildcards (Tim Wilde) * Fix for read-only permissions bug in CGIs that caused problems viewing comments (bug #0000029) * Fix for incorrect CGI reports (availability, trends, etc.) when reporting period spans Daylight Savings Time (bug #0000046) * Fix for detection of truecolor support in GD library (Lars Hecking) * Reverted to use --datadir configure script option instead of the more recently introduced --datarootdir option * Status and retention files are now flushed/synced to disk to prevent incomplete information being displayed in CGIs * Fix for incorrect next service check time calculation when Nagios is reloaded with different timeperiod ranges * Updated Fedora quistart guide to indicate PHP requirements * Known issue: Service checks that are defined with timeperiods that contain "exclude" directives are incorrectly re-scheduled. Don't use these for now - we'll get this fixed for 3.4
88 lines
2.8 KiB
Makefile
88 lines
2.8 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2011/04/08 22:37:24 morr Exp $
|
|
#
|
|
|
|
DISTNAME= nagios-3.2.3
|
|
PKGNAME= ${DISTNAME:S/-/-base-/}
|
|
CATEGORIES= net sysutils
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.nagios.org/
|
|
COMMENT= Network monitor
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../net/nagios-base/Makefile.common"
|
|
.include "options.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-gd-lib=${PREFIX}/lib
|
|
CONFIGURE_ARGS+= --with-gd-inc=${PREFIX}/include
|
|
CONFIGURE_ARGS+= --enable-embedded-perl
|
|
CONFIGURE_ARGS+= --with-perlcache
|
|
|
|
CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER}
|
|
CONFIGURE_ARGS+= --with-nagios-group=${NAGIOS_GROUP}
|
|
CONFIGURE_ARGS+= --with-command-user=${NAGIOS_USER}
|
|
CONFIGURE_ARGS+= --with-command-group=${NAGIOSCMD_GROUP}
|
|
CONFIGURE_ARGS+= --with-init-dir=${PREFIX}/share/examples/rc.d
|
|
CONFIGURE_ARGS+= --with-lockfile=/var/run/nagios/nagios.lock
|
|
|
|
USE_TOOLS+= mail:run perl
|
|
CONFIGURE_ARGS+= --with-mail=${TOOLS_PLATFORM.mail:Q}
|
|
|
|
RCD_SCRIPTS+= nagios
|
|
FILES_SUBST+= NAGIOS_USER=${NAGIOS_USER}
|
|
|
|
INSTALL_TARGET= install install-config
|
|
|
|
BUILD_DEFS+= VARBASE NAGIOS_USER NAGIOS_GROUP NAGIOSCMD_GROUP
|
|
BUILD_DEFS+= NAGIOSDIR
|
|
|
|
PKG_GROUPS+= ${NAGIOS_GROUP}
|
|
PKG_GROUPS+= ${NAGIOSCMD_GROUP}
|
|
|
|
PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}
|
|
|
|
PKG_GECOS.${NAGIOS_USER}= Nagios Runtime User
|
|
|
|
MESSAGE_SUBST+= NAGIOS_USER=${NAGIOS_USER}
|
|
MESSAGE_SUBST+= NAGIOSCMD_GROUP=${NAGIOSCMD_GROUP}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/nagios
|
|
EGFILES= nagios.cfg cgi.cfg resource.cfg
|
|
EGFILES+= objects/templates.cfg objects/commands.cfg
|
|
EGFILES+= objects/contacts.cfg objects/timeperiods.cfg
|
|
EGFILES+= objects/localhost.cfg objects/windows.cfg
|
|
EGFILES+= objects/printer.cfg objects/switch.cfg
|
|
|
|
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/objects
|
|
|
|
.for files in ${EGFILES}
|
|
CONF_FILES+= ${EGDIR}/${files}-sample ${PKG_SYSCONFDIR}/${files}
|
|
.endfor
|
|
CONF_FILES+= ${EGDIR}/nagios.conf ${PKG_SYSCONFDIR}/nagios.conf
|
|
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR} ${NAGIOS_USER} ${NAGIOS_GROUP} 0775
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/archives ${NAGIOS_USER} ${NAGIOS_GROUP} 0775
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/rw ${NAGIOS_USER} ${NAGIOSCMD_GROUP} 0775
|
|
OWN_DIRS_PERMS+=${NAGIOSDIR}/checkresults ${NAGIOS_USER} ${NAGIOSCMD_GROUP} 0775
|
|
|
|
SUBST_CLASSES+= files
|
|
SUBST_STAGE.files= post-build
|
|
SUBST_FILES.files= nagios.conf.dist
|
|
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
pre-build:
|
|
${CP} ${FILESDIR}/nagios.conf.dist ${WRKSRC}/nagios.conf.dist
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/nagios.conf.dist ${DESTDIR}/${EGDIR}/nagios.conf
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|