- fix startup for rc.subr; [1]

- update to 3.12;           [1]
- remove etc/rc.d/nagiosstatd from pkg-plist as USE_RC_SUBR deals itself
  with those files;
- remove etc/rc.d/nagios-statd.sh.sample from pkg-plist (forgotten by
  the submitter).

PR:		103913  [1]
Submitted by:	Jim Shewmaker <jims at bluenotch.com> (maintainer)  [1]
This commit is contained in:
Boris Samorodov 2006-10-02 19:35:42 +00:00
parent d96a81c159
commit f5296d7d16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174332
5 changed files with 40 additions and 27 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= nagios-statd
PORTVERSION= 3.11
PORTVERSION= 3.12
CATEGORIES= sysutils python net-mgmt
MASTER_SITES= http://www.twoevils.org/files/netsaint_statd/
@ -14,6 +14,7 @@ MAINTAINER= jims@bluenotch.com
COMMENT= Daemon/client to check remote host information for Nagios
USE_PYTHON= yes
USE_RC_SUBR= nagiosstatd.sh
MAN1= nagios-stat.1
MAN8= nagios-statd.8
@ -25,7 +26,6 @@ do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/nagios-stat ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/sbin/nagios-statd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/nagios-statd.sh.sample ${PREFIX}/etc/rc.d
${INSTALL_MAN} ${WRKSRC}/share/man1/nagios-stat.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/share/man8/nagios-statd.8 ${PREFIX}/man/man8

View file

@ -1,3 +1,3 @@
MD5 (nagios-statd-3.11.tar.gz) = aed145d2df7a261530d91ce23ae52cca
SHA256 (nagios-statd-3.11.tar.gz) = 45813d546b143dfa19ce2cf8bfe660f701af1311260b5f485b7a0d58f581c0a1
SIZE (nagios-statd-3.11.tar.gz) = 10767
MD5 (nagios-statd-3.12.tar.gz) = 8048cd2975d277079de34f65306cca04
SHA256 (nagios-statd-3.12.tar.gz) = 91560f7a7a8e0ee95fae622256951908d51d5a70744b5777973ce3dea7445166
SIZE (nagios-statd-3.12.tar.gz) = 11054

View file

@ -1,21 +0,0 @@
#!/bin/sh
# $FreeBSD$
case "${1}" in
start)
nagios-statd
echo -n " nagios-statd"
;;
stop)
kill -3 `ps -x | grep nagios-statd | grep python | awk '{print $1}'`
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
exit 0

View file

@ -0,0 +1,35 @@
#!/bin/sh
# PROVIDE: nagiosstatd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
#
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable nagiosstatd:
# nagiosstatd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable nagiosstatd
#
nagiosstatd_enable=${nagiosstatd_enable-"NO"}
nagiosstatd_flags=${nagiosstatd_flags-""}
nagiosstatd_pidfile=${nagiosstatd_pidfile-"/var/run/nagiosstatd.pid"}
. %%RC_SUBR%%
name="nagiosstatd"
#rcvar=`set_rcvar`
rcvar=${name}_enable
pidfile="${nagiosstatd_file}"
command=%%PREFIX%%/sbin/nagios-statd
load_rc_config $name
start_precmd="export PATH=\"$PATH:/usr/local/bin\""
run_rc_command "$1"

View file

@ -1,4 +1,3 @@
@comment $FreeBSD$
bin/nagios-stat
sbin/nagios-statd
etc/rc.d/nagios-statd.sh.sample