From 4a1afe2fbda108fa7bb0b3e5f51d4576e2225d93 Mon Sep 17 00:00:00 2001 From: rm Date: Thu, 10 Jan 2013 19:12:02 +0000 Subject: - update to 3.4.3 [1] - convert to optionsng [2] - fix portlint warnings [2] PR: 174762 Submitted by: Jarrod Sayers (maintainer) [1] Submitted by: tota [2] --- net-mgmt/nagios/Makefile | 73 ++++++++++++++----------------- net-mgmt/nagios/distinfo | 4 +- net-mgmt/nagios/files/patch-html-main.php | 10 ++--- 3 files changed, 40 insertions(+), 47 deletions(-) (limited to 'net-mgmt') 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 -# +# Created by: Blaz Zupan # $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 - -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 -.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 +.include 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 @@
Nagios® Core
-
Version 3.4.1
-
May 11, 2012
-- +
Version 3.4.3
+
November 30, 2012
+- -- cgit