From root@inch.com  Sat Jun 22 12:59:26 2002
Return-Path: <root@inch.com>
Received: from arutam.inch.com (ns.inch.com [216.223.192.21])
	by hub.freebsd.org (Postfix) with ESMTP
	id 3F3A137B400; Sat, 22 Jun 2002 12:59:25 -0700 (PDT)
Received: from DellBSD.inch.com (DellBSD.inch.com [216.223.192.89])
	by arutam.inch.com (8.12.2/8.12.2/UTIL-INCH-3.0.6) with ESMTP id g5MJxJZm005720;
	Sat, 22 Jun 2002 15:59:19 -0400 (EDT)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by localhost.inch.com (Postfix) with ESMTP
	id 8725058B7; Sat, 22 Jun 2002 15:59:13 -0400 (EDT)
Received: by DellBSD.inch.com (Postfix, from userid 0)
	id 83FA558B6; Sat, 22 Jun 2002 15:59:12 -0400 (EDT)
Message-Id: <20020622195912.83FA558B6@DellBSD.inch.com>
Date: Sat, 22 Jun 2002 15:59:12 -0400 (EDT)
From: Scott Lambert <lambert@lambertfam.org>
Reply-To: Scott Lambert <lambert@lambertfam.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Scott Lambert <lambert@lambertfam.org>, blaz@si.FreeBSD.org,
	ports@freebsd.org
Subject: netsaint-plugins fails to install command.cfg
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39673
>Category:       ports
>Synopsis:       netsaint-plugins fails to install command.cfg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 22 13:00:02 PDT 2002
>Closed-Date:    Sun May 11 11:07:21 CDT 2003
>Last-Modified:  Sun May 11 11:07:21 CDT 2003
>Originator:     Scott Lambert
>Release:        FreeBSD 4.6-RELEASE i386
>Organization:
>Environment:
System: FreeBSD DellBSD.inch.com 4.6-RELEASE FreeBSD 4.6-RELEASE #8: Sat Jun 15 21:46:48 EDT 2002 root@DellBSD.inch.com:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	netsaint-plugins fails to install command.cfg which contains the 
	sample check_* commands for the netsaint-plugins port which makes
	it more annoying to setup checks for the non netsaint default
	plugins.  netsaint.cfg referrences the command.cfg saying:

# This comes with the plugins. Choose it for the newest plugin features.
#cfg_file=/usr/local/etc/netsaint/command.cfg

>How-To-Repeat:
	
>Fix:

	Install the following patch to the port skeleton for netsaint-plugins.

--- netsaint-plugins.diff begins here ---
diff -u netsaint-plugins/Makefile netsaint-plugins-new/Makefile
--- netsaint-plugins/Makefile	Mon Mar 25 04:19:19 2002
+++ netsaint-plugins-new/Makefile	Sat Jun 22 15:18:00 2002
@@ -37,4 +37,6 @@
 post-clean:
 	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
 
+post-install:
+	@${INSTALL_DATA} ${WRKSRC}/command.cfg ${PREFIX}/etc/netsaint/command.cfg.dist
 .include <bsd.port.mk>
Common subdirectories: netsaint-plugins/files and netsaint-plugins-new/files
diff -u netsaint-plugins/pkg-plist netsaint-plugins-new/pkg-plist
--- netsaint-plugins/pkg-plist	Thu May 17 02:02:15 2001
+++ netsaint-plugins-new/pkg-plist	Sat Jun 22 15:18:59 2002
@@ -50,3 +50,4 @@
 libexec/netsaint/utils.pm
 libexec/netsaint/utils.sh
 @dirrm libexec/netsaint
+etc/netsaint/command.cfg.dist
Common subdirectories: netsaint-plugins/scripts and netsaint-plugins-new/scripts
--- netsaint-plugins.diff ends here ---




>Release-Note:
>Audit-Trail:

From: "Blaz Zupan" <blaz@inlimbo.org>
To: <freebsd-gnats-submit@FreeBSD.org>, <lambert@lambertfam.org>
Cc:  
Subject: Re: ports/39673: netsaint-plugins fails to install command.cfg
Date: Sun, 23 Jun 2002 14:44:06 +0200

 There is an annoying problem with this, namely netsaint-plugins can be used
 either with netsaint or with nagios (the new version of netsaint), which
 uses
 ${PREFIX}/etc/nagios as the configuration directory. So we'd have to install
 the file in both locations, but nagios has a different configuration file
 format. Also, this would mean that both the netsaint and netsaint-plugins
 port
 would be installing the same file, which is a big no-no. Maybe we should
 install this as part of the documentation.
 
 

