2002-05-29 08:35:18 +02:00
|
|
|
# New ports collection makefile for: nagios
|
|
|
|
# Date created: 19 May 2002
|
|
|
|
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
|
2000-07-12 20:43:32 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-05-29 08:35:18 +02:00
|
|
|
PORTNAME= nagios
|
2008-05-29 00:34:24 +02:00
|
|
|
PORTVERSION= 2.12
|
2009-01-16 01:00:22 +01:00
|
|
|
PORTREVISION= 2
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2008-09-03 02:30:56 +02:00
|
|
|
MASTER_SITES= SF
|
2000-07-12 20:43:32 +02:00
|
|
|
|
2005-10-16 12:33:35 +02:00
|
|
|
MAINTAINER= jarrod@netleader.com.au
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Extremely powerful network monitoring system
|
2000-07-12 20:43:32 +02:00
|
|
|
|
2003-08-18 18:15:10 +02:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
2004-02-23 05:42:13 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
|
2000-07-12 20:43:32 +02:00
|
|
|
|
[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
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262 libltdl:15
|
2008-09-03 02:30:56 +02:00
|
|
|
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
|
|
|
|
2008-09-03 02:30:56 +02:00
|
|
|
CONFLICTS= nagios-[13].* nagios-devel-*
|
2007-12-12 14:57:53 +01:00
|
|
|
|
[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
|
2004-02-11 05:56:00 +01:00
|
|
|
|
[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
|
2004-02-11 05:56:00 +01:00
|
|
|
|
|
|
|
NAGIOSUSER?= nagios
|
|
|
|
NAGIOSGROUP?= nagios
|
|
|
|
NAGIOSDIR?= /var/spool/nagios
|
2003-07-14 04:53:03 +02:00
|
|
|
|
2007-04-07 16:25:48 +02:00
|
|
|
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
|
2005-10-15 16:28:44 +02:00
|
|
|
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
|
2005-11-01 14:37:09 +01:00
|
|
|
|
2004-07-25 20:48:12 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-02-14 22:52:42 +01:00
|
|
|
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}
|
|
|
|
|
2004-02-11 05:56:00 +01:00
|
|
|
CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
|
2005-11-01 14:37:09 +01:00
|
|
|
--with-command-group=${WWWGRP} \
|
2004-02-11 05:56:00 +01:00
|
|
|
--with-nagios-user=${NAGIOSUSER} \
|
2005-02-14 22:52:42 +01:00
|
|
|
--with-nagios-group=${NAGIOSGROUP} \
|
2005-10-15 16:28:44 +02:00
|
|
|
--with-htmurl=${NAGIOSHTMURL} \
|
|
|
|
--with-cgiurl=${NAGIOSCGIURL} \
|
2005-11-01 14:37:09 +01:00
|
|
|
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
|
2002-07-22 05:19:03 +02:00
|
|
|
--libexecdir=${PREFIX}/libexec/nagios \
|
2005-11-01 14:37:09 +01:00
|
|
|
--datadir=${PREFIX}/${NAGIOSWWWDIR} \
|
2002-05-29 08:35:18 +02:00
|
|
|
--sysconfdir=${PREFIX}/etc/nagios \
|
2004-02-11 05:56:00 +01:00
|
|
|
--localstatedir=${NAGIOSDIR} \
|
2002-05-29 08:35:18 +02:00
|
|
|
--prefix=${PREFIX}
|
2001-04-04 00:07:20 +02:00
|
|
|
|
[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
|
|
|
|
|
2005-11-01 14:37:09 +01:00
|
|
|
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
|
|
|
|
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
|
|
|
|
NAGIOSUSER=${NAGIOSUSER} \
|
|
|
|
NAGIOSGROUP=${NAGIOSGROUP} \
|
2007-04-07 16:25:48 +02:00
|
|
|
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} \
|
2005-11-01 14:37:09 +01:00
|
|
|
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
|
|
|
|
|
2008-09-03 02:30:56 +02:00
|
|
|
### 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)
|
2007-09-08 03:12:10 +02:00
|
|
|
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
|
2005-11-01 14:37:09 +01:00
|
|
|
.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:
|
2006-05-07 01:37:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#"main.html"#"${NAGIOSHOMEURL:S/\//\\\//g:S/&/\\&/g}"#' \
|
|
|
|
${WRKSRC}/html/index.html.in
|
2000-07-12 20:43:32 +02:00
|
|
|
|
|
|
|
pre-install:
|
2004-02-11 05:56:00 +01:00
|
|
|
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
2005-02-14 22:52:42 +01:00
|
|
|
@${CHMOD} 775 ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/rw
|
|
|
|
@${CHOWN} ${NAGIOSUSER}:${NAGIOSGROUP} ${NAGIOSDIR} ${NAGIOSDIR}/archives
|
2005-11-01 14:37:09 +01:00
|
|
|
@${CHOWN} ${NAGIOSUSER}:${WWWGRP} ${NAGIOSDIR}/rw
|
2004-02-11 05:56:00 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-07-12 20:43:32 +02:00
|
|
|
|
2004-07-25 20:48:12 +02:00
|
|
|
.include <bsd.port.post.mk>
|