diff -Nbur net-mgmt/nsca.orig/Makefile net-mgmt/nsca/Makefile --- net-mgmt/nsca.orig/Makefile Sat Dec 16 10:28:14 2006 +++ net-mgmt/nsca/Makefile Mon Feb 5 11:37:12 2007 @@ -6,7 +6,7 @@ # PORTNAME= nsca -PORTVERSION= 2.7 +PORTVERSION= 2.7.1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= nagios @@ -24,7 +24,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/spool/nagios .if !defined(WITHOUT_SERVER) -USE_RC_SUBR= nsca.sh +USE_RC_SUBR= nsca PLIST_SUB+= SERVER="" .else PLIST_SUB+= SERVER="@comment " diff -Nbur net-mgmt/nsca.orig/distinfo net-mgmt/nsca/distinfo --- net-mgmt/nsca.orig/distinfo Sat Dec 16 10:28:14 2006 +++ net-mgmt/nsca/distinfo Mon Feb 5 11:37:12 2007 @@ -1,3 +1,3 @@ -MD5 (nsca-2.7.tar.gz) = 6683862394e91039033283071c8bf1f4 -SHA256 (nsca-2.7.tar.gz) = b1854747cc5a0068045f5feae90befb9cc7b764dd162a4d511b55179e1a367be -SIZE (nsca-2.7.tar.gz) = 101838 +MD5 (nsca-2.7.1.tar.gz) = 823400ebca86df44c6f48b66e1c181d2 +SHA256 (nsca-2.7.1.tar.gz) = 2dfdeed4ddf50da6855c01bec922d85ba190e76039f8f113320b73150732ab27 +SIZE (nsca-2.7.1.tar.gz) = 104861 diff -Nbur net-mgmt/nsca.orig/files/nsca.in net-mgmt/nsca/files/nsca.in --- net-mgmt/nsca.orig/files/nsca.in Thu Jan 1 01:00:00 1970 +++ net-mgmt/nsca/files/nsca.in Mon Feb 5 11:37:12 2007 @@ -0,0 +1,33 @@ +#!/bin/sh +# +# PROVIDE: nsca +# REQUIRE: nagios +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# 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%%/sbin/nsca" +pidfile="/var/run/nsca.pid" +extra_commands=reload + +nsca_enable=${nsca_enable:-"NO"} +nsca_flags=${nsca_flags:-"--single"} +nsca_configfile=${nsca_configfile:-"%%PREFIX%%/etc/nagios/nsca.cfg"} + +load_rc_config "${name}" + +required_files="${nsca_configfile}" +command_args="-c ${nsca_configfile}" + +run_rc_command "$1" diff -Nbur net-mgmt/nsca.orig/files/nsca.sh.in net-mgmt/nsca/files/nsca.sh.in --- net-mgmt/nsca.orig/files/nsca.sh.in Mon Nov 6 01:21:58 2006 +++ net-mgmt/nsca/files/nsca.sh.in Thu Jan 1 01:00:00 1970 @@ -1,28 +0,0 @@ -#!/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%%/sbin/nsca" -pidfile="/var/run/nsca.pid" -extra_commands=reload - -nsca_enable=${nsca_enable:-"NO"} -nsca_flags=${nsca_flags:-"--single"} -nsca_configfile=${nsca_configfile:-"%%PREFIX%%/etc/nagios/nsca.cfg"} - -load_rc_config "${name}" - -required_files="${nsca_configfile}" -command_args="-c ${nsca_configfile}" - -run_rc_command "$1"