From 96b8fa3c444f5a503e3a986f2624c810922d6dce Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 6 Feb 2007 21:05:39 +0000 Subject: - Update to 2.7.1 PR: 108794 Submitted by: Martin Matuska (maintainer) --- net-mgmt/nsca/Makefile | 4 ++-- net-mgmt/nsca/distinfo | 6 +++--- net-mgmt/nsca/files/nsca.in | 33 +++++++++++++++++++++++++++++++++ net-mgmt/nsca/files/nsca.sh.in | 28 ---------------------------- 4 files changed, 38 insertions(+), 33 deletions(-) create mode 100644 net-mgmt/nsca/files/nsca.in delete mode 100644 net-mgmt/nsca/files/nsca.sh.in (limited to 'net-mgmt') diff --git a/net-mgmt/nsca/Makefile b/net-mgmt/nsca/Makefile index c104441d19b6..1302174f51c5 100644 --- a/net-mgmt/nsca/Makefile +++ b/net-mgmt/nsca/Makefile @@ -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 @@ USE_PERL5= yes 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 --git a/net-mgmt/nsca/distinfo b/net-mgmt/nsca/distinfo index adb13c8b5a44..86e25455cc72 100644 --- a/net-mgmt/nsca/distinfo +++ b/net-mgmt/nsca/distinfo @@ -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 --git a/net-mgmt/nsca/files/nsca.in b/net-mgmt/nsca/files/nsca.in new file mode 100644 index 000000000000..c14ce44143db --- /dev/null +++ b/net-mgmt/nsca/files/nsca.in @@ -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 --git a/net-mgmt/nsca/files/nsca.sh.in b/net-mgmt/nsca/files/nsca.sh.in deleted file mode 100644 index bd78ef1f9b82..000000000000 --- a/net-mgmt/nsca/files/nsca.sh.in +++ /dev/null @@ -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" -- cgit