diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2008-12-25 22:42:24 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2008-12-25 22:42:24 +0800 |
commit | 4a4438ad3df46a81d9db143f040abf5798191419 (patch) | |
tree | 2a34fea8b969c2869372a2c7fa8f1493002a8901 /net-mgmt/ndoutils | |
parent | 16437a64e16b9eab87783eb954c0713a680cf728 (diff) | |
download | freebsd-ports-gnome-4a4438ad3df46a81d9db143f040abf5798191419.tar.gz freebsd-ports-gnome-4a4438ad3df46a81d9db143f040abf5798191419.tar.zst freebsd-ports-gnome-4a4438ad3df46a81d9db143f040abf5798191419.zip |
- 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)
Diffstat (limited to 'net-mgmt/ndoutils')
-rw-r--r-- | net-mgmt/ndoutils/Makefile | 3 | ||||
-rw-r--r-- | net-mgmt/ndoutils/files/ndo2db.in | 11 |
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" |