2002-07-22 03:03:42 +02:00
|
|
|
# New ports collection makefile for: nagios-plugins
|
|
|
|
# Date created: 14 Jul 2002
|
|
|
|
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
|
2000-07-12 20:57:26 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-07-22 03:03:42 +02:00
|
|
|
PORTNAME= nagios-plugins
|
2007-03-02 16:33:27 +01:00
|
|
|
PORTVERSION= 1.4.6
|
2005-02-12 20:20:48 +01:00
|
|
|
PORTEPOCH= 1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2004-05-01 13:56:15 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2002-07-22 03:03:42 +02:00
|
|
|
MASTER_SITE_SUBDIR= nagiosplug
|
2000-07-12 20:57:26 +02:00
|
|
|
|
2005-10-16 12:33:35 +02:00
|
|
|
MAINTAINER= jarrod@netleader.com.au
|
2006-05-15 15:07:20 +02:00
|
|
|
COMMENT= Plugins for Nagios
|
2004-07-26 20:15:21 +02:00
|
|
|
|
2002-03-25 10:19:20 +01:00
|
|
|
USE_SUBMAKE= yes
|
2006-05-15 15:07:20 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ICONV= yes
|
2005-10-24 04:27:16 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-05-15 15:07:20 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_AUTOTOOLS= aclocal:19 automake:19 autoconf:259
|
2007-03-02 16:33:27 +01:00
|
|
|
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I gl/m4
|
2006-05-15 15:07:20 +02:00
|
|
|
|
|
|
|
OPTIONS= QSTAT "Game server query support (check_game)" OFF \
|
|
|
|
FPING "Support for non-flooding fast ping (check_fping)" OFF \
|
|
|
|
NETSNMP "SNMP support (check_snmp)" OFF \
|
|
|
|
RADIUS "Radius support (check_radius)" OFF \
|
|
|
|
MYSQL "MySQL support (check_mysql)" OFF \
|
|
|
|
PGSQL "PostgreSQL support (check_pgsql)" OFF \
|
|
|
|
LDAP "OpenLDAP support (check_ldap)" OFF \
|
|
|
|
IPV6 "IPv6 support" ON
|
|
|
|
|
2001-03-30 21:08:16 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-05-15 15:07:20 +02:00
|
|
|
|
|
|
|
NAGIOSDIR?= /var/spool/nagios
|
|
|
|
|
|
|
|
NAGIOSWWWDIR?= www/nagios
|
|
|
|
NAGIOSHTMURL?= /nagios
|
|
|
|
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-01 11:39:08 +01:00
|
|
|
CONFIGURE_ARGS= --with-cgiurl=${NAGIOSCGIURL} \
|
2006-05-15 15:07:20 +02:00
|
|
|
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
|
2002-07-22 03:03:42 +02:00
|
|
|
--libexecdir=${PREFIX}/libexec/nagios \
|
|
|
|
--datadir=${PREFIX}/share/nagios \
|
|
|
|
--sysconfdir=${PREFIX}/etc/nagios \
|
2006-05-15 15:07:20 +02:00
|
|
|
--localstatedir=${NAGIOSDIR} \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib" \
|
|
|
|
PERL=${PERL}
|
2004-07-26 20:15:21 +02:00
|
|
|
|
2007-03-02 16:33:27 +01:00
|
|
|
MAKE_ARGS= MKINSTALLDIRS=../mkinstalldirs
|
|
|
|
|
2004-07-26 20:15:21 +02:00
|
|
|
.if defined(WITH_QSTAT)
|
|
|
|
BUILD_DEPENDS+= qstat:${PORTSDIR}/games/qstat
|
|
|
|
RUN_DEPENDS+= qstat:${PORTSDIR}/games/qstat
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-qstat
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_QSTAT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_QSTAT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-10-15 14:57:28 +02:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ipv6
|
2005-10-15 13:45:50 +02:00
|
|
|
.else
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --without-ipv6
|
2005-10-15 13:45:50 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-26 20:15:21 +02:00
|
|
|
.if defined(WITH_FPING)
|
|
|
|
BUILD_DEPENDS+= fping:${PORTSDIR}/net/fping
|
|
|
|
RUN_DEPENDS+= fping:${PORTSDIR}/net/fping
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-fping
|
2004-07-26 20:15:21 +02:00
|
|
|
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
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-snmp
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_SNMP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_SNMP="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RADIUS)
|
2005-09-01 10:24:47 +02:00
|
|
|
LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-radius
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_RADIUS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_RADIUS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= YES
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_MYSQL=""
|
|
|
|
.else
|
2006-11-01 11:39:08 +01:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= YES
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_PGSQL=""
|
|
|
|
.else
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${NONEXISTENT}
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= YES
|
2006-05-15 15:07:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2004-07-26 20:15:21 +02:00
|
|
|
PLIST_SUB+= SUB_LDAP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_LDAP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-02-11 22:24:20 +01:00
|
|
|
post-patch:
|
2006-05-15 15:07:20 +02:00
|
|
|
.for file in check_by_ssh.c check_disk.c check_http.c check_mrtgtraf.c \
|
|
|
|
check_nagios.c check_pgsql.c check_snmp.c check_ssh.c check_swap.c \
|
|
|
|
check_time.c check_users.c utils.c
|
2005-02-11 22:24:20 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file}
|
|
|
|
.endfor
|
2000-07-12 20:57:26 +02:00
|
|
|
|
2004-07-26 20:15:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|