From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 9 04:30:05 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 7087916A420 for ; Thu, 9 Mar 2006 04:30:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC11543D4C for ; Thu, 9 Mar 2006 04:30:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k294U4Pv093057 for ; Thu, 9 Mar 2006 04:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k294U4M1093056; Thu, 9 Mar 2006 04:30:04 GMT (envelope-from gnats) Resent-Date: Thu, 9 Mar 2006 04:30:04 GMT Resent-Message-Id: <200603090430.k294U4M1093056@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, Jo Rhett Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8BA116A420 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/94259: ncsa port needs an rc.d script (included) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 04:30:05 -0000 >Number: 94259 >Category: ports >Synopsis: ncsa port needs an rc.d script (included) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 09 04:30:04 GMT 2006 >Closed-Date: >Last-Modified: >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: >Unformatted: