Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2007 18:45:55 +0930 (CST)
From:      Jarrod Sayers <jarrod@netleader.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/114763: New port: net-mgmt/nagios-devel Nagios development stream (currently 3.0a5)
Message-ID:  <200707200915.l6K9Ft9W042861@wallace.netleader.com.au>
Resent-Message-ID: <200707200920.l6K9K8iO083115@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114763
>Category:       ports
>Synopsis:       New port: net-mgmt/nagios-devel Nagios development stream (currently 3.0a5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 20 09:20:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jarrod Sayers
>Release:        FreeBSD 6.2-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD wallace.netleader.com.au 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #91: Thu Jul 12 01:09:42 CST 2007 root@wallace.netleader.com.au:/usr/obj/usr/src/sys/WALLACE i386
>Description:
Nagios 3.0a5 (development)

New development port created to track development version of Nagios, allowing
FreeBSD users to contribute back to the Nagios developers.  This port has been
port(1) test'd and also portlint(1) verified.

File locations are exact to those of net-mgmt/nagios and while configuration
files appear to be supported from previous versions, users are advised to
backup ${PREFIX}/etc/nagios and /var/spool/nagios prior to any development
upgrade.

Support for additional options present in development releases to be supported
over the coming weeks in extra send-pr(1)'s.
>How-To-Repeat:
>Fix:
Downloadable shar file from:
http://www.netleader.com.au/~jarrod/FreeBSD/net-mgmt-nagios-devel.shar

--- net-mgmt-nagios-devel.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ports/net-mgmt/nagios-devel
#	ports/net-mgmt/nagios-devel/Makefile
#	ports/net-mgmt/nagios-devel/distinfo
#	ports/net-mgmt/nagios-devel/files
#	ports/net-mgmt/nagios-devel/pkg-descr
#	ports/net-mgmt/nagios-devel/pkg-plist
#	ports/net-mgmt/nagios-devel/files/nagios.sh.in
#	ports/net-mgmt/nagios-devel/files/patch-Makefile.in
#	ports/net-mgmt/nagios-devel/files/patch-base__Makefile.in
#	ports/net-mgmt/nagios-devel/files/patch-cgi__Makefile.in
#	ports/net-mgmt/nagios-devel/files/patch-configure.in
#	ports/net-mgmt/nagios-devel/files/patch-contrib__Makefile.in
#	ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in
#	ports/net-mgmt/nagios-devel/files/patch-include__locations.h.in
#	ports/net-mgmt/nagios-devel/files/patch-sample-config__nagios.cfg.in
#	ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__localhost.cfg.in
#	ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__templates.cfg.in
#	ports/net-mgmt/nagios-devel/files/pkg-deinstall.in
#	ports/net-mgmt/nagios-devel/files/pkg-install.in
#	ports/net-mgmt/nagios-devel/files/pkg-message.in
#
echo c - ports/net-mgmt/nagios-devel
mkdir -p ports/net-mgmt/nagios-devel > /dev/null 2>&1
echo x - ports/net-mgmt/nagios-devel/Makefile
sed 's/^X//' >ports/net-mgmt/nagios-devel/Makefile << 'END-of-ports/net-mgmt/nagios-devel/Makefile'
X# New ports collection makefile for:	nagios-devel
X# Date created:				14 July 2007
X# Whom:					Jarrod Sayers <jarrod@netleader.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nagios
XPORTVERSION=	3.0.a5
XCATEGORIES=	net-mgmt
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	nagios
XDISTNAME=	nagios-3.0a5
X
XMAINTAINER=	jarrod@netleader.com.au
XCOMMENT=	Extremely powerful network monitoring system
X
XLIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd
XRUN_DEPENDS=	${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
X
XUSE_GETOPT_LONG=	yes
XUSE_ICONV=	yes
XUSE_PERL5_BUILD=	yes
XUSE_AUTOTOOLS=	autoconf:259
XUSE_RC_SUBR=	nagios.sh
X
XCONFLICTS=	nagios-[12].*
X
XOPTIONS=	EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8+]" off \
X		NANOSLEEP "Use nanosleep in event timing" off
X
XGNU_CONFIGURE=	yes
X
XNAGIOSUSER?=	nagios
XNAGIOSGROUP?=	nagios
XNAGIOSDIR?=	/var/spool/nagios
X
XNAGIOSUID=	181
XNAGIOSGID=	${NAGIOSUID}
X
XNAGIOSWWWDIR?=	www/nagios
XNAGIOSHTMURL?=	/nagios
XNAGIOSCGIURL?=	${NAGIOSHTMURL}/cgi-bin
X
X.include <bsd.port.pre.mk>
X
XCPPFLAGS=	-I${LOCALBASE}/include -fPIC
XCFLAGS+=	${CPPFLAGS}
X
XCONFIGURE_ARGS=	--with-command-user=${NAGIOSUSER} \
X		--with-command-group=${WWWGRP} \
X		--with-nagios-user=${NAGIOSUSER} \
X		--with-nagios-group=${NAGIOSGROUP} \
X		--with-htmurl=${NAGIOSHTMURL} \
X		--with-cgiurl=${NAGIOSCGIURL} \
X		--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
X		--libexecdir=${PREFIX}/libexec/nagios \
X		--datadir=${PREFIX}/${NAGIOSWWWDIR} \
X		--sysconfdir=${PREFIX}/etc/nagios \
X		--localstatedir=${NAGIOSDIR} \
X		--with-httpd-conf=${PREFIX}/etc \
X		--with-checkresult-dir=${NAGIOSDIR}/checkresults \
X		--prefix=${PREFIX}
X
XCONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" \
X		CFLAGS="${CFLAGS}" \
X		LDFLAGS="${LDFLAGS}" \
X		LIBS="-L${LOCALBASE}/lib" \
X		PERL=${PERL}
X
XINSTALL_TARGET=	install install-commandmode install-config
X
XPLIST_SUB=	NAGIOSDIR=${NAGIOSDIR} \
X		NAGIOSWWWDIR=${NAGIOSWWWDIR} \
X		NAGIOSUSER=${NAGIOSUSER} \
X		NAGIOSGROUP=${NAGIOSGROUP} \
X		NAGIOSUID=${NAGIOSUID} \
X		NAGIOSGID=${NAGIOSGID} \
X		NAGIOSHTMURL=${NAGIOSHTMURL} \
X		NAGIOSCGIURL=${NAGIOSCGIURL} \
X		WWWGRP=${WWWGRP}
X
XSUB_FILES=	pkg-install \
X		pkg-deinstall \
X		pkg-message
X
XSUB_LIST=	PREFIX=${PREFIX} \
X		${PLIST_SUB}
X
X.if defined(WITH_EMBEDDED_PERL)
X.if ${PERL_LEVEL} >= 500800
XUSE_PERL5=	yes
XCONFIGURE_ARGS+=	--enable-embedded-perl \
X		--with-perlcache
X.else
XIGNORE=		embedded Perl requires Perl 5.8 or higher (see lang/perl5.8)
X.endif
XPLIST_SUB+=	EMBEDDED_PERL=""
X.else
XPLIST_SUB+=	EMBEDDED_PERL="@comment "
X.endif
X
X.if defined(WITH_NANOSLEEP)
XCONFIGURE_ARGS+=	--enable-nanosleep
X.endif
X
Xpre-install:
X	@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
X
Xpost-install:
X	@${CHMOD} 775 ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/checkresults ${NAGIOSDIR}/rw
X	@${CHOWN} ${NAGIOSUSER}:${NAGIOSGROUP} ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/checkresults
X	@${CHOWN} ${NAGIOSUSER}:${WWWGRP} ${NAGIOSDIR}/rw
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-ports/net-mgmt/nagios-devel/Makefile
echo x - ports/net-mgmt/nagios-devel/distinfo
sed 's/^X//' >ports/net-mgmt/nagios-devel/distinfo << 'END-of-ports/net-mgmt/nagios-devel/distinfo'
XMD5 (nagios-3.0a5.tar.gz) = c380125eb852cba069d480957beb35c1
XSHA256 (nagios-3.0a5.tar.gz) = 322add9d9ea81358a182abf2b765e430fc4295899966880a5f3596894a8c8549
XSIZE (nagios-3.0a5.tar.gz) = 2511304
END-of-ports/net-mgmt/nagios-devel/distinfo
echo c - ports/net-mgmt/nagios-devel/files
mkdir -p ports/net-mgmt/nagios-devel/files > /dev/null 2>&1
echo x - ports/net-mgmt/nagios-devel/pkg-descr
sed 's/^X//' >ports/net-mgmt/nagios-devel/pkg-descr << 'END-of-ports/net-mgmt/nagios-devel/pkg-descr'
XNagios is a host and service monitor designed to inform you of network
Xproblems before your clients, end-users or managers do. The monitoring
Xdaemon runs intermittent checks on hosts and services you specify
Xusing external "plugins" which return status information to Nagios.
XWhen problems are encountered, the daemon can send notifications out
Xto administrative contacts in a variety of different ways (email,
Xinstant message, SMS, etc.). Current status information, historical
Xlogs, and reports can all be accessed via a web browser.
X
XWWW: http://www.nagios.org/
END-of-ports/net-mgmt/nagios-devel/pkg-descr
echo x - ports/net-mgmt/nagios-devel/pkg-plist
sed 's/^X//' >ports/net-mgmt/nagios-devel/pkg-plist << 'END-of-ports/net-mgmt/nagios-devel/pkg-plist'
X@exec mkdir -p %D/%%NAGIOSWWWDIR%%/ssi
X@exec mkdir -p %%NAGIOSDIR%%/archives
X@exec mkdir -p %%NAGIOSDIR%%/checkresults
X@exec mkdir -p %%NAGIOSDIR%%/rw
X@exec chmod 775 %%NAGIOSDIR%% %%NAGIOSDIR%%/archives %%NAGIOSDIR%%/checkresults %%NAGIOSDIR%%/rw
X@exec chown %%NAGIOSUSER%%:%%NAGIOSGROUP%% %%NAGIOSDIR%% %%NAGIOSDIR%%/archives %%NAGIOSDIR%%/checkresults
X@exec chown %%NAGIOSUSER%%:%%WWWGRP%% %%NAGIOSDIR%%/rw
Xbin/nagios
Xbin/nagiostats
X%%EMBEDDED_PERL%%bin/p1.pl
Xetc/nagios/cgi.cfg-sample
Xetc/nagios/nagios.cfg-sample
Xetc/nagios/objects/commands.cfg-sample
Xetc/nagios/objects/contacts.cfg-sample
Xetc/nagios/objects/localhost.cfg-sample
Xetc/nagios/objects/printer.cfg-sample
Xetc/nagios/objects/switch.cfg-sample
Xetc/nagios/objects/templates.cfg-sample
Xetc/nagios/objects/timeperiods.cfg-sample
Xetc/nagios/objects/windows.cfg-sample
Xetc/nagios/resource.cfg-sample
X%%NAGIOSWWWDIR%%/cgi-bin/avail.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/cmd.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/config.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/extinfo.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/histogram.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/history.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/notifications.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/outages.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/showlog.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/status.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/statusmap.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/statuswml.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/statuswrl.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/summary.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/tac.cgi
X%%NAGIOSWWWDIR%%/cgi-bin/trends.cgi
X%%NAGIOSWWWDIR%%/contexthelp/A1.html
X%%NAGIOSWWWDIR%%/contexthelp/A2.html
X%%NAGIOSWWWDIR%%/contexthelp/A3.html
X%%NAGIOSWWWDIR%%/contexthelp/A4.html
X%%NAGIOSWWWDIR%%/contexthelp/A5.html
X%%NAGIOSWWWDIR%%/contexthelp/A6.html
X%%NAGIOSWWWDIR%%/contexthelp/A7.html
X%%NAGIOSWWWDIR%%/contexthelp/B1.html
X%%NAGIOSWWWDIR%%/contexthelp/C1.html
X%%NAGIOSWWWDIR%%/contexthelp/D1.html
X%%NAGIOSWWWDIR%%/contexthelp/E1.html
X%%NAGIOSWWWDIR%%/contexthelp/F1.html
X%%NAGIOSWWWDIR%%/contexthelp/G1.html
X%%NAGIOSWWWDIR%%/contexthelp/G2.html
X%%NAGIOSWWWDIR%%/contexthelp/G3.html
X%%NAGIOSWWWDIR%%/contexthelp/G4.html
X%%NAGIOSWWWDIR%%/contexthelp/G5.html
X%%NAGIOSWWWDIR%%/contexthelp/G6.html
X%%NAGIOSWWWDIR%%/contexthelp/H1.html
X%%NAGIOSWWWDIR%%/contexthelp/H2.html
X%%NAGIOSWWWDIR%%/contexthelp/H3.html
X%%NAGIOSWWWDIR%%/contexthelp/H4.html
X%%NAGIOSWWWDIR%%/contexthelp/H5.html
X%%NAGIOSWWWDIR%%/contexthelp/H6.html
X%%NAGIOSWWWDIR%%/contexthelp/H7.html
X%%NAGIOSWWWDIR%%/contexthelp/H8.html
X%%NAGIOSWWWDIR%%/contexthelp/I1.html
X%%NAGIOSWWWDIR%%/contexthelp/I2.html
X%%NAGIOSWWWDIR%%/contexthelp/I3.html
X%%NAGIOSWWWDIR%%/contexthelp/I4.html
X%%NAGIOSWWWDIR%%/contexthelp/I5.html
X%%NAGIOSWWWDIR%%/contexthelp/I6.html
X%%NAGIOSWWWDIR%%/contexthelp/I7.html
X%%NAGIOSWWWDIR%%/contexthelp/I8.html
X%%NAGIOSWWWDIR%%/contexthelp/I9.html
X%%NAGIOSWWWDIR%%/contexthelp/J1.html
X%%NAGIOSWWWDIR%%/contexthelp/K1.html
X%%NAGIOSWWWDIR%%/contexthelp/L1.html
X%%NAGIOSWWWDIR%%/contexthelp/L10.html
X%%NAGIOSWWWDIR%%/contexthelp/L11.html
X%%NAGIOSWWWDIR%%/contexthelp/L12.html
X%%NAGIOSWWWDIR%%/contexthelp/L13.html
X%%NAGIOSWWWDIR%%/contexthelp/L2.html
X%%NAGIOSWWWDIR%%/contexthelp/L3.html
X%%NAGIOSWWWDIR%%/contexthelp/L4.html
X%%NAGIOSWWWDIR%%/contexthelp/L5.html
X%%NAGIOSWWWDIR%%/contexthelp/L6.html
X%%NAGIOSWWWDIR%%/contexthelp/L7.html
X%%NAGIOSWWWDIR%%/contexthelp/L8.html
X%%NAGIOSWWWDIR%%/contexthelp/L9.html
X%%NAGIOSWWWDIR%%/contexthelp/M1.html
X%%NAGIOSWWWDIR%%/contexthelp/M2.html
X%%NAGIOSWWWDIR%%/contexthelp/M3.html
X%%NAGIOSWWWDIR%%/contexthelp/M4.html
X%%NAGIOSWWWDIR%%/contexthelp/M5.html
X%%NAGIOSWWWDIR%%/contexthelp/M6.html
X%%NAGIOSWWWDIR%%/contexthelp/N1.html
X%%NAGIOSWWWDIR%%/contexthelp/N2.html
X%%NAGIOSWWWDIR%%/contexthelp/N3.html
X%%NAGIOSWWWDIR%%/contexthelp/N4.html
X%%NAGIOSWWWDIR%%/contexthelp/N5.html
X%%NAGIOSWWWDIR%%/contexthelp/N6.html
X%%NAGIOSWWWDIR%%/contexthelp/N7.html
X%%NAGIOSWWWDIR%%/docs/about.html
X%%NAGIOSWWWDIR%%/docs/activechecks.html
X%%NAGIOSWWWDIR%%/docs/adaptive.html
X%%NAGIOSWWWDIR%%/docs/addons.html
X%%NAGIOSWWWDIR%%/docs/beginners.html
X%%NAGIOSWWWDIR%%/docs/cachedchecks.html
X%%NAGIOSWWWDIR%%/docs/cgiauth.html
X%%NAGIOSWWWDIR%%/docs/cgiincludes.html
X%%NAGIOSWWWDIR%%/docs/cgis.html
X%%NAGIOSWWWDIR%%/docs/checkscheduling.html
X%%NAGIOSWWWDIR%%/docs/clusters.html
X%%NAGIOSWWWDIR%%/docs/config.html
X%%NAGIOSWWWDIR%%/docs/configcgi.html
X%%NAGIOSWWWDIR%%/docs/configmain.html
X%%NAGIOSWWWDIR%%/docs/configobject.html
X%%NAGIOSWWWDIR%%/docs/customobjectvars.html
X%%NAGIOSWWWDIR%%/docs/dependencies.html
X%%NAGIOSWWWDIR%%/docs/dependencychecks.html
X%%NAGIOSWWWDIR%%/docs/distributed.html
X%%NAGIOSWWWDIR%%/docs/downtime.html
X%%NAGIOSWWWDIR%%/docs/embeddedperl.html
X%%NAGIOSWWWDIR%%/docs/epnplugins.html
X%%NAGIOSWWWDIR%%/docs/escalations.html
X%%NAGIOSWWWDIR%%/docs/eventhandlers.html
X%%NAGIOSWWWDIR%%/docs/extcommands.html
X%%NAGIOSWWWDIR%%/docs/faststartup.html
X%%NAGIOSWWWDIR%%/docs/flapping.html
X%%NAGIOSWWWDIR%%/docs/freshness.html
X%%NAGIOSWWWDIR%%/docs/funstuff.html
X%%NAGIOSWWWDIR%%/docs/hostchecks.html
X%%NAGIOSWWWDIR%%/docs/images/activechecks.png
X%%NAGIOSWWWDIR%%/docs/images/cachedcheckgraphs.png
X%%NAGIOSWWWDIR%%/docs/images/cachedchecks.png
X%%NAGIOSWWWDIR%%/docs/images/cachedchecks1.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-avail-a.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-avail-b.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-cmd.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-config.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-extinfo-a.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-extinfo-b.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-extinfo-c.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-extinfo-d.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-histogram.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-history.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-notifications.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-outages.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-showlog.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-status-a.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-status-b.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-status-c.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-status-d.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-statusmap.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-statuswml.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-statuswrl.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-summary.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-tac.png
X%%NAGIOSWWWDIR%%/docs/images/cgi-trends.png
X%%NAGIOSWWWDIR%%/docs/images/checkmark.png
X%%NAGIOSWWWDIR%%/docs/images/checktiming.png
X%%NAGIOSWWWDIR%%/docs/images/configoverview.png
X%%NAGIOSWWWDIR%%/docs/images/distributed.png
X%%NAGIOSWWWDIR%%/docs/images/downtime.png
X%%NAGIOSWWWDIR%%/docs/images/epn.png
X%%NAGIOSWWWDIR%%/docs/images/eventhandlers.png
X%%NAGIOSWWWDIR%%/docs/images/externalcommands.png
X%%NAGIOSWWWDIR%%/docs/images/fast-startup.png
X%%NAGIOSWWWDIR%%/docs/images/fast-startup1.png
X%%NAGIOSWWWDIR%%/docs/images/fast-startup2.png
X%%NAGIOSWWWDIR%%/docs/images/freshness.png
X%%NAGIOSWWWDIR%%/docs/images/host-dependencies.png
X%%NAGIOSWWWDIR%%/docs/images/important.gif
X%%NAGIOSWWWDIR%%/docs/images/interleaved1.png
X%%NAGIOSWWWDIR%%/docs/images/interleaved2.png
X%%NAGIOSWWWDIR%%/docs/images/interleaved3.png
X%%NAGIOSWWWDIR%%/docs/images/logofullsize.png
X%%NAGIOSWWWDIR%%/docs/images/monitoring-windows.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-activehostchecks.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-activelychecked.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-activeservicechecks.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-cachedchecks.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-commandbuffers.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-externalcommands.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-hostperfstats.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-hoststatechange.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-passivechecks.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-passivelychecked.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-serviceperfstats.png
X%%NAGIOSWWWDIR%%/docs/images/mrtg-servicestatechange.png
X%%NAGIOSWWWDIR%%/docs/images/multiple-templates1.png
X%%NAGIOSWWWDIR%%/docs/images/multiple-templates2.png
X%%NAGIOSWWWDIR%%/docs/images/nagios.jpg
X%%NAGIOSWWWDIR%%/docs/images/ndoutils.png
X%%NAGIOSWWWDIR%%/docs/images/network-outage1.png
X%%NAGIOSWWWDIR%%/docs/images/network-outage2.png
X%%NAGIOSWWWDIR%%/docs/images/noninterleaved1.png
X%%NAGIOSWWWDIR%%/docs/images/noninterleaved2.png
X%%NAGIOSWWWDIR%%/docs/images/note.gif
X%%NAGIOSWWWDIR%%/docs/images/nrpe.png
X%%NAGIOSWWWDIR%%/docs/images/nsca.png
X%%NAGIOSWWWDIR%%/docs/images/nscpp.png
X%%NAGIOSWWWDIR%%/docs/images/objects-commands.png
X%%NAGIOSWWWDIR%%/docs/images/objects-contacts.png
X%%NAGIOSWWWDIR%%/docs/images/objects-hosts.png
X%%NAGIOSWWWDIR%%/docs/images/objects-services.png
X%%NAGIOSWWWDIR%%/docs/images/objects-timeperiods.png
X%%NAGIOSWWWDIR%%/docs/images/passivechecks.png
X%%NAGIOSWWWDIR%%/docs/images/passivehosttranslation.png
X%%NAGIOSWWWDIR%%/docs/images/plugins.png
X%%NAGIOSWWWDIR%%/docs/images/predictive-dependency-checks.png
X%%NAGIOSWWWDIR%%/docs/images/printer.png
X%%NAGIOSWWWDIR%%/docs/images/reachability1.png
X%%NAGIOSWWWDIR%%/docs/images/reachability2.png
X%%NAGIOSWWWDIR%%/docs/images/reachability3.png
X%%NAGIOSWWWDIR%%/docs/images/reachability4.png
X%%NAGIOSWWWDIR%%/docs/images/redudancy.png
X%%NAGIOSWWWDIR%%/docs/images/redundancy.png
X%%NAGIOSWWWDIR%%/docs/images/seealso.gif
X%%NAGIOSWWWDIR%%/docs/images/service-dependencies.png
X%%NAGIOSWWWDIR%%/docs/images/statetransitions.png
X%%NAGIOSWWWDIR%%/docs/images/statetransitions2.png
X%%NAGIOSWWWDIR%%/docs/images/stoprestart.png
X%%NAGIOSWWWDIR%%/docs/images/switch.png
X%%NAGIOSWWWDIR%%/docs/images/tip.gif
X%%NAGIOSWWWDIR%%/docs/images/upto.gif
X%%NAGIOSWWWDIR%%/docs/index.html
X%%NAGIOSWWWDIR%%/docs/int-snmptrap.html
X%%NAGIOSWWWDIR%%/docs/int-tcpwrappers.html
X%%NAGIOSWWWDIR%%/docs/largeinstalltweaks.html
X%%NAGIOSWWWDIR%%/docs/macrolist.html
X%%NAGIOSWWWDIR%%/docs/macros.html
X%%NAGIOSWWWDIR%%/docs/monitoring-linux.html
X%%NAGIOSWWWDIR%%/docs/monitoring-netware.html
X%%NAGIOSWWWDIR%%/docs/monitoring-printers.html
X%%NAGIOSWWWDIR%%/docs/monitoring-publicservices.html
X%%NAGIOSWWWDIR%%/docs/monitoring-routers.html
X%%NAGIOSWWWDIR%%/docs/monitoring-windows.html
X%%NAGIOSWWWDIR%%/docs/mrtggraphs.html
X%%NAGIOSWWWDIR%%/docs/nagiostats.html
X%%NAGIOSWWWDIR%%/docs/networkreachability.html
X%%NAGIOSWWWDIR%%/docs/notifications.html
X%%NAGIOSWWWDIR%%/docs/objectdefinitions.html
X%%NAGIOSWWWDIR%%/docs/objectinheritance.html
X%%NAGIOSWWWDIR%%/docs/objecttricks.html
X%%NAGIOSWWWDIR%%/docs/passivechecks.html
X%%NAGIOSWWWDIR%%/docs/passivestatetranslation.html
X%%NAGIOSWWWDIR%%/docs/perfdata.html
X%%NAGIOSWWWDIR%%/docs/pluginapi.html
X%%NAGIOSWWWDIR%%/docs/plugins.html
X%%NAGIOSWWWDIR%%/docs/quickstart-fedora.html
X%%NAGIOSWWWDIR%%/docs/quickstart-opensuse.html
X%%NAGIOSWWWDIR%%/docs/quickstart-ubuntu.html
X%%NAGIOSWWWDIR%%/docs/quickstart.html
X%%NAGIOSWWWDIR%%/docs/redundancy.html
X%%NAGIOSWWWDIR%%/docs/robots.txt
X%%NAGIOSWWWDIR%%/docs/security.html
X%%NAGIOSWWWDIR%%/docs/servicechecks.html
X%%NAGIOSWWWDIR%%/docs/stalking.html
X%%NAGIOSWWWDIR%%/docs/startstop.html
X%%NAGIOSWWWDIR%%/docs/statetypes.html
X%%NAGIOSWWWDIR%%/docs/timeperiods.html
X%%NAGIOSWWWDIR%%/docs/toc.html
X%%NAGIOSWWWDIR%%/docs/tuning.html
X%%NAGIOSWWWDIR%%/docs/upgrading.html
X%%NAGIOSWWWDIR%%/docs/verifyconfig.html
X%%NAGIOSWWWDIR%%/docs/volatileservices.html
X%%NAGIOSWWWDIR%%/docs/whatsnew.html
X%%NAGIOSWWWDIR%%/images/ack.gif
X%%NAGIOSWWWDIR%%/images/action.gif
X%%NAGIOSWWWDIR%%/images/command.png
X%%NAGIOSWWWDIR%%/images/comment.gif
X%%NAGIOSWWWDIR%%/images/contexthelp1.gif
X%%NAGIOSWWWDIR%%/images/contexthelp2.gif
X%%NAGIOSWWWDIR%%/images/critical.png
X%%NAGIOSWWWDIR%%/images/delay.gif
X%%NAGIOSWWWDIR%%/images/delete.gif
X%%NAGIOSWWWDIR%%/images/detail.gif
X%%NAGIOSWWWDIR%%/images/disabled.gif
X%%NAGIOSWWWDIR%%/images/down.gif
X%%NAGIOSWWWDIR%%/images/downtime.gif
X%%NAGIOSWWWDIR%%/images/empty.gif
X%%NAGIOSWWWDIR%%/images/enabled.gif
X%%NAGIOSWWWDIR%%/images/extinfo.gif
X%%NAGIOSWWWDIR%%/images/flapping.gif
X%%NAGIOSWWWDIR%%/images/greendot.gif
X%%NAGIOSWWWDIR%%/images/histogram.png
X%%NAGIOSWWWDIR%%/images/history.gif
X%%NAGIOSWWWDIR%%/images/hostevent.gif
X%%NAGIOSWWWDIR%%/images/info.png
X%%NAGIOSWWWDIR%%/images/left.gif
X%%NAGIOSWWWDIR%%/images/logofullsize.png
X%%NAGIOSWWWDIR%%/images/logos/nagios.gd2
X%%NAGIOSWWWDIR%%/images/logos/nagios.gif
X%%NAGIOSWWWDIR%%/images/logos/nagiosvrml.png
X%%NAGIOSWWWDIR%%/images/logos/unknown.gd2
X%%NAGIOSWWWDIR%%/images/logos/unknown.gif
X%%NAGIOSWWWDIR%%/images/logrotate.png
X%%NAGIOSWWWDIR%%/images/ndisabled.gif
X%%NAGIOSWWWDIR%%/images/noack.gif
X%%NAGIOSWWWDIR%%/images/notes.gif
X%%NAGIOSWWWDIR%%/images/notify.gif
X%%NAGIOSWWWDIR%%/images/orangedot.gif
X%%NAGIOSWWWDIR%%/images/passiveonly.gif
X%%NAGIOSWWWDIR%%/images/recovery.png
X%%NAGIOSWWWDIR%%/images/redudancy.png
X%%NAGIOSWWWDIR%%/images/redundancy.png
X%%NAGIOSWWWDIR%%/images/restart.gif
X%%NAGIOSWWWDIR%%/images/right.gif
X%%NAGIOSWWWDIR%%/images/sblogo.jpg
X%%NAGIOSWWWDIR%%/images/serviceevent.gif
X%%NAGIOSWWWDIR%%/images/start.gif
X%%NAGIOSWWWDIR%%/images/status.gif
X%%NAGIOSWWWDIR%%/images/status2.gif
X%%NAGIOSWWWDIR%%/images/status3.gif
X%%NAGIOSWWWDIR%%/images/status4.gif
X%%NAGIOSWWWDIR%%/images/stop.gif
X%%NAGIOSWWWDIR%%/images/tacdisabled.jpg
X%%NAGIOSWWWDIR%%/images/tacdisabled.png
X%%NAGIOSWWWDIR%%/images/tacenabled.jpg
X%%NAGIOSWWWDIR%%/images/tacenabled.png
X%%NAGIOSWWWDIR%%/images/thermcrit.png
X%%NAGIOSWWWDIR%%/images/thermok.png
X%%NAGIOSWWWDIR%%/images/thermwarn.png
X%%NAGIOSWWWDIR%%/images/trends.gif
X%%NAGIOSWWWDIR%%/images/trendshost.png
X%%NAGIOSWWWDIR%%/images/trendssvc.png
X%%NAGIOSWWWDIR%%/images/unknown.png
X%%NAGIOSWWWDIR%%/images/up.gif
X%%NAGIOSWWWDIR%%/images/warning.png
X%%NAGIOSWWWDIR%%/images/weblogo1.png
X%%NAGIOSWWWDIR%%/images/zoom1.gif
X%%NAGIOSWWWDIR%%/images/zoom2.gif
X%%NAGIOSWWWDIR%%/index.html
X%%NAGIOSWWWDIR%%/main.html
X%%NAGIOSWWWDIR%%/media/critical.wav
X%%NAGIOSWWWDIR%%/media/hostdown.wav
X%%NAGIOSWWWDIR%%/media/warning.wav
X%%NAGIOSWWWDIR%%/robots.txt
X%%NAGIOSWWWDIR%%/side.html
X%%NAGIOSWWWDIR%%/stylesheets/avail.css
X%%NAGIOSWWWDIR%%/stylesheets/checksanity.css
X%%NAGIOSWWWDIR%%/stylesheets/cmd.css
X%%NAGIOSWWWDIR%%/stylesheets/common.css
X%%NAGIOSWWWDIR%%/stylesheets/config.css
X%%NAGIOSWWWDIR%%/stylesheets/extinfo.css
X%%NAGIOSWWWDIR%%/stylesheets/histogram.css
X%%NAGIOSWWWDIR%%/stylesheets/history.css
X%%NAGIOSWWWDIR%%/stylesheets/ministatus.css
X%%NAGIOSWWWDIR%%/stylesheets/notifications.css
X%%NAGIOSWWWDIR%%/stylesheets/outages.css
X%%NAGIOSWWWDIR%%/stylesheets/showlog.css
X%%NAGIOSWWWDIR%%/stylesheets/status.css
X%%NAGIOSWWWDIR%%/stylesheets/statusmap.css
X%%NAGIOSWWWDIR%%/stylesheets/summary.css
X%%NAGIOSWWWDIR%%/stylesheets/tac.css
X%%NAGIOSWWWDIR%%/stylesheets/trends.css
X@dirrmtry etc/nagios/objects
X@dirrmtry etc/nagios
X@dirrm %%NAGIOSWWWDIR%%/cgi-bin
X@dirrm %%NAGIOSWWWDIR%%/contexthelp
X@dirrm %%NAGIOSWWWDIR%%/docs/images
X@dirrm %%NAGIOSWWWDIR%%/docs
X@dirrm %%NAGIOSWWWDIR%%/images/logos
X@dirrm %%NAGIOSWWWDIR%%/images
X@dirrm %%NAGIOSWWWDIR%%/media
X@dirrm %%NAGIOSWWWDIR%%/ssi
X@dirrm %%NAGIOSWWWDIR%%/stylesheets
X@dirrmtry %%NAGIOSWWWDIR%%
X@dirrmtry %%NAGIOSDIR%%/archives
X@dirrmtry %%NAGIOSDIR%%/checkresults
X@dirrmtry %%NAGIOSDIR%%/rw
X@dirrmtry %%NAGIOSDIR%%
END-of-ports/net-mgmt/nagios-devel/pkg-plist
echo x - ports/net-mgmt/nagios-devel/files/nagios.sh.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/nagios.sh.in << 'END-of-ports/net-mgmt/nagios-devel/files/nagios.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: nagios
X# REQUIRE: DAEMON
X# BEFORE: LOGIN
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable nagios:
X# nagios_enable (bool):    Set to "NO" by default.
X#                          Set it to "YES" to enable nagios.
X# nagios_flags (str):      Set to "" by default.
X# nagios_configfile (str): Set to "%%PREFIX%%/etc/nagios/nagios.cfg" by default.
X#
X
X. %%RC_SUBR%%
X
Xname="nagios"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/nagios"
Xcommand_args="-d"
Xextra_commands="reload"
Xpidfile="%%NAGIOSDIR%%/nagios.lock"
Xnagios_user="%%NAGIOSUSER%%"
X
Xstart_precmd="start_precmd"
Xstop_postcmd="stop_postcmd"
Xrestart_precmd="nagios_checkconfig"
Xreload_precmd="nagios_checkconfig"
Xsig_reload=HUP
X
X[ -z "${nagios_enable}" ] && nagios_enable="NO"
X[ -z "${nagios_flags}" ] && nagios_flags=""
X[ -z "${nagios_configfile}" ] && nagios_configfile="%%PREFIX%%/etc/nagios/nagios.cfg"
X
Xload_rc_config "${name}"
X
Xrequired_files="${nagios_configfile}"
Xcommand_args="${command_args} ${nagios_configfile}"
X
Xnagios_checkconfig() {
X  echo -n "Performing sanity check of nagios configuration: "
X  ${command} -v ${nagios_configfile} 2>&1 >/dev/null
X  if [ $? != 0 ]; then
X    echo "FAILED"
X    ${command} -v ${nagios_configfile}
X    return 1
X  else
X    echo "OK"
X  fi
X}
X
Xstart_precmd() {
X  if ! nagios_checkconfig; then
X    return 1
X  fi
X
X  su -m "${nagios_user}" -c "touch \"%%NAGIOSDIR%%/nagios.log\" \"%%NAGIOSDIR%%/status.sav\""
X  rm -f "%%NAGIOSDIR%%/rw/nagios.cmd"
X}
X
Xstop_postcmd() {
X  rm -f "%%NAGIOSDIR%%/nagios.tmp" "%%NAGIOSDIR%%/rw/nagios.cmd"
X}
X
Xrun_rc_command "$1"
END-of-ports/net-mgmt/nagios-devel/files/nagios.sh.in
echo x - ports/net-mgmt/nagios-devel/files/patch-Makefile.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-Makefile.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-Makefile.in'
X--- Makefile.in.orig	Sun Jun 10 02:13:01 2007
X+++ Makefile.in	Fri Jul 20 15:03:57 2007
X@@ -185,12 +185,12 @@
X 	$(MAKE) install-basic
X 
X install-basic:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
X 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
X 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
X 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CHECKRESULTDIR)
X 	if [ $(INSTALLPERLSTUFF) = yes ]; then \
X-		$(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
X+		$(INSTALL) -m 644 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
X 	fi;
X 
X 	@echo ""
X@@ -212,19 +212,19 @@
X 
X 
X install-config:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
X-	$(INSTALL) -b -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg.sample
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg.sample
X-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg.sample
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg-sample
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg-sample
X 
X 	@echo ""
X 	@echo "*** Sample config files installed ***"
X@@ -254,7 +254,6 @@
X 
X install-commandmode:
X 	$(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw
X-	chmod g+s $(DESTDIR)$(LOGDIR)/rw
X 
X 	@echo ""
X 	@echo "*** External command directory configured ***"
END-of-ports/net-mgmt/nagios-devel/files/patch-Makefile.in
echo x - ports/net-mgmt/nagios-devel/files/patch-base__Makefile.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-base__Makefile.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-base__Makefile.in'
X--- base/Makefile.in.orig	Wed Jan 24 04:58:34 2007
X+++ base/Makefile.in	Fri Jul 20 13:34:45 2007
X@@ -193,9 +193,9 @@
X 	$(MAKE) install-basic
X 
X install-basic:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
X-	$(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
X-	$(INSTALL) -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
X 
X strip-post-install:
X 	$(STRIP) $(DESTDIR)$(BINDIR)/@nagios_name@
END-of-ports/net-mgmt/nagios-devel/files/patch-base__Makefile.in
echo x - ports/net-mgmt/nagios-devel/files/patch-cgi__Makefile.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-cgi__Makefile.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-cgi__Makefile.in'
X--- cgi/Makefile.in.orig	Wed Dec 13 02:57:57 2006
X+++ cgi/Makefile.in	Fri Jul 20 13:35:18 2007
X@@ -190,9 +190,9 @@
X 	$(MAKE) install-basic
X 
X install-basic:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
X 	for file in *.cgi; do \
X-		$(INSTALL) -m 775 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
X+		$(INSTALL) -m 755 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
X 	done
X 
X strip-post-install:
END-of-ports/net-mgmt/nagios-devel/files/patch-cgi__Makefile.in
echo x - ports/net-mgmt/nagios-devel/files/patch-configure.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-configure.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-configure.in'
X--- configure.in.orig	Wed Jun 20 08:41:34 2007
X+++ configure.in	Fri Jul 20 14:20:13 2007
X@@ -6,7 +6,6 @@
X 
X AC_INIT(base/nagios.c)
X AC_CONFIG_HEADER(include/config.h include/snprintf.h include/nagios.h include/cgiutils.h)
X-AC_PREFIX_DEFAULT(/usr/local/nagios)
X 
X PKG_NAME=nagios
X PKG_VERSION="3.0a5"
X@@ -196,7 +195,7 @@
X AC_SUBST(nagios_grp)
X AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_USER,"$nagios_user")
X AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_GROUP,"$nagios_grp")
X-INSTALL_OPTS="-o $nagios_user -g $nagios_grp"
X+INSTALL_OPTS="-o root -g wheel"
X AC_SUBST(INSTALL_OPTS)
X 
X AC_ARG_WITH(command_user,--with-command-user=<user> sets user name for command access,command_user=$withval,command_user=$nagios_user)
X@@ -520,9 +519,9 @@
X fi
X 
X dnl Try and locate glib
X-GLIB_INCLUDE=`pkg-config --cflags glib-2.0`
X+GLIB_INCLUDE=""
X AC_SUBST(GLIB_INCLUDE)
X-GLIB_LIBS=`pkg-config --libs glib-2.0`
X+GLIB_LIBS=""
X AC_SUBST(GLIB_LIBS)
X if test x$GLIB_LIBS != x; then
X 	AC_DEFINE_UNQUOTED(HAVE_GLIB)
END-of-ports/net-mgmt/nagios-devel/files/patch-configure.in
echo x - ports/net-mgmt/nagios-devel/files/patch-contrib__Makefile.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-contrib__Makefile.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-contrib__Makefile.in'
X--- contrib/Makefile.in.orig	Tue Nov 15 12:19:36 2005
X+++ contrib/Makefile.in	Fri Jul 20 13:35:47 2007
X@@ -46,10 +46,10 @@
X devclean: distclean
X 
X install:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
X-	for f in $(CGIS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
X-	for f in $(UTILS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
X+	for f in $(CGIS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
X+	for f in $(UTILS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
X 
X ##############################################################################
X # rules and dependencies for actual target programs
END-of-ports/net-mgmt/nagios-devel/files/patch-contrib__Makefile.in
echo x - ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in << 'END-of-ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in'
X--- html/Makefile.in.orig	Thu Jun  1 05:56:42 2006
X+++ html/Makefile.in	Fri Jul 20 13:36:35 2007
X@@ -33,37 +33,37 @@
X devclean: distclean
X 
X install:
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
X-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
X-	$(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
X-	$(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
X+	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
X+	$(INSTALL) -m 644 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
X 	for file in *.html; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
X 	for file in media/*.wav; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
X 	for file in stylesheets/*.css; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
X 	for file in contexthelp/*.html; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
X 	for file in docs/*.html; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
X 	for file in docs/images/*.*; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
X 	for file in images/*.gif; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X 	for file in images/*.jpg; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X 	for file in images/*.png; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
X 	for file in images/logos/*.*; \
X-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
X+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
X 
X install-unstripped:
X 	$(MAKE) install
END-of-ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in
echo x - ports/net-mgmt/nagios-devel/files/patch-include__locations.h.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-include__locations.h.in << 'END-of-ports/../files/patch-include__locations.h.in'
X--- include/locations.h.in.orig	Tue May  1 08:15:57 2007
X+++ include/locations.h.in	Fri Jul 20 15:52:49 2007
X@@ -20,7 +20,7 @@
X 
X #define DEFAULT_TEMP_FILE			"@localstatedir@/tempfile"
X #define DEFAULT_TEMP_PATH                       "/tmp"
X-#define DEFAULT_CHECK_RESULT_PATH		"@localstatedir@/spool/checkresults"
X+#define DEFAULT_CHECK_RESULT_PATH		"@localstatedir@/checkresults"
X #define DEFAULT_STATUS_FILE			"@localstatedir@/status.dat"
X #define DEFAULT_LOG_FILE			"@localstatedir@/nagios.log"
X #define DEFAULT_LOG_ARCHIVE_PATH		"@localstatedir@/archives/"
END-of-ports/../files/patch-include__locations.h.in
echo x - ports/net-mgmt/nagios-devel/files/patch-sample-config__nagios.cfg.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-sample-config__nagios.cfg.in << 'END-of-ports/../files/patch-sample-config__nagios.cfg.in'
X--- sample-config/nagios.cfg.in.orig	Tue Jun 19 02:26:33 2007
X+++ sample-config/nagios.cfg.in	Fri Jul 20 13:45:09 2007
X@@ -32,7 +32,7 @@
X cfg_file=@sysconfdir@/objects/timeperiods.cfg
X cfg_file=@sysconfdir@/objects/templates.cfg
X 
X-# Definitions for monitoring the local (Linux) host
X+# Definitions for monitoring the local (FreeBSD) host
X cfg_file=@sysconfdir@/objects/localhost.cfg
X 
X # Definitions for monitoring a Windows machine
END-of-ports/../files/patch-sample-config__nagios.cfg.in
echo x - ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__localhost.cfg.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__localhost.cfg.in << 'END-of-ports/../files/..object__localhost.cfg.in'
X--- sample-config/template-object/localhost.cfg.in.orig	Sun Jun 10 02:13:05 2007
X+++ sample-config/template-object/localhost.cfg.in	Fri Jul 20 13:46:46 2007
X@@ -5,7 +5,7 @@
X #
X # NOTE: This config file is intended to serve as an *extremely* simple 
X #       example of how you can create configuration entries to monitor
X-#       the local (Linux) machine.
X+#       the local (FreeBSD) machine.
X #
X ###############################################################################
X 
X@@ -23,9 +23,9 @@
X # Define a host for the local machine
X 
X define host{
X-        use                     linux-server            ; Name of host template to use
X+        use                     freebsd-server          ; Name of host template to use
X 							; This host definition will inherit all variables that are defined
X-							; in (or inherited by) the linux-server host template definition.
X+							; in (or inherited by) the freebsd-server host template definition.
X         host_name               localhost
X         alias                   localhost
X         address                 127.0.0.1
X@@ -41,12 +41,12 @@
X ###############################################################################
X ###############################################################################
X 
X-# Define an optional hostgroup for Linux machines
X+# Define an optional hostgroup for FreeBSD machines
X 
X define hostgroup{
X-        hostgroup_name  linux-servers ; The name of the hostgroup
X-        alias           Linux Servers ; Long name of the group
X-        members         localhost     ; Comma separated list of hosts that belong to this group
X+        hostgroup_name  freebsd-servers ; The name of the hostgroup
X+        alias           FreeBSD Servers ; Long name of the group
X+        members         localhost       ; Comma separated list of hosts that belong to this group
X         }
X 
X 
END-of-ports/../files/..object__localhost.cfg.in
echo x - ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__templates.cfg.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/patch-sample-config__template-object__templates.cfg.in << 'END-of-ports/../files/..object__templates.cfg.in'
X--- sample-config/template-object/templates.cfg.in.orig	Fri Jul 20 13:46:57 2007
X+++ sample-config/template-object/templates.cfg.in	Fri Jul 20 13:47:52 2007
X@@ -63,17 +63,17 @@
X         }
X 
X 
X-# Linux host definition template - This is NOT a real host, just a template!
X+# FreeBSD host definition template - This is NOT a real host, just a template!
X 
X define host{
X-	name				linux-server	; The name of this host template
X+	name				freebsd-server	; The name of this host template
X 	use				generic-host	; This template inherits other values from the generic-host template
X-	check_period			24x7		; By default, Linux hosts are checked round the clock
X+	check_period			24x7		; By default, FreeBSD hosts are checked round the clock
X 	check_interval			5		; Actively check the host every 5 minutes
X 	retry_interval			1		; Schedule host check retries at 1 minute intervals
X-	max_check_attempts		10		; Check each Linux host 10 times (max)
X-        check_command           	check-host-alive ; Default command to check Linux hosts
X-	notification_period		workhours	; Linux admins hate to be woken up, so we only notify during the day
X+	max_check_attempts		10		; Check each FreeBSD host 10 times (max)
X+        check_command           	check-host-alive ; Default command to check FreeBSD hosts
X+	notification_period		workhours	; FreeBSD admins hate to be woken up, so we only notify during the day
X 							; Note that the notification_period variable is being overridden from
X 							; the value that is inherited from the generic-host template!
X 	notification_interval		120		; Resend notifications every 2 hours
END-of-ports/../files/..object__templates.cfg.in
echo x - ports/net-mgmt/nagios-devel/files/pkg-deinstall.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/pkg-deinstall.in << 'END-of-ports/net-mgmt/nagios-devel/files/pkg-deinstall.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
XNAGIOSDIR=%%NAGIOSDIR%%
XNAGIOSUSER=%%NAGIOSUSER%%
XNAGIOSGROUP=%%NAGIOSGROUP%%
X
Xif [ "$2" = "POST-DEINSTALL" ]; then
X  if /usr/sbin/pw group show "${NAGIOSGROUP}" 2>&1 >/dev/null; then
X    echo "You should manually remove the \"${NAGIOSGROUP}\" group."
X  fi
X
X  if /usr/sbin/pw user show "${NAGIOSUSER}" 2>&1 >/dev/null; then
X    echo "You should manually remove the \"${NAGIOSUSER}\" user."
X  fi
X
X  if [ -e "${NAGIOSDIR}" ]; then
X    echo "You should manually remove the \"${NAGIOSDIR}\" directory."
X  fi
Xfi
END-of-ports/net-mgmt/nagios-devel/files/pkg-deinstall.in
echo x - ports/net-mgmt/nagios-devel/files/pkg-install.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/pkg-install.in << 'END-of-ports/net-mgmt/nagios-devel/files/pkg-install.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
XNAGIOSDIR=%%NAGIOSDIR%%
XNAGIOSUSER=%%NAGIOSUSER%%
XNAGIOSGROUP=%%NAGIOSGROUP%%
XNAGIOSUID=%%NAGIOSUID%%
XNAGIOSGID=%%NAGIOSGID%%
X
Xask() {
X  local question default answer
X
X  question=$1
X  default=$2
X  if [ -z "${PACKAGE_BUILDING}" ]; then
X    read -p "${question} [${default}]? " answer
X  fi
X  if [ "x${answer}" = "x" ]; then
X    answer=${default}
X  fi
X  echo ${answer}
X}
X
Xyesno() {
X  local default question answer
X
X  question=$1
X  default=$2
X  while :; do
X    answer=$(ask "${question}" "${default}")
X    case "${answer}" in
X      [Yy][Ee][Ss]|[Yy])
X        return 0
X        ;;
X      [Nn][Oo]|[Nn])
X        return 1
X        ;;
X    esac
X    echo "Please answer yes or no."
X   done
X}
X
Xif [ "$2" = "PRE-INSTALL" ]; then
X  if /usr/sbin/pw group show "${NAGIOSGROUP}" 2>&1 >/dev/null; then
X    echo "You already have a \"${NAGIOSGROUP}\" group, so I will use it."
X  else
X    echo "You need a \"${NAGIOSGROUP}\" group."
X    if yesno "Would you like me to create it" "YES"; then
X      /usr/sbin/pw groupadd "${NAGIOSGROUP}" -g "${NAGIOSGID}" -h - || \
X        /usr/sbin/pw groupadd "${NAGIOSGROUP}" -h - || exit
X      echo "Done."
X    else
X      echo "Please create the \"${NAGIOSGROUP}\" group manually and try again."
X      exit 1
X    fi
X  fi
X
X  if /usr/sbin/pw user show "${NAGIOSUSER}" 2>&1 >/dev/null; then
X    echo "You already have a \"${NAGIOSUSER}\" user, so I will use it."
X  else
X    echo "You need a \"${NAGIOSUSER}\" user."
X    if yesno "Would you like me to create it" "YES"; then
X      /usr/sbin/pw useradd "${NAGIOSUSER}" -u "${NAGIOSUID}" -g "${NAGIOSGROUP}" -h - -d "${NAGIOSDIR}" \
X        -s /sbin/nologin -c "Nagios pseudo-user" || \
X        /usr/sbin/pw useradd "${NAGIOSUSER}" -g "${NAGIOSGROUP}" -h - -d "${NAGIOSDIR}" \
X        -s /sbin/nologin -c "Nagios pseudo-user" || exit
X    else
X      echo "Please create the \"${NAGIOSUSER}\" user manually and try again."
X      exit 1
X    fi
X  fi
Xfi
END-of-ports/net-mgmt/nagios-devel/files/pkg-install.in
echo x - ports/net-mgmt/nagios-devel/files/pkg-message.in
sed 's/^X//' >ports/net-mgmt/nagios-devel/files/pkg-message.in << 'END-of-ports/net-mgmt/nagios-devel/files/pkg-message.in'
X**********************************************************************
X
X Enable nagios in /etc/rc.conf with the following line:
X
X   nagios_enable="YES"
X
X Configuration templates are available in %%PREFIX%%/etc/nagios as
X *.cfg-sample files.  Copy then to *.cfg files where required and
X edit to suit your needs.  Documentation is available in HTML form
X in %%PREFIX%%/%%NAGIOSWWWDIR%%/docs.
X
X If you don't already have a web server running, you will need to
X install and configure one to finish off your nagios installation.
X When used with Apache, the following should be sufficient to publish
X the web component of nagios (modification of allow list encouraged):
X
X   <Directory %%PREFIX%%/%%NAGIOSWWWDIR%%>
X     Order deny,allow
X     Deny from all
X     Allow from 127.0.0.1          # localhost
X   </Directory>
X
X   <Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin>
X     Options ExecCGI
X   </Directory>
X
X  ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/
X  Alias %%NAGIOSHTMURL%%/  %%PREFIX%%/%%NAGIOSWWWDIR%%/
X
X**********************************************************************
END-of-ports/net-mgmt/nagios-devel/files/pkg-message.in
exit
--- net-mgmt-nagios-devel.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707200915.l6K9Ft9W042861>