diff options
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nagios/Makefile | 73 | ||||
-rw-r--r-- | net-mgmt/nagios/distinfo | 4 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-html-main.php | 10 |
3 files changed, 40 insertions, 47 deletions
diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile index 1735b0de6c18..9a117fbc50e3 100644 --- a/net-mgmt/nagios/Makefile +++ b/net-mgmt/nagios/Makefile @@ -1,12 +1,8 @@ -# New ports collection makefile for: nagios -# Date created: 19 May 2002 -# Whom: Blaz Zupan <blaz@si.FreeBSD.org> -# +# Created by: Blaz Zupan <blaz@si.FreeBSD.org> # $FreeBSD$ -# PORTNAME= nagios -PORTVERSION= 3.4.1 +PORTVERSION= 3.4.3 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION} @@ -15,42 +11,18 @@ COMMENT= Extremely powerful network monitoring system LICENSE= GPLv2 -LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd +LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins USE_ICONV= yes USE_PERL5_BUILD=yes USE_AUTOTOOLS= autoconf libltdl +USE_PHP= yes USE_RC_SUBR= nagios CONFLICTS= nagios-[12].* nagios-devel-* -OPTIONS= EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8.0+]" off \ - NANOSLEEP "Use nanosleep in event timing" off \ - EVENT_BROKER "Enable event broker functionality" off \ - UNHANDLED_HACK "Display passive checks in unhandled queries" off - GNU_CONFIGURE= yes - -NAGIOSUSER?= nagios -NAGIOSGROUP?= nagios -NAGIOSDIR?= /var/spool/nagios - -NAGIOSUID= 181 -NAGIOSGID= ${NAGIOSUID} - -NAGIOSWWWDIR?= www/nagios -NAGIOSHTMURL?= /nagios -NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin - -USERS= ${NAGIOSUSER} -GROUPS= ${NAGIOSGROUP} - -.include <bsd.port.pre.mk> - -CPPFLAGS+= -I${LOCALBASE}/include -fPIC -CFLAGS+= ${CPPFLAGS} - CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \ --with-command-group=${WWWGRP} \ --with-nagios-user=${NAGIOSUSER} \ @@ -66,14 +38,15 @@ CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \ --with-httpd-conf=${PREFIX}/etc \ --with-checkresult-dir=${NAGIOSDIR}/checkresults \ --disable-statuswrl - CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \ PERL=${PERL} +CPPFLAGS+= -I${LOCALBASE}/include -fPIC +CFLAGS+= ${CPPFLAGS} + MAKE_JOBS_UNSAFE= yes INSTALL_TARGET= install install-commandmode install-config - PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \ NAGIOSWWWDIR=${NAGIOSWWWDIR} \ NAGIOSUSER=${NAGIOSUSER} \ @@ -90,9 +63,29 @@ SUB_FILES= pkg-message SUB_LIST= PREFIX=${PREFIX} \ ${PLIST_SUB} -USE_PHP= yes +NAGIOSUSER?= nagios +NAGIOSGROUP?= nagios +NAGIOSDIR?= /var/spool/nagios + +NAGIOSUID= 181 +NAGIOSGID= ${NAGIOSUID} + +NAGIOSWWWDIR?= www/nagios +NAGIOSHTMURL?= /nagios +NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin + +USERS= ${NAGIOSUSER} +GROUPS= ${NAGIOSGROUP} + +OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP EVENT_BROKER UNHANDLED_HACK +EMBEDDED_PERL_DESC= Enable embedded Perl [requires Perl 5.8.0+] +NANOSLEEP_DESC= Use nanosleep in event timing +EVENT_BROKER_DESC= Enable event broker functionality +UNHANDLED_HACK_DESC= Display passive checks in unhandled queries + +.include <bsd.port.options.mk> -.if defined(WITH_EMBEDDED_PERL) +.if ${PORT_OPTIONS:MEMBEDDED_PERL} USE_PERL5= yes CONFIGURE_ARGS+=--enable-embedded-perl \ --with-perlcache @@ -101,11 +94,11 @@ PLIST_SUB+= EMBEDDED_PERL="" PLIST_SUB+= EMBEDDED_PERL="@comment " .endif -.if defined(WITH_NANOSLEEP) +.if ${PORT_OPTIONS:MNANOSLEEP} CONFIGURE_ARGS+=--enable-nanosleep .endif -.if defined(WITH_EVENT_BROKER) +.if ${PORT_OPTIONS:MEVENT_BROKER} CONFIGURE_ARGS+=--enable-event-broker .else CONFIGURE_ARGS+=--disable-event-broker @@ -115,7 +108,7 @@ post-extract: @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} post-patch: -.if defined(WITH_UNHANDLED_HACK) +.if ${PORT_OPTIONS:MUNHANDLED_HACK} @${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \ -e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php .endif @@ -126,4 +119,4 @@ post-install: @${CHOWN} ${NAGIOSUSER}:${WWWGRP} ${NAGIOSDIR}/rw @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-mgmt/nagios/distinfo b/net-mgmt/nagios/distinfo index b49046e8b524..8f9533bc4889 100644 --- a/net-mgmt/nagios/distinfo +++ b/net-mgmt/nagios/distinfo @@ -1,2 +1,2 @@ -SHA256 (nagios-3.4.1.tar.gz) = a5c693f9af22410cc17d6da9c0df9bd65c47d787de3f937b5ccbda934131f8c8 -SIZE (nagios-3.4.1.tar.gz) = 1782817 +SHA256 (nagios-3.4.3.tar.gz) = 2d5c0cc56bafb08a71840a6efa349afc1eebb2761fea0d403e1b929e7c801b10 +SIZE (nagios-3.4.3.tar.gz) = 1784746 diff --git a/net-mgmt/nagios/files/patch-html-main.php b/net-mgmt/nagios/files/patch-html-main.php index 9944003f876d..f657191ad411 100644 --- a/net-mgmt/nagios/files/patch-html-main.php +++ b/net-mgmt/nagios/files/patch-html-main.php @@ -1,10 +1,10 @@ ---- html/main.php.orig 2012-05-12 09:30:53.000000000 +0930 -+++ html/main.php 2012-05-21 21:37:23.000000000 +0930 +--- html/main.php.orig 2012-12-01 03:28:25.000000000 +1030 ++++ html/main.php 2012-12-28 14:23:47.000000000 +1030 @@ -40,35 +40,10 @@ <div class="product">Nagios<sup><span style="font-size: small;">®</span></sup> Core<sup><span style="font-size: small;">™</span></sup></div> - <div class="version">Version 3.4.1</div> - <div class="releasedate">May 11, 2012</div> --<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.4.1&product=nagioscore" target="_blank">Check for updates</a></div> + <div class="version">Version 3.4.3</div> + <div class="releasedate">November 30, 2012</div> +-<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.4.3&product=nagioscore" target="_blank">Check for updates</a></div> <!--<div class="whatsnew"><a href="http://go.nagios.com/nagioscore/whatsnew">Read what's new in Nagios Core 3</a></div>--> </div> |