aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nagios-plugins/Makefile
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2004-07-26 18:15:21 +0000
committerAde Lovett <ade@FreeBSD.org>2004-07-26 18:15:21 +0000
commit4faf15b65ec18d699f4433982d62f380d97bcdaf (patch)
tree893f8584541906d96b800d21d72412aac1dc8d4c /net-mgmt/nagios-plugins/Makefile
parenta875e8c45b9c618da7e21254ba13adf6ed2b05d0 (diff)
downloadports-4faf15b65ec18d699f4433982d62f380d97bcdaf.tar.gz
ports-4faf15b65ec18d699f4433982d62f380d97bcdaf.zip
Notes
Diffstat (limited to 'net-mgmt/nagios-plugins/Makefile')
-rw-r--r--net-mgmt/nagios-plugins/Makefile89
1 files changed, 75 insertions, 14 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 6463a3f17f8e..4118d477e489 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -7,7 +7,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 1.3.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= nagiosplug
@@ -15,6 +15,16 @@ MASTER_SITE_SUBDIR= nagiosplug
MAINTAINER= blaz@si.FreeBSD.org
COMMENT= Plugins for nagios
+OPTIONS= QSTAT "Game server query support" off \
+ FPING "Support for non-flooding fast ping" off \
+ NETSNMP "SNMP support" off \
+ RADIUS "Radius support" off \
+ MYSQL "MySQL support" off \
+ PGSQL "PostgreSQL support" off \
+ LDAP "OpenLDAP support" off
+
+.include <bsd.port.pre.mk>
+
USE_SUBMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \
@@ -23,26 +33,77 @@ CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=/var/spool/nagios \
--with-df-command="/bin/df -Pkt noprocfs"
+
+.if defined(WITH_QSTAT)
+BUILD_DEPENDS+= qstat:${PORTSDIR}/games/qstat
+RUN_DEPENDS+= qstat:${PORTSDIR}/games/qstat
+CONFIGURE_ARGS+=--enable-qstat
+PLIST_SUB+= SUB_QSTAT=""
+.else
+PLIST_SUB+= SUB_QSTAT="@comment "
+.endif
+
+.if defined(WITH_FPING)
+BUILD_DEPENDS+= fping:${PORTSDIR}/net/fping
+RUN_DEPENDS+= fping:${PORTSDIR}/net/fping
+CONFIGURE_ARGS+=--enable-fping
+PLIST_SUB+= SUB_FPING=""
+.else
+PLIST_SUB+= SUB_FPING="@comment "
+.endif
+
+.if defined(WITH_NETSNMP)
+BUILD_DEPENDS+= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp \
+ ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
+RUN_DEPENDS+= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp \
+ ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
+CONFIGURE_ARGS+=--enable-snmp
+PLIST_SUB+= SUB_SNMP=""
+.else
+PLIST_SUB+= SUB_SNMP="@comment "
+.endif
+
+.if defined(WITH_RADIUS)
+LIB_DEPENDS+= radiusclient.0:${PORTSDIR}/net/radiusclient
+CONFIGURE_ARGS+=--enable-radius
+PLIST_SUB+= SUB_RADIUS=""
+.else
+PLIST_SUB+= SUB_RADIUS="@comment "
+.endif
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= YES
+CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
+PLIST_SUB+= SUB_MYSQL=""
+.else
+PLIST_SUB+= SUB_MYSQL="@comment "
+.endif
+
+.if defined(WITH_PGSQL)
+POSTGRESQL_PORT?=databases/postgresql7
+LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
+CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
+PLIST_SUB+= SUB_PGSQL=""
+.else
+PLIST_SUB+= SUB_PGSQL="@comment "
+.endif
+
+.if defined(WITH_LDAP)
+USE_OPENLDAP= YES
+CONFIGURE_ARGS+=--enable-ldap
+PLIST_SUB+= SUB_LDAP=""
+.else
+PLIST_SUB+= SUB_LDAP="@comment "
+.endif
+
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
-SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
- MKDIR="${MKDIR}"
USE_AUTOMAKE_VER= 14
USE_AUTOCONF_VER= 213
USE_GMAKE= yes
USE_PERL5= yes
-pre-fetch:
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
-
-.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
-.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
-.endif
-
pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} \
--acdir=${ACLOCAL_DIR})
-post-clean:
- @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>