From c831ea620d160c2e79f7e7da2c68ff992f864e1d Mon Sep 17 00:00:00 2001 From: Sergei Kolobov Date: Thu, 4 Dec 2003 13:53:29 +0000 Subject: - Add WITH_NAGMIN knob - Utilize USE_MYSQL instead of explicit dependency - Bump PORTREVISION PR: 58950 Submitted by: Jim Shewmaker Approved by: maintainer --- net-mgmt/nagios2/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'net-mgmt/nagios2') 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 -- cgit v1.2.3