summaryrefslogtreecommitdiff
path: root/net-mgmt/ndoutils
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-12-25 14:42:24 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-12-25 14:42:24 +0000
commita15ec654cf7a179ccedc496354868e1f37b10da8 (patch)
tree1d8dda43e1fe4c52d2643e4a36c96268877c1ae2 /net-mgmt/ndoutils
parentMark BROKEN on HEAD after the import of strndup(3). (diff)
- 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)
Notes
Notes: svn path=/head/; revision=224740
Diffstat (limited to 'net-mgmt/ndoutils')
-rw-r--r--net-mgmt/ndoutils/Makefile3
-rw-r--r--net-mgmt/ndoutils/files/ndo2db.in11
2 files changed, 7 insertions, 7 deletions
diff --git a/net-mgmt/ndoutils/Makefile b/net-mgmt/ndoutils/Makefile
index f0b12db3e303..d3af6244c22b 100644
--- a/net-mgmt/ndoutils/Makefile
+++ b/net-mgmt/ndoutils/Makefile
@@ -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
diff --git a/net-mgmt/ndoutils/files/ndo2db.in b/net-mgmt/ndoutils/files/ndo2db.in
index 3f0634bdee59..745792d323d7 100644
--- a/net-mgmt/ndoutils/files/ndo2db.in
+++ b/net-mgmt/ndoutils/files/ndo2db.in
@@ -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"