freebsd-ports/net-mgmt/nagios2/Makefile

122 lines
3.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nagios
# Date created: 19 May 2002
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nagios
PORTVERSION= 2.12
PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= SF
MAINTAINER= jarrod@netleader.com.au
2003-02-21 14:28:59 +01:00
COMMENT= Extremely powerful network monitoring system
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
USE_ICONV= yes
USE_PERL5_BUILD= yes
USE_AUTOTOOLS= autoconf:262 libltdl:15
USE_RC_SUBR= nagios
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
CONFLICTS= nagios-[13].* nagios-devel-*
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
OPTIONS= EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8+]" OFF \
NANOSLEEP "Use nanosleep in event timing" OFF
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
GNU_CONFIGURE= yes
NAGIOSUSER?= nagios
NAGIOSGROUP?= nagios
NAGIOSDIR?= /var/spool/nagios
NAGIOSUID= 181
NAGIOSGID= ${NAGIOSUID}
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
NAGIOSWWWDIR?= www/nagios
NAGIOSHTMURL?= /nagios
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
# Suggested NAGIOSHOMEURL values:
# Home: main.html
# Tactical Overview: ${NAGIOSCGIURL}/tac.cgi
# Service Detail: ${NAGIOSCGIURL}/status.cgi?host=all
# Host Detail: ${NAGIOSCGIURL}/status.cgi?hostgroup=all&style=hostdetail
# Status Map: ${NAGIOSCGIURL}/statusmap.cgi?host=all
NAGIOSHOMEURL?= main.html
.include <bsd.port.pre.mk>
CPPFLAGS= -I${LOCALBASE}/include -fPIC
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
CFLAGS+= ${CPPFLAGS}
CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
--with-command-group=${WWWGRP} \
--with-nagios-user=${NAGIOSUSER} \
--with-nagios-group=${NAGIOSGROUP} \
--with-htmurl=${NAGIOSHTMURL} \
--with-cgiurl=${NAGIOSCGIURL} \
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
--libexecdir=${PREFIX}/libexec/nagios \
--datadir=${PREFIX}/${NAGIOSWWWDIR} \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=${NAGIOSDIR} \
--prefix=${PREFIX}
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="-L${LOCALBASE}/lib" \
PERL=${PERL}
INSTALL_TARGET= install install-commandmode install-config
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
NAGIOSUSER=${NAGIOSUSER} \
NAGIOSGROUP=${NAGIOSGROUP} \
NAGIOSUID=${NAGIOSUID} \
NAGIOSGID=${NAGIOSGID} \
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
NAGIOSHTMURL=${NAGIOSHTMURL} \
NAGIOSCGIURL=${NAGIOSCGIURL} \
WWWGRP=${WWWGRP}
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
SUB_FILES= pkg-install \
pkg-deinstall \
pkg-message
### XXX: Subtle bug with removing PREFIX from here
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
SUB_LIST= PREFIX=${PREFIX} \
${PLIST_SUB}
.if defined(WITH_EMBEDDED_PERL)
USE_PERL5= 5.8.0+
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
CONFIGURE_ARGS+= --enable-embedded-perl \
--with-perlcache
PLIST_SUB+= EMBEDDED_PERL=""
.else
PLIST_SUB+= EMBEDDED_PERL="@comment "
.endif
.if defined(WITH_NANOSLEEP)
CONFIGURE_ARGS+= --enable-nanosleep
.endif
[maintainer-update] net-mgmt/nagios: Update to 2.0.r1 Update to 2.0.r1 also includes: - Rewrite of port Makefile, options closer aligned in order to bsd.port.mk - Added dependency of libiconv (library required by CGI's, currently installed via nagios-plugins port) - Added support for embedded Perl interpreter (requires Perl 5.8+), caching automatically assumed if enabled, off by default - Added support for use of nanosleep() in event timings, off by default - Added ability to override default view at http://webserver/nagios/ URL, suggested values listed in Makefile (validity after future Nagios releases not guaranteed) - Default install location for web component moved to www/nagios, overridable using existing NAGIOSWWWDIR tunable - Corrected minor build issues by tweaking use of CFLAGS - Moved pkg-install, pkg-deinstall and pkg-message into SUB_FILES - Added configuration file tunable (nagios_configfile) for /etc/rc.conf - Configuration tests now show error on failure instead of command to run - Host status (status.sav) now saved across application starts and restarts - Added patch to correct PERL_SYS_INIT3 call in base/utils.c, patch supplied and tested by Karl Friesen <krf@splip.com>, thanks! - Added Apache configuration suggestion in pkg-message for new installs Files changed: - ports/net-mgmt/nagios/Makefile - ports/net-mgmt/nagios/distinfo - ports/net-mgmt/nagios/files/patch-Makefile.in - ports/net-mgmt/nagios/pkg-plist Files created: - ports/net-mgmt/nagios/files/nagios.sh.in - ports/net-mgmt/nagios/files/patch-base-utils.c - ports/net-mgmt/nagios/files/patch-contrib-Makefile.in - ports/net-mgmt/nagios/files/pkg-deinstall.in - ports/net-mgmt/nagios/files/pkg-install.in - ports/net-mgmt/nagios/files/pkg-message.in Files to be removed: - ports/net-mgmt/nagios/files/DEINSTALL.tmpl - ports/net-mgmt/nagios/files/INSTALL.tmpl - ports/net-mgmt/nagios/files/MESSAGE.tmpl - ports/net-mgmt/nagios/files/nagios.sh.tmpl PR: ports/91499 Submitted by: Jarrod Sayers <jarrod@netleader.com.au>
2006-01-09 01:54:01 +01:00
post-patch:
@${REINPLACE_CMD} -e 's#"main.html"#"${NAGIOSHOMEURL:S/\//\\\//g:S/&/\\&/g}"#' \
${WRKSRC}/html/index.html.in
pre-install:
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
post-install:
@${CHMOD} 775 ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/rw
@${CHOWN} ${NAGIOSUSER}:${NAGIOSGROUP} ${NAGIOSDIR} ${NAGIOSDIR}/archives
@${CHOWN} ${NAGIOSUSER}:${WWWGRP} ${NAGIOSDIR}/rw
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>