From: Scott Lambert <lambert@lambertfam.org>
To: freebsd-gnats-submit@FreeBSD.org, Blaz Zupan <blaz@inlimbo.org>
Cc:  
Subject: Re: ports/39673: netsaint-plugins fails to install command.cfg
Date: Sun, 23 Jun 2002 12:15:40 -0400

 On Sun, Jun 23, 2002 at 02:44:06PM +0200, Blaz Zupan wrote:
 > There is an annoying problem with this, namely netsaint-plugins can be used
 > either with netsaint or with nagios (the new version of netsaint), which
 > uses
 > ${PREFIX}/etc/nagios as the configuration directory. So we'd have to install
 > the file in both locations, but nagios has a different configuration file
 > format. Also, this would mean that both the netsaint and netsaint-plugins
 > port
 > would be installing the same file, which is a big no-no. Maybe we should
 > install this as part of the documentation.
 
 Netsaint installs etc/netsaint/commands.cfg.dist, whereas netsaint-plugins
 installs etc/netsaint/command.cfg.dist.  Where does netsaint-plugins install
 the plugins themselves when working with nagios?
 
 Could we test for the existence of etc/netsaint/ vs. etc/nagios/ at
 install time and decide where to install it that way?  I'll work on
 whether that is possible with the ports collection.  My ports foo is
 still very low but I *think* I remember seeing something that would work
 with this for the pkg-list anyway.
 
 -- 
 Scott Lambert                    KC5MLE                       Unix SysAdmin
 lambert@lambertfam.org      

From: Blaz Zupan <blaz@inlimbo.org>
To: Scott Lambert <lambert@lambertfam.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/39673: netsaint-plugins fails to install command.cfg
Date: Sun, 23 Jun 2002 18:18:19 +0200 (CEST)

 > Netsaint installs etc/netsaint/commands.cfg.dist, whereas netsaint-plugins
 > installs etc/netsaint/command.cfg.dist.  Where does netsaint-plugins install
 
 Oh, ok. I missed the little difference in names.
 
 > the plugins themselves when working with nagios?
 
 The plugins are always installed in /usr/local/libexec/netsaint, no matter
 whether used with nagios or netsaint.
 
 > Could we test for the existence of etc/netsaint/ vs. etc/nagios/ at
 > install time and decide where to install it that way?  I'll work on
 
 Sure, but what do we do at package time? We'd have to do some serious script
 magic to make this work.
 
 > whether that is possible with the ports collection.  My ports foo is
 > still very low but I *think* I remember seeing something that would work
 > with this for the pkg-list anyway.
 
 

From: Scott Lambert <lambert@lambertfam.org>
To: freebsd-gnats-submit@FreeBSD.org, Blaz Zupan <blaz@inlimbo.org>
Cc:  
Subject: Re: ports/39673: netsaint-plugins fails to install command.cfg
Date: Sun, 23 Jun 2002 13:05:25 -0400

 On Sun, Jun 23, 2002 at 06:18:19PM +0200, Blaz Zupan wrote:
 > > Netsaint installs etc/netsaint/commands.cfg.dist, whereas netsaint-plugins
 > > installs etc/netsaint/command.cfg.dist.  Where does netsaint-plugins install
 > 
 > Oh, ok. I missed the little difference in names.
 > 
 > > the plugins themselves when working with nagios?
 > 
 > The plugins are always installed in /usr/local/libexec/netsaint, no matter
 > whether used with nagios or netsaint.
 > 
 > > Could we test for the existence of etc/netsaint/ vs. etc/nagios/ at
 > > install time and decide where to install it that way?  I'll work on
 > 
 > Sure, but what do we do at package time? We'd have to do some serious script
 > magic to make this work.
 
 Ok, I don't know anything about what happens at package time.
 Maybe we could have a define that builds, netsaint-plugins or
 netsaint-plugins-nagios then have a ports/net/netsaint-plugins-nagios
 ,or even nagios-plugins, with only a Makefile that defines the
 variable and builds netsaint-plugins?  Kind of like xscreensaver and
 xscreensaver-gnome?
 
 I'll try to spend some time on this this week if you think it's
 worthwhile.
 
 I have to do other things today, unfortunately.
 
 -- 
 Scott Lambert                    KC5MLE                       Unix SysAdmin
 lambert@lambertfam.org      

From: Blaz Zupan <blaz@inlimbo.org>
To: Scott Lambert <lambert@lambertfam.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/39673: netsaint-plugins fails to install command.cfg
Date: Mon, 24 Jun 2002 13:08:09 +0200 (CEST)

 > Ok, I don't know anything about what happens at package time.
 > Maybe we could have a define that builds, netsaint-plugins or
 > netsaint-plugins-nagios then have a ports/net/netsaint-plugins-nagios
 > ,or even nagios-plugins, with only a Makefile that defines the
 > variable and builds netsaint-plugins?  Kind of like xscreensaver and
 > xscreensaver-gnome?
 >
 > I'll try to spend some time on this this week if you think it's
 > worthwhile.
 >
 > I have to do other things today, unfortunately.
 
 I don't think it's worth the trouble. There will be a nagios-plugins port soon
 and then we can fix it properly.
 
State-Changed-From-To: open->closed 
State-Changed-By: petef 
State-Changed-When: Sun May 11 11:07:11 CDT 2003 
State-Changed-Why:  
There is now a nagios-plugins port; this is no longer a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39673 
>Unformatted:
