1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

- An rc.d script that actually works [1]

- Depend on net-mgmt/nagios not -devel

PR:             ports/129485 [1]
Submitted by:   olli hauer <ohauer@gmx.de> [1]
Approved by:    araujo (mentor, implicit)
This commit is contained in:
Philip M. Gollucci 2008-12-25 14:42:24 +00:00
parent d7df1ad896
commit a15ec654cf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224740
2 changed files with 7 additions and 7 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ndoutils
PORTVERSION= 1.4b7
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF
MASTER_SITE_SUBDIR= nagios
@ -14,7 +15,7 @@ MASTER_SITE_SUBDIR= nagios
MAINTAINER= pgollucci@FreeBSD.org
COMMENT= Keep Nagios perfdata in MySQL or Postgresql database
RUN_DEPENDS= ${LOCALBASE}/bin/nagios:${PORTSDIR}/net-mgmt/nagios-devel
RUN_DEPENDS= ${LOCALBASE}/bin/nagios:${PORTSDIR}/net-mgmt/nagios
GNU_CONFIGURE= yes

View File

@ -10,20 +10,19 @@
# Add the following lines to /etc/rc.conf to enable ndo2db:
# ndo2db_enable (bool): Set to "NO" by default.
# ndo2db_flags (str): Set to "" by default.
# ndo2db_configfile (str): Set to "%%PREFIX%%/etc/nagios/nagios.cfg" by default.
# ndo2db_configfile (str): Set to "%%PREFIX%%/etc/nagios/ndo2db.cfg" by default.
: ${ndo2db_enable="NO"}
: ${ndo2db_configfile="%%PREFIX%%/etc/nagios/ndo2db.cfg"}
. %%RC_SUBR%%
name="ndo2db"
rcvar=${name}_enable
command="%%PREFIX%%/bin/${name}"
command="%%PREFIX%%/bin/ndo2db-3x"
required_files="${ndo2db_configfile}"
command_args="-c ${ndo2db_configfile}"
load_rc_config $name
: ${ndo2db_enable=-NO}
: ${ndo2db_configfile=-%%PREFIX%%/etc/nagios/nagios.cfg}
run_rc_command "$1"