From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 23 20:30:04 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C65116A4CE for ; Wed, 23 Mar 2005 20:30:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7951D43D48 for ; Wed, 23 Mar 2005 20:30:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2NKU3pq013290 for ; Wed, 23 Mar 2005 20:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2NKU35r013286; Wed, 23 Mar 2005 20:30:03 GMT (envelope-from gnats) Resent-Date: Wed, 23 Mar 2005 20:30:03 GMT Resent-Message-Id: <200503232030.j2NKU35r013286@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vivek Khera Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A69BE16A4CE for ; Wed, 23 Mar 2005 20:29:25 +0000 (GMT) Received: from lorax.kcilink.com (lorax.kciLink.com [206.112.95.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFF2E43D46 for ; Wed, 23 Mar 2005 20:29:24 +0000 (GMT) (envelope-from vivek@lorax.kcilink.com) Received: from localhost (localhost [127.0.0.1]) by lorax.kcilink.com (Postfix) with ESMTP id 1624C3E96 for ; Wed, 23 Mar 2005 15:29:24 -0500 (EST) Received: from lorax.kcilink.com ([127.0.0.1]) by localhost (lorax.kcilink.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07936-02-2 for ; Wed, 23 Mar 2005 15:29:18 -0500 (EST) Received: by lorax.kcilink.com (Postfix, from userid 120) id 78DD03EE3; Wed, 23 Mar 2005 15:29:18 -0500 (EST) Message-Id: <20050323202918.78DD03EE3@lorax.kcilink.com> Date: Wed, 23 Mar 2005 15:29:18 -0500 (EST) From: Vivek Khera To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/79170: port for nagios 1.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vivek Khera List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 20:30:04 -0000 >Number: 79170 >Category: ports >Synopsis: port for nagios 1.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Mar 23 20:30:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 4.10-RELEASE i386 >Organization: >Environment: System: FreeBSD lorax.kcilink.com 4.10-RELEASE FreeBSD 4.10-RELEASE #20: Fri May 28 14:13:44 EDT 2004 vivek@lorax.kcilink.com:/u/lorax1/usr/obj/u/lorax1/usr/src/sys/LORAX i386 >Description: Tha nagios port is updated to version 2.0, which is not back-compatible with nagios 1.2. The *entire* configuration must be changed. Therefore, I submit this port to keep nagios 1.2 in the ports tree. The Debian folks are doing something similar due to the massive change in the program.a I guess we can call it "nagios1" or "nagios12" in the net-mgmt port directory. >How-To-Repeat: >Fix: # 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: # # . # ./Makefile # ./distinfo # ./pkg-descr # ./pkg-plist # ./files # ./files/DEINSTALL.tmpl # ./files/INSTALL.tmpl # ./files/MESSAGE.tmpl # ./files/nagios.sh.tmpl # ./files/patch-aa # ./files/patch-ab # ./files/patch-ad # ./files/patch-ae # ./files/patch-ag # ./files/patch-ai # ./files/patch-xcddb.c # ./files/patch-xdddb.c # ./files/patch-xeddb.c # ./files/patch-xrddb.c # ./files/patch-xsddb.c # echo c - . mkdir -p . > /dev/null 2>&1 echo x - ./Makefile sed 's/^X//' >./Makefile << 'END-of-./Makefile' X# New ports collection makefile for: nagios X# Date created: 19 May 2002 X# Whom: Blaz Zupan X# X# $FreeBSD: ports/net-mgmt/nagios/Makefile,v 1.37 2004/07/25 18:48:12 pav Exp $ X# X XPORTNAME= nagios XPORTVERSION= 1.2 XPORTREVISION= 1 XCATEGORIES= net-mgmt XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR=nagios X XMAINTAINER= ports@freebsd.org 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 XGNU_CONFIGURE= yes XUSE_RC_SUBR= yes XUSE_PERL5_BUILD=yes X XPKGINSTALL= ${WRKDIR}/INSTALL XPKGDEINSTALL= ${WRKDIR}/DEINSTALL XPKGMESSAGE= ${WRKDIR}/MESSAGE X XNAGIOSUSER?= nagios XNAGIOSGROUP?= nagios XNAGIOSDIR?= /var/spool/nagios X XOPTIONS= MYSQL "MySQL suport" off \ X PGSQL "PostgreSQL suport" off \ X FILE_PERFDATA "Save performance data to files" off X X.include X XCPPFLAGS= -I${LOCALBASE}/include XCONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ X LDFLAGS="${LDFLAGS}" \ X CFLAGS="${CPPFLAGS} ${CFLAGS}" \ X LIBS="-L${LOCALBASE}/lib -lgd" XCONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \ X --with-command-grp=www \ X --with-nagios-user=${NAGIOSUSER} \ X --with-nagios-grp=${NAGIOSGROUP} \ X --with-template-objects \ X --sbindir=${PREFIX}/share/nagios/cgi-bin \ X --libexecdir=${PREFIX}/libexec/nagios \ X --datadir=${PREFIX}/share/nagios \ X --sysconfdir=${PREFIX}/etc/nagios \ X --localstatedir=${NAGIOSDIR} \ X --prefix=${PREFIX} X X.if defined(WITH_MYSQL) XUSE_MYSQL= yes XCONFIGURE_ARGS+= --with-mysql-lib=${LOCALBASE}/lib/mysql \ X --with-mysql-inc=${LOCALBASE}/include/mysql \ X --with-mysql-xdata X.else XCONFIGURE_ARGS+= --with-template-extinfo X.endif X X.if defined(WITH_FILE_PERFDATA) XCONFIGURE_ARGS+=--with-file-perfdata X.endif X X.if defined(WITH_PGSQL) XLIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7 XCONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/pgsql \ X --with-pgsql-inc=${LOCALBASE}/pgsql \ X --with-pgsql-xdata X.endif X XSED_SCRIPT= -e 's,%%NAGIOSUSER%%,${NAGIOSUSER},g' \ X -e 's,%%NAGIOSGROUP%%,${NAGIOSGROUP},g' \ X -e 's,%%NAGIOSDIR%%,${NAGIOSDIR},g' \ X -e 's,%%PREFIX%%,${PREFIX},g' \ X -e 's,%%RC_SUBR%%,${RC_SUBR},g' X XINSTALL_TARGET= all install config install-config install-commandmode X Xpre-build: X for file in nagios.sh INSTALL DEINSTALL MESSAGE; do \ X ${SED} ${SED_SCRIPT} < ${FILESDIR}/$${file}.tmpl >${WRKDIR}/$${file}; \ X done X Xpre-install: X @${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL X Xpost-install: X @${INSTALL_SCRIPT} ${WRKDIR}/nagios.sh ${PREFIX}/etc/rc.d/ X @${CAT} ${PKGMESSAGE} X X.include END-of-./Makefile echo x - ./distinfo sed 's/^X//' >./distinfo << 'END-of-./distinfo' XMD5 (nagios-1.2.tar.gz) = 414d70e5269d5b8d7c21bf3ee129309f XSIZE (nagios-1.2.tar.gz) = 1625322 END-of-./distinfo echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr' XNagios is a host and service monitor designed to inform you of network Xproblems before your clients, end-users or managers do. It has been Xdesigned to run under the Linux operating system, but works fine under Xmost *NIX variants as well. The monitoring daemon runs intermittent Xchecks on hosts and services you specify using external "plugins" Xwhich return status information to Nagios. When problems are Xencountered, the daemon can send notifications out to administrative Xcontacts in a variety of different ways (email, instant message, SMS, Xetc.). Current status information, historical logs, and reports can Xall be accessed via a web browser. X XWWW: http://www.nagios.org/ END-of-./pkg-descr echo x - ./pkg-plist sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist' X@exec mkdir -p %D/share/nagios/ssi X@exec mkdir -p /var/spool/nagios/archives X@exec mkdir -p /var/spool/nagios/rw X@exec chmod 775 /var/spool/nagios /var/spool/nagios/archives /var/spool/nagios/rw X@exec chown nagios:nagios /var/spool/nagios /var/spool/nagios/archives X@exec chown nagios:nogroup /var/spool/nagios/rw Xbin/nagios Xetc/nagios/cgi.cfg-sample Xetc/nagios/checkcommands.cfg-sample Xetc/nagios/contactgroups.cfg-sample Xetc/nagios/contacts.cfg-sample Xetc/nagios/dependencies.cfg-sample Xetc/nagios/escalations.cfg-sample Xetc/nagios/hostextinfo.cfg-sample Xetc/nagios/hostgroups.cfg-sample Xetc/nagios/hosts.cfg-sample Xetc/nagios/misccommands.cfg-sample Xetc/nagios/nagios.cfg-sample Xetc/nagios/resource.cfg-sample Xetc/nagios/serviceextinfo.cfg-sample Xetc/nagios/services.cfg-sample Xetc/nagios/timeperiods.cfg-sample Xetc/rc.d/nagios.sh Xshare/nagios/cgi-bin/avail.cgi Xshare/nagios/cgi-bin/cmd.cgi Xshare/nagios/cgi-bin/config.cgi Xshare/nagios/cgi-bin/extinfo.cgi Xshare/nagios/cgi-bin/histogram.cgi Xshare/nagios/cgi-bin/history.cgi Xshare/nagios/cgi-bin/notifications.cgi Xshare/nagios/cgi-bin/outages.cgi Xshare/nagios/cgi-bin/showlog.cgi Xshare/nagios/cgi-bin/status.cgi Xshare/nagios/cgi-bin/statusmap.cgi Xshare/nagios/cgi-bin/statuswml.cgi Xshare/nagios/cgi-bin/statuswrl.cgi Xshare/nagios/cgi-bin/summary.cgi Xshare/nagios/cgi-bin/tac.cgi Xshare/nagios/cgi-bin/trends.cgi Xshare/nagios/contexthelp/A1.html Xshare/nagios/contexthelp/A2.html Xshare/nagios/contexthelp/A3.html Xshare/nagios/contexthelp/A4.html Xshare/nagios/contexthelp/A5.html Xshare/nagios/contexthelp/A6.html Xshare/nagios/contexthelp/A7.html Xshare/nagios/contexthelp/B1.html Xshare/nagios/contexthelp/C1.html Xshare/nagios/contexthelp/D1.html Xshare/nagios/contexthelp/E1.html Xshare/nagios/contexthelp/F1.html Xshare/nagios/contexthelp/G1.html Xshare/nagios/contexthelp/G2.html Xshare/nagios/contexthelp/G3.html Xshare/nagios/contexthelp/G4.html Xshare/nagios/contexthelp/G5.html Xshare/nagios/contexthelp/G6.html Xshare/nagios/contexthelp/H1.html Xshare/nagios/contexthelp/H2.html Xshare/nagios/contexthelp/H3.html Xshare/nagios/contexthelp/H4.html Xshare/nagios/contexthelp/H5.html Xshare/nagios/contexthelp/H6.html Xshare/nagios/contexthelp/H7.html Xshare/nagios/contexthelp/H8.html Xshare/nagios/contexthelp/I1.html Xshare/nagios/contexthelp/I2.html Xshare/nagios/contexthelp/I3.html Xshare/nagios/contexthelp/I4.html Xshare/nagios/contexthelp/I5.html Xshare/nagios/contexthelp/I6.html Xshare/nagios/contexthelp/I7.html Xshare/nagios/contexthelp/I8.html Xshare/nagios/contexthelp/J1.html Xshare/nagios/contexthelp/K1.html Xshare/nagios/contexthelp/L1.html Xshare/nagios/contexthelp/L10.html Xshare/nagios/contexthelp/L11.html Xshare/nagios/contexthelp/L12.html Xshare/nagios/contexthelp/L13.html Xshare/nagios/contexthelp/L2.html Xshare/nagios/contexthelp/L3.html Xshare/nagios/contexthelp/L4.html Xshare/nagios/contexthelp/L5.html Xshare/nagios/contexthelp/L6.html Xshare/nagios/contexthelp/L7.html Xshare/nagios/contexthelp/L8.html Xshare/nagios/contexthelp/L9.html Xshare/nagios/contexthelp/M1.html Xshare/nagios/contexthelp/M2.html Xshare/nagios/contexthelp/M3.html Xshare/nagios/contexthelp/M4.html Xshare/nagios/contexthelp/M5.html Xshare/nagios/contexthelp/M6.html Xshare/nagios/contexthelp/N1.html Xshare/nagios/contexthelp/N2.html Xshare/nagios/contexthelp/N3.html Xshare/nagios/contexthelp/N4.html Xshare/nagios/contexthelp/N5.html Xshare/nagios/contexthelp/N6.html Xshare/nagios/contexthelp/N7.html Xshare/nagios/docs/images/activepassive.png Xshare/nagios/docs/images/cgi-avail-a.png Xshare/nagios/docs/images/cgi-avail-b.png Xshare/nagios/docs/images/cgi-cmd.png Xshare/nagios/docs/images/cgi-config.png Xshare/nagios/docs/images/cgi-extinfo-a.png Xshare/nagios/docs/images/cgi-extinfo-b.png Xshare/nagios/docs/images/cgi-extinfo-c.png Xshare/nagios/docs/images/cgi-extinfo-d.png Xshare/nagios/docs/images/cgi-histogram.png Xshare/nagios/docs/images/cgi-history.png Xshare/nagios/docs/images/cgi-notifications.png Xshare/nagios/docs/images/cgi-outages.png Xshare/nagios/docs/images/cgi-showlog.png Xshare/nagios/docs/images/cgi-status-a.png Xshare/nagios/docs/images/cgi-status-b.png Xshare/nagios/docs/images/cgi-status-c.png Xshare/nagios/docs/images/cgi-status-d.png Xshare/nagios/docs/images/cgi-statusmap.png Xshare/nagios/docs/images/cgi-statuswml.png Xshare/nagios/docs/images/cgi-statuswrl.png Xshare/nagios/docs/images/cgi-summary.png Xshare/nagios/docs/images/cgi-tac.png Xshare/nagios/docs/images/cgi-trends.png Xshare/nagios/docs/images/checktiming.png Xshare/nagios/docs/images/distributed.png Xshare/nagios/docs/images/host-dependencies.png Xshare/nagios/docs/images/indirecthostcheck.png Xshare/nagios/docs/images/indirectsvccheck.png Xshare/nagios/docs/images/indirectsvccheck2.png Xshare/nagios/docs/images/interleaved1.png Xshare/nagios/docs/images/interleaved2.png Xshare/nagios/docs/images/interleaved3.png Xshare/nagios/docs/images/logofullsize.png Xshare/nagios/docs/images/network-heirarchy.png Xshare/nagios/docs/images/network-outage1.png Xshare/nagios/docs/images/network-outage2.png Xshare/nagios/docs/images/noninterleaved1.png Xshare/nagios/docs/images/noninterleaved2.png Xshare/nagios/docs/images/physical-network.png Xshare/nagios/docs/images/plugintheory.png Xshare/nagios/docs/images/redudancy.png Xshare/nagios/docs/images/redundancy.png Xshare/nagios/docs/images/service-dependencies.png Xshare/nagios/docs/images/statetransitions.png Xshare/nagios/docs/images/statetransitions2.png Xshare/nagios/docs/about.html Xshare/nagios/docs/addons.html Xshare/nagios/docs/beginners.html Xshare/nagios/docs/cgiauth.html Xshare/nagios/docs/cgiincludes.html Xshare/nagios/docs/cgis.html Xshare/nagios/docs/checkscheduling.html Xshare/nagios/docs/clusters.html Xshare/nagios/docs/commandfile.html Xshare/nagios/docs/config.html Xshare/nagios/docs/configcgi.html Xshare/nagios/docs/configextinfo.html Xshare/nagios/docs/configmain.html Xshare/nagios/docs/configobject.html Xshare/nagios/docs/dependencies.html Xshare/nagios/docs/distributed.html Xshare/nagios/docs/downtime.html Xshare/nagios/docs/embeddedperl.html Xshare/nagios/docs/escalations.html Xshare/nagios/docs/eventhandlers.html Xshare/nagios/docs/extcommands.html Xshare/nagios/docs/faqs.html Xshare/nagios/docs/flapping.html Xshare/nagios/docs/freshness.html Xshare/nagios/docs/funstuff.html Xshare/nagios/docs/index.html Xshare/nagios/docs/indirectchecks.html Xshare/nagios/docs/installing.html Xshare/nagios/docs/installweb.html Xshare/nagios/docs/int-portsentry.html Xshare/nagios/docs/int-snmptrap.html Xshare/nagios/docs/int-tcpwrappers.html Xshare/nagios/docs/macros.html Xshare/nagios/docs/networkoutages.html Xshare/nagios/docs/networkreachability.html Xshare/nagios/docs/notifications.html Xshare/nagios/docs/parallelization.html Xshare/nagios/docs/passivechecks.html Xshare/nagios/docs/perfdata.html Xshare/nagios/docs/plugins.html Xshare/nagios/docs/plugintheory.html Xshare/nagios/docs/redundancy.html Xshare/nagios/docs/robots.txt Xshare/nagios/docs/security.html Xshare/nagios/docs/stalking.html Xshare/nagios/docs/starting.html Xshare/nagios/docs/statetypes.html Xshare/nagios/docs/stoprestart.html Xshare/nagios/docs/templaterecursion.html Xshare/nagios/docs/templatetricks.html Xshare/nagios/docs/timeperiods.html Xshare/nagios/docs/toc.html Xshare/nagios/docs/tuning.html Xshare/nagios/docs/verifyconfig.html Xshare/nagios/docs/volatileservices.html Xshare/nagios/docs/whatsnew.html Xshare/nagios/docs/xdata-db.html Xshare/nagios/docs/xeddefault.html Xshare/nagios/docs/xedtemplate.html Xshare/nagios/docs/xoddefault.html Xshare/nagios/docs/xodtemplate.html Xshare/nagios/docs/xpddefault.html Xshare/nagios/docs/xpdfile.html Xshare/nagios/images/ack.gif Xshare/nagios/images/command.png Xshare/nagios/images/comment.gif Xshare/nagios/images/contexthelp1.gif Xshare/nagios/images/contexthelp2.gif Xshare/nagios/images/critical.png Xshare/nagios/images/delay.gif Xshare/nagios/images/delete.gif Xshare/nagios/images/disabled.gif Xshare/nagios/images/down.gif Xshare/nagios/images/downtime.gif Xshare/nagios/images/empty.gif Xshare/nagios/images/enabled.gif Xshare/nagios/images/extinfo.gif Xshare/nagios/images/flapping.gif Xshare/nagios/images/greendot.gif Xshare/nagios/images/histogram.png Xshare/nagios/images/history.gif Xshare/nagios/images/hostevent.gif Xshare/nagios/images/info.png Xshare/nagios/images/left.gif Xshare/nagios/images/logofullsize.jpg Xshare/nagios/images/logos/nagios.gd2 Xshare/nagios/images/logos/nagios.gif Xshare/nagios/images/logos/nagiosvrml.png Xshare/nagios/images/logos/unknown.gd2 Xshare/nagios/images/logos/unknown.gif Xshare/nagios/images/logrotate.png Xshare/nagios/images/ndisabled.gif Xshare/nagios/images/noack.gif Xshare/nagios/images/notes.gif Xshare/nagios/images/notify.gif Xshare/nagios/images/orangedot.gif Xshare/nagios/images/passiveonly.gif Xshare/nagios/images/recovery.png Xshare/nagios/images/redudancy.png Xshare/nagios/images/redundancy.png Xshare/nagios/images/restart.gif Xshare/nagios/images/right.gif Xshare/nagios/images/sbconfig.png Xshare/nagios/images/sbgeneral.png Xshare/nagios/images/sblogo.jpg Xshare/nagios/images/sbmonitor.png Xshare/nagios/images/sbreport.png Xshare/nagios/images/serviceevent.gif Xshare/nagios/images/start.gif Xshare/nagios/images/status.gif Xshare/nagios/images/status2.gif Xshare/nagios/images/status3.gif Xshare/nagios/images/status4.gif Xshare/nagios/images/stop.gif Xshare/nagios/images/tacdisabled.jpg Xshare/nagios/images/tacdisabled.png Xshare/nagios/images/tacenabled.jpg Xshare/nagios/images/tacenabled.png Xshare/nagios/images/thermcrit.png Xshare/nagios/images/thermok.png Xshare/nagios/images/thermwarn.png Xshare/nagios/images/trends.gif Xshare/nagios/images/trendshost.png Xshare/nagios/images/trendssvc.png Xshare/nagios/images/unknown.png Xshare/nagios/images/up.gif Xshare/nagios/images/warning.png Xshare/nagios/images/weblogo1.png Xshare/nagios/images/zoom1.gif Xshare/nagios/images/zoom2.gif Xshare/nagios/index.html Xshare/nagios/main.html Xshare/nagios/media/critical.wav Xshare/nagios/media/hostdown.wav Xshare/nagios/media/warning.wav Xshare/nagios/robots.txt Xshare/nagios/side.html Xshare/nagios/stylesheets/avail.css Xshare/nagios/stylesheets/checksanity.css Xshare/nagios/stylesheets/cmd.css Xshare/nagios/stylesheets/config.css Xshare/nagios/stylesheets/extinfo.css Xshare/nagios/stylesheets/histogram.css Xshare/nagios/stylesheets/history.css Xshare/nagios/stylesheets/ministatus.css Xshare/nagios/stylesheets/notifications.css Xshare/nagios/stylesheets/outages.css Xshare/nagios/stylesheets/showlog.css Xshare/nagios/stylesheets/status.css Xshare/nagios/stylesheets/statusmap.css Xshare/nagios/stylesheets/summary.css Xshare/nagios/stylesheets/tac.css Xshare/nagios/stylesheets/trends.css X@unexec rmdir %D/etc/nagios 2>/dev/null || true X@dirrm share/nagios/cgi-bin X@dirrm share/nagios/contexthelp X@dirrm share/nagios/docs/images X@dirrm share/nagios/docs X@dirrm share/nagios/images/logos X@dirrm share/nagios/images X@dirrm share/nagios/media X@dirrm share/nagios/ssi X@dirrm share/nagios/stylesheets X@dirrm share/nagios X@unexec rmdir /var/spool/nagios/archives 2>/dev/null || true X@unexec rmdir /var/spool/nagios/rw 2>/dev/null || true X@unexec rmdir /var/spool/nagios 2>/dev/null || true END-of-./pkg-plist echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo x - ./files/DEINSTALL.tmpl sed 's/^X//' >./files/DEINSTALL.tmpl << 'END-of-./files/DEINSTALL.tmpl' X#!/bin/sh X# X# $FreeBSD: ports/net-mgmt/nagios/files/DEINSTALL.tmpl,v 1.1 2004/02/11 04:56:00 linimon Exp $ X# X XUSER=%%NAGIOSUSER%% XGROUP=%%NAGIOSGROUP%% XDIR=%%NAGIOSDIR%% X Xif [ "$2" = "POST-DEINSTALL" ]; then X X if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then X echo "You should manually remove the \"${GROUP}\" group." X fi X X if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then X echo "You should manually remove the \"${USER}\" user." X fi X X if [ -e ${DIR} ]; then X echo "You should manually remove the \"${DIR}\" directory." X fi Xfi END-of-./files/DEINSTALL.tmpl echo x - ./files/INSTALL.tmpl sed 's/^X//' >./files/INSTALL.tmpl << 'END-of-./files/INSTALL.tmpl' X#!/bin/sh X# X# $FreeBSD: ports/net-mgmt/nagios/files/INSTALL.tmpl,v 1.1 2004/02/11 04:56:00 linimon Exp $ X# X XUSER=%%NAGIOSUSER%% XGROUP=%%NAGIOSGROUP%% XDIR=%%NAGIOSDIR%% 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 dflt question answer X X question=$1 X dflt=$2 X while :; do X answer=$(ask "${question}" "${dflt}") X case "${answer}" in X [Yy]*) return 0;; X [Nn]*) return 1;; X esac X echo "Please answer yes or no." X done X} X Xif [ x"$2" = xPRE-INSTALL ]; then X if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then X echo "You already have a group \"${GROUP}\", so I will use it." X else X echo "You need a group \"${GROUP}\"." X if yesno "Would you like me to create it" y; then X /usr/sbin/pw groupadd ${GROUP} -h - || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi X fi X X if /usr/sbin/pw user show "${USER}" 2>/dev/null; then X echo "You already have a user \"${USER}\", so I will use it." X else X echo "You need a user \"${USER}\"." X if yesno "Would you like me to create it" y; then X /usr/sbin/pw useradd ${USER} -g ${GROUP} -h - -d ${DIR} \ X -s /nonexistent -c "Nagios pseudo-user" || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi X fi X Xfi END-of-./files/INSTALL.tmpl echo x - ./files/MESSAGE.tmpl sed 's/^X//' >./files/MESSAGE.tmpl << 'END-of-./files/MESSAGE.tmpl' 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 X as *.cfg-sample files. Copy them to *.cfg and edit them to suit X your needs. Documentation is available in HTML form in X %%PREFIX%%/share/nagios/docs. X X If you don't already have a web server running, you need to install X and configure it to finish your nagios installation. X******************************************************************* X END-of-./files/MESSAGE.tmpl echo x - ./files/nagios.sh.tmpl sed 's/^X//' >./files/nagios.sh.tmpl << 'END-of-./files/nagios.sh.tmpl' X#!/bin/sh X# X# $FreeBSD: ports/net-mgmt/nagios/files/nagios.sh.tmpl,v 1.1 2004/02/11 04:56:00 linimon Exp $ X# X X# X# Add the following lines to /etc/rc.conf to enable nagios: X# X#nagios_enable="YES" X# X X. %%RC_SUBR%% X Xname=nagios Xrcvar=`set_rcvar` X Xprefix=%%PREFIX%% X Xrequired_files=${prefix}/etc/nagios/nagios.cfg X XNagiosBin=${prefix}/bin/nagios XNagiosCfg=${prefix}/etc/nagios/nagios.cfg XNagiosVar=/var/spool/nagios XNagiosLog=${NagiosVar}/status.log XNagiosTmp=${NagiosVar}/nagios.tmp XNagiosSav=${NagiosVar}/status.sav XNagiosCmd=${NagiosVar}/rw/nagios.cmd XNagiosRun=${NagiosVar}/nagios.lock X Xpidfile=${NagiosRun} Xcommand=${NagiosBin} Xcommand_args="-d $NagiosCfg" Xnagios_user=nagios X Xstart_precmd=start_precmd Xstop_postcmd=stop_postcmd X X# set defaults X Xnagios_enable=${nagios_enable:-"NO"} Xnagios_flags=${nagios_flags:-""} X Xstart_precmd() X{ X su -m ${nagios_user} -c "touch ${NagiosVar}/nagios.log ${NagiosSav}" X rm -f ${NagiosCmd} X} X Xstop_postcmd() X{ X rm -f $NagiosLog $NagiosTmp $NagiosRun $NagiosCmd X} X Xload_rc_config $name Xrun_rc_command "$1" END-of-./files/nagios.sh.tmpl echo x - ./files/patch-aa sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa' X--- Makefile.in.orig Sat Oct 26 02:47:15 2002 X+++ Makefile.in Tue Nov 26 13:58:29 2002 X@@ -28,7 +28,7 @@ X INSTALL_OPTS=@INSTALL_OPTS@ X COMMAND_OPTS=@COMMAND_OPTS@ X INIT_DIR=@init_dir@ X-INIT_OPTS=-o root -g root X+INIT_OPTS=-o root -g wheel X CGICFGDIR=$(CGIDIR) X PERLDIR=@PERLDIR@ X X@@ -196,6 +196,8 @@ X $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/misccommands.cfg $(DESTDIR)$(CFGDIR)/misccommands.cfg-sample X $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/services.cfg $(DESTDIR)$(CFGDIR)/services.cfg-sample X $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/timeperiods.cfg-sample X+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-extinfo/hostextinfo.cfg $(DESTDIR)$(CFGDIR)/hostextinfo.cfg-sample X+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-extinfo/serviceextinfo.cfg $(DESTDIR)$(CFGDIR)/serviceextinfo.cfg-sample X X @echo "" X @echo "*** Sample config file installed ***" X@@ -215,7 +217,7 @@ X X install-daemoninit: X $(INSTALL) -m 755 -d $(INIT_OPTS) $(DESTDIR)$(INIT_DIR) X- $(INSTALL) -m 774 $(INIT_OPTS) daemon-init $(DESTDIR)$(INIT_DIR)/nagios X+ $(INSTALL) -m 774 $(INIT_OPTS) daemon-init $(DESTDIR)$(INIT_DIR)/nagios.sh X X @echo "" X @echo "*** Init script installed ***" X@@ -238,7 +240,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-./files/patch-aa echo x - ./files/patch-ab sed 's/^X//' >./files/patch-ab << 'END-of-./files/patch-ab' X--- base/Makefile.in.orig Mon Nov 11 04:52:13 2002 X+++ base/Makefile.in Tue Nov 26 13:46:41 2002 X@@ -105,7 +105,6 @@ X devclean: clean X X install: X- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR) X $(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR) X $(STRIP) $(DESTDIR)$(BINDIR)/@nagios_name@ X END-of-./files/patch-ab echo x - ./files/patch-ad sed 's/^X//' >./files/patch-ad << 'END-of-./files/patch-ad' X--- configure.orig Tue Feb 3 05:45:08 2004 X+++ configure Wed Feb 4 21:26:46 2004 X@@ -11,7 +11,7 @@ X ac_help= X ac_default_prefix=/usr/local X # Any additions from configure.in: X-ac_default_prefix=/usr/local/nagios X+#ac_default_prefix=/usr/local/nagios X ac_help="$ac_help X --with-nagios-user= sets user name to run nagios" X ac_help="$ac_help X@@ -576,9 +576,9 @@ X # Prefer explicitly selected file to automatically selected ones. X if test -z "$CONFIG_SITE"; then X if test "x$prefix" != xNONE; then X- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" X+ CONFIG_SITE="$prefix/share/nagios/config.site $prefix/etc/nagios/config.site" X else X- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" X+ CONFIG_SITE="$ac_default_prefix/share/nagios/config.site $ac_default_prefix/etc/nagios/config.site" X fi X fi X for ac_site_file in $CONFIG_SITE; do X@@ -2608,6 +2608,9 @@ X LDFLAGS="${LDFLAGS} -L${withval}" X LD_RUN_PATH="${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}" X X+else X+ LDFLAGS="${LDFLAGS} -L/usr/local/lib" X+ LD_RUN_PATH="/usr/local/ib${LD_RUN_PATH:+:}${LD_RUN_PATH}" X fi X X # Check whether --with-gd-inc or --without-gd-inc was given. X@@ -2615,6 +2618,8 @@ X withval="$with_gd_inc" X X CFLAGS="${CFLAGS} -I${withval}" X+else X+ CFLAGS="${CFLAGS} -I/usr/local/include/gd" X X fi X X@@ -2692,14 +2697,14 @@ X X X X- echo $ac_n "checking for gdImagePng in -lgd (order 1)""... $ac_c" 1>&6 X-echo "configure:2697: checking for gdImagePng in -lgd (order 1)" >&5 X+ echo $ac_n "checking for gdImagePng in -lgd1 (order 1)""... $ac_c" 1>&6 X+echo "configure:2697: checking for gdImagePng in -lgd1 (order 1)" >&5 X ac_lib_var=`echo gd'_'gdImagePng'_'1 | sed 'y%./+-%__p_%'` X if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 X else X ac_save_LIBS="$LIBS" X- LIBS="-lgd $ICONV -lz -lm -lpng -ljpeg $LIBS" X+ LIBS="-lgd1 $ICONV -lz -lm -lpng -ljpeg $LIBS" X cat > conftest.$ac_ext <&6 X X GDLIBFOUND=yep X- GDLIBS="-lgd $ICONV -lz -lm -lpng -ljpeg" X+ GDLIBS="-lgd1 $ICONV -lz -lm -lpng -ljpeg" X X else X echo "$ac_t""no" 1>&6 END-of-./files/patch-ad echo x - ./files/patch-ae sed 's/^X//' >./files/patch-ae << 'END-of-./files/patch-ae' X--- configure.in.orig Mon Apr 30 17:22:35 2001 X+++ configure.in Tue May 1 19:36:54 2001 X@@ -1,7 +1,7 @@ X dnl Process this -*-m4-*- file with autoconf to produce a configure script. X AC_INIT(base/nagios.c) X AC_CONFIG_HEADER(common/config.h common/snprintf.h base/nagios.h cgi/cgiutils.h) X-AC_PREFIX_DEFAULT(/usr/local/nagios) X+AC_PREFIX_DEFAULT(/usr/local) X X dnl Figure out how to invoke "install" and what install options to use. X AC_PROG_INSTALL END-of-./files/patch-ae echo x - ./files/patch-ag sed 's/^X//' >./files/patch-ag << 'END-of-./files/patch-ag' X--- functions Fri Apr 7 11:11:34 2000 X+++ functions.new Sat Jun 10 13:31:31 2000 X@@ -11,7 +11,7 @@ X # X X # First set up a default search path. X-PATH=/opt/gnu/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin X+PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin X export PATH X X # Get a sane screen width X@@ -174,7 +174,7 @@ X # fi X X # Finally try to extract it from ps X- pid=`ps -eo pid,ppid,fname | egrep -v $$ | awk 'BEGIN { prog=ARGV[1]; ARGC=1 } { if ((prog == $3) || (("(" prog ")") == $3) || (("[" prog "]") == $3) || ((prog ":") == $3)) { print $1 ; exit 0 } }' $1` X+ pid=`ps -axco pid,ppid,command | egrep -v $$ | awk 'BEGIN { prog=ARGV[1]; ARGC=1 } { if ((prog == $3) || (("(" prog ")") == $3) || (("[" prog "]") == $3) || ((prog ":") == $3)) { print $1 ; exit 0 } }' $1` X if [ "$pid" != "" ] ; then X echo $pid X return 0 X@@ -206,8 +206,8 @@ X fi X fi X X- # See if /var/lock/subsys/$1 exists X- if [ -f /var/lock/subsys/$1 ]; then X+ # See if /var/spool/lock/$1 exists X+ if [ -f /var/spool/lock/$1 ]; then X echo "$1 dead but subsys locked" X return 2 X fi END-of-./files/patch-ag echo x - ./files/patch-ai sed 's/^X//' >./files/patch-ai << 'END-of-./files/patch-ai' X--- daemon-init.in.orig Thu Apr 18 06:27:13 2002 X+++ daemon-init.in Sun May 19 08:39:29 2002 X@@ -68,11 +68,8 @@ X X X # Source function library X-# Solaris doesn't have an rc.d directory, so do a test first X-if [ -f /etc/rc.d/init.d/functions ]; then X- . /etc/rc.d/init.d/functions X-elif [ -f /etc/init.d/functions ]; then X- . /etc/init.d/functions X+if [ -f @sysconfdir@/functions ]; then X+. @sysconfdir@/functions X fi X X prefix=@prefix@ X@@ -102,7 +99,7 @@ X X start) X echo "Starting network monitor: nagios" X- su -l $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav" X+ su -m $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav" X rm -f $NagiosCmd X $NagiosBin -d $NagiosCfg X if [ -d $NagiosLckDir ]; then touch $NagiosLckDir/$NagiosLckFile; fi END-of-./files/patch-ai echo x - ./files/patch-xcddb.c sed 's/^X//' >./files/patch-xcddb.c << 'END-of-./files/patch-xcddb.c' X--- xdata/xcddb.c.orig Thu May 16 04:46:11 2002 X+++ xdata/xcddb.c Thu Mar 6 23:14:25 2003 X@@ -51,7 +51,7 @@ X #endif X X #ifdef USE_XCDPGSQL X-#include X+#include X #endif X X END-of-./files/patch-xcddb.c echo x - ./files/patch-xdddb.c sed 's/^X//' >./files/patch-xdddb.c << 'END-of-./files/patch-xdddb.c' X--- xdata/xdddb.c.orig Thu May 16 04:46:11 2002 X+++ xdata/xdddb.c Thu Mar 6 23:15:54 2003 X@@ -51,7 +51,7 @@ X #endif X X #ifdef USE_XDDPGSQL X-#include X+#include X #endif X X END-of-./files/patch-xdddb.c echo x - ./files/patch-xeddb.c sed 's/^X//' >./files/patch-xeddb.c << 'END-of-./files/patch-xeddb.c' X--- xdata/xeddb.c.orig Tue Feb 26 05:04:09 2002 X+++ xdata/xeddb.c Thu Mar 6 23:16:01 2003 X@@ -44,7 +44,7 @@ X #endif X X #ifdef USE_XEDPGSQL X-#include X+#include X #endif X X END-of-./files/patch-xeddb.c echo x - ./files/patch-xrddb.c sed 's/^X//' >./files/patch-xrddb.c << 'END-of-./files/patch-xrddb.c' X--- xdata/xrddb.c.orig Thu May 16 04:46:11 2002 X+++ xdata/xrddb.c Thu Mar 6 23:16:14 2003 X@@ -43,7 +43,7 @@ X #endif X X #ifdef USE_XRDPGSQL X-#include X+#include X #endif X X END-of-./files/patch-xrddb.c echo x - ./files/patch-xsddb.c sed 's/^X//' >./files/patch-xsddb.c << 'END-of-./files/patch-xsddb.c' X--- xdata/xsddb.c.orig Thu Nov 14 03:51:34 2002 X+++ xdata/xsddb.c Thu Mar 6 23:16:27 2003 X@@ -48,7 +48,7 @@ X #endif X X #ifdef USE_XSDPGSQL X-#include X+#include X #endif X X END-of-./files/patch-xsddb.c exit >Release-Note: >Audit-Trail: >Unformatted: