View | Details | Raw Unified | Return to bug 164625
Collapse All | Expand All

(-)Makefile (+9 lines)
Lines 27-32 Link Here
27
		NANOSLEEP "Use nanosleep in event timing" off \
27
		NANOSLEEP "Use nanosleep in event timing" off \
28
		EVENT_BROKER "Enable event broker functionality" off \
28
		EVENT_BROKER "Enable event broker functionality" off \
29
		UNHANDLED_HACK "Display passive checks in unhandled queries" off \
29
		UNHANDLED_HACK "Display passive checks in unhandled queries" off \
30
		IDOUTILS "Enable IDOUtils [requires MySQL]" off \
30
31
31
GNU_CONFIGURE=	yes
32
GNU_CONFIGURE=	yes
32
33
Lines 108-113 Link Here
108
CONFIGURE_ARGS+=	--disable-event-broker
109
CONFIGURE_ARGS+=	--disable-event-broker
109
.endif
110
.endif
110
111
112
.if defined(WITH_IDOUTILS)
113
USE_MYSQL=		yes
114
LIB_DEPENDS+=		dbi.1:${PORTSDIR}/databases/libdbi-drivers
115
CONFIGURE_ARGS+=	--enable-idoutils
116
INSTALL_TARGET+=	install-idoutils
117
USE_RC_SUBR+=		ido2db
118
.endif
119
111
post-patch:
120
post-patch:
112
.if defined(WITH_UNHANDLED_HACK)
121
.if defined(WITH_UNHANDLED_HACK)
113
	@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
122
	@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
(-)files/ido2db.in (+33 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/net-mgmt/ido2db/files/ido2db.in,v 1.0 2012/01/28 17:35:01 gdelmatto Exp $
4
#
5
6
# PROVIDE: ido2db 
7
# REQUIRE: DAEMON
8
# BEFORE: LOGIN
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable ido2db:
13
# ido2db_enable (bool):    Set to "NO" by default.
14
#                          Set it to "YES" to enable ido2db.
15
#
16
17
. /etc/rc.subr
18
19
name="ido2db"
20
rcvar=`set_rcvar`
21
22
command="%%PREFIX%%/bin/ido2db"
23
command_args="-c"
24
25
[ -z "${ido2db_enable}" ]       && ido2db_enable="NO"
26
[ -z "${ido2db_configfile}" ]   && ido2db_configfile="%%PREFIX%%/etc/icinga/ido2db.cfg"
27
28
load_rc_config "${name}"
29
30
required_files="${ido2db_configfile}"
31
command_args="${command_args} ${ido2db_configfile}"
32
33
run_rc_command "$1"
(-)files/pkg-message.in (+4 lines)
Lines 4-9 Link Here
4
4
5
   icinga_enable="YES"
5
   icinga_enable="YES"
6
6
7
 If installed, enable ido2db in /etc/rc.conf with the following line:
8
9
   ido2db_enable="YES" 
10
7
 Configuration templates are available in %%PREFIX%%/etc/icinga as
11
 Configuration templates are available in %%PREFIX%%/etc/icinga as
8
 *.cfg-sample files.  Copy them to *.cfg files where required and
12
 *.cfg-sample files.  Copy them to *.cfg files where required and
9
 edit to suit your needs.  Documentation is available in HTML form
13
 edit to suit your needs.  Documentation is available in HTML form

Return to bug 164625