aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nagios2
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2003-12-04 13:53:29 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2003-12-04 13:53:29 +0000
commitc831ea620d160c2e79f7e7da2c68ff992f864e1d (patch)
treedabb74cb7695ab0b4f540704ade5403d871cdd2e /net-mgmt/nagios2
parentd47cf988c7b59b27c2e460246a9c6b6ade2e5ffc (diff)
downloadports-c831ea620d160c2e79f7e7da2c68ff992f864e1d.tar.gz
ports-c831ea620d160c2e79f7e7da2c68ff992f864e1d.zip
- 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
Notes
Notes: svn path=/head/; revision=94991
Diffstat (limited to 'net-mgmt/nagios2')
-rw-r--r--net-mgmt/nagios2/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/net-mgmt/nagios2/Makefile b/net-mgmt/nagios2/Makefile
index 16d762142ebe..8f95cbd5cf39 100644
--- a/net-mgmt/nagios2/Makefile
+++ b/net-mgmt/nagios2/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