summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios12
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2003-12-04 13:53:29 +0000
committersergei <sergei@FreeBSD.org>2003-12-04 13:53:29 +0000
commitc5714591e97baa5b4b301357575ac9e587fdb593 (patch)
tree4f340e5e78a0c2ff0b2694151d4ccd06fa03c454 /net-mgmt/nagios12
parent0ed693196c702d20db12260f9851920c149ff952 (diff)
downloadFreeBSD-ports-c5714591e97baa5b4b301357575ac9e587fdb593.zip
FreeBSD-ports-c5714591e97baa5b4b301357575ac9e587fdb593.tar.gz
- Add WITH_NAGMIN knob
- Utilize USE_MYSQL instead of explicit dependency - Bump PORTREVISION PR: 58950 Submitted by: Jim Shewmaker <jim@bluenotch.com> Approved by: maintainer
Diffstat (limited to 'net-mgmt/nagios12')
-rw-r--r--net-mgmt/nagios12/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/net-mgmt/nagios12/Makefile b/net-mgmt/nagios12/Makefile
index 16d7621..8f95cbd 100644
--- a/net-mgmt/nagios12/Makefile
+++ b/net-mgmt/nagios12/Makefile
@@ -7,7 +7,7 @@
PORTNAME= nagios
PORTVERSION= 1.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=nagios
@@ -52,13 +52,21 @@ INCGD= -I${LOCALBASE}/include
LIBGD= -lgd
.endif
-.if defined(WITH_MYSQL)
-LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
+.if defined(WITH_MYSQL)||defined(WITH_NAGMIN)
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --with-mysql-lib=${LOCALBASE}/lib/mysql \
--with-mysql-inc=${LOCALBASE}/include/mysql \
--with-mysql-xdata
.endif
+.if defined(WITH_NAGMIN)
+RUN_DEPENDS+= nagmin:${PORTSDIR}/sysutils/nagmin
+CONFIGURE_ARGS+= --with-myqsl-comments \
+ --with-mysql-downtime \
+ --with-mysql-retention \
+ --with-mysql-status
+.endif
+
.if defined(NAGIOS_FILE_PERFDATA)
CONFIGURE_ARGS+=--with-file-perfdata
.endif
OpenPOWER on IntegriCloud