From nobody@FreeBSD.org  Thu Mar  9 04:29:23 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A8BA116A420
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Mar 2006 04:29:23 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7863243D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Mar 2006 04:29:23 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k294TN8p035786
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Mar 2006 04:29:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k294TNUR035785;
	Thu, 9 Mar 2006 04:29:23 GMT
	(envelope-from nobody)
Message-Id: <200603090429.k294TNUR035785@www.freebsd.org>
Date: Thu, 9 Mar 2006 04:29:23 GMT
From: Jo Rhett <jrhett@svcolo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ncsa port needs an rc.d script (included)
X-Send-Pr-Version: www-2.3

>Number:         94259
>Category:       ports
>Synopsis:       nsca port needs an rc.d script (included)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lawrance
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 09 04:30:04 GMT 2006
>Closed-Date:    Thu Sep 14 12:28:56 GMT 2006
>Last-Modified:  Thu Sep 14 12:30:15 GMT 2006
>Originator:     Jo Rhett
>Release:        6.0-REL
>Organization:
SVcolo
>Environment:
FreeBSD arran 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Fri Nov 11 13:29:33 PST 2005     root@barrel.svcolo.com:/usr/obj/usr/src/sys/MEERMINIMAL  i386
>Description:
This patch adds an rc.d script to the nsca port.  This isn't required for inetd use, but is required for the standard use.
>How-To-Repeat:

>Fix:
*** Makefile.orig       Wed Mar  8 20:22:16 2006
--- Makefile    Wed Mar  8 20:23:05 2006
***************
*** 24,29 ****
--- 24,31 ----
  NAGIOS_DIR=   ${LOCALBASE}/libexec/nagios
  CONF_DIR=     ${LOCALBASE}/etc/nagios
  
+ USE_RC_SUBR=nsca.sh
+ 
  DOCS=         Changelog LEGAL README SECURITY
  
  # NOTE: this port installs into ${LOCALBASE} instead of ${PREFIX}
*** files/nsca.sh.in_orig       Wed Mar  8 20:25:25 2006
--- files/nsca.sh.in    Wed Mar  8 20:22:07 2006
***************
*** 0 ****
--- 1,31 ----
+ #!/bin/sh
+ #
+ 
+ #
+ # Add the following lines to /etc/rc.conf to enable nsca:
+ # nsca_enable (bool):    Set to "NO" by default.
+ #                          Set it to "YES" to enable nsca.
+ # nsca_flags (str):      Set to "--single" by default.
+ # nsca_configfile (str): Set to "%%PREFIX%%/etc/nagios/nsca.cfg" by default.
+ #
+ 
+ . %%RC_SUBR%%
+ 
+ name="nsca"
+ rcvar=`set_rcvar`
+ 
+ command="%%PREFIX%%/libexec/nagios/nsca"
+ pidfile="/var/spool/nagios/nsca.lock"
+ nsca_user="nagios"
+ extra_commands="restart"
+ 
+ [ -z "${nsca_enable}" ]       && nsca_enable="NO"
+ [ -z "${nsca_flags}" ]        && nsca_flags="--single"
+ [ -z "${nsca_configfile}" ]   && nsca_configfile="%%PREFIX%%/etc/nagios/nsca.cfg"
+ 
+ load_rc_config "${name}"
+ 
+ required_files="${nsca_configfile}"
+ command_args="-c ${nsca_configfile} ${nsca_flags}"
+ 
+ run_rc_command "$1"


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Mar 9 04:33:49 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94259 

From: Jo Rhett <jrhett@svcolo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/94259: ncsa port needs an rc.d script (included)
Date: Wed, 8 Mar 2006 20:44:15 -0800

 Actually, drop the "pidfile" line.  It works better (uh, works at  
 all) without it.
 
 -- 
 Jo Rhett
 senior geek
 Silicon Valley Colocation
 
State-Changed-From-To: feedback->open 
State-Changed-By: vs 
State-Changed-When: Wed May 10 09:42:31 UTC 2006 
State-Changed-Why:  
Feedback timeout, up for grabs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94259 
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Sat May 20 01:54:57 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94259 
Responsible-Changed-From-To: itetcu->lawrance 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Sat May 20 10:38:50 UTC 2006 
Responsible-Changed-Why:  
lawrance already has a more compleate PR for this ports; from a quick 
look none of the rc.d scripts are complete, so mybe they should combined 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94259 
State-Changed-From-To: open->closed 
State-Changed-By: lawrance 
State-Changed-When: Thu Sep 14 12:28:44 UTC 2006 
State-Changed-Why:  
Script added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94259 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/94259: commit references a PR
Date: Thu, 14 Sep 2006 12:27:55 +0000 (UTC)

 lawrance    2006-09-14 12:27:47 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt/nsca        Makefile distinfo pkg-descr pkg-plist 
   Added files:
     net-mgmt/nsca/files  nsca.sh.in 
   Log:
   Update to 2.6 [1] and add an rc script [2].
   
   PR:             ports/96555 [1], ports/94259 [2].
   Submitted by:   Martin Matuska <martin@matuska.org> [1],
                   Jo Rhett <jrhett@svcolo.com> [2]
   
   Revision  Changes    Path
   1.7       +23 -8     ports/net-mgmt/nsca/Makefile
   1.4       +3 -3      ports/net-mgmt/nsca/distinfo
   1.1       +29 -0     ports/net-mgmt/nsca/files/nsca.sh.in (new)
   1.2       +1 -1      ports/net-mgmt/nsca/pkg-descr
   1.2       +5 -7      ports/net-mgmt/nsca/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
