freebsd-ports/net-mgmt/snmp4nagios/Makefile
Martin Wilke ff271f9996 This is a plugin package for Nagios. Quoting from the
snmp4nagios home page:

SNMP4Nagios is a package of Nagios plugins which use SNMP
to query hosts. While some of the plugins use standard MIBs,
most are designed for vendor specific agents.

Unlike other Nagios plugins, they are able to scan hosts for
objects which can be monitored. They also can keep performance
logs and draw plots of these using Tobias Oetiker's RRDTool.

Currently devices by Brocade, Cisco, Compaq/HP and Network Appliance
as well as computers running Microsoft Windows or Net-SNMP
and uninterruptable power supplies are supported.

WWW: http://snmp4nagios.sourceforge.net/

PR:		ports/124954
Submitted by:	Ryan Steinmetz
2008-06-28 22:36:14 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: snmp4nagios
# Date created: 22 June 2008
# Whom: Ryan Steinmetz
#
# $FreeBSD$
#
PORTNAME= SNMP4Nagios
PORTVERSION= 0.4
CATEGORIES= net-mgmt
MASTER_SITES= SFE/snmp4nagios
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= rpsfa@rit.edu
COMMENT= Vendor specific SNMP plugins for Nagios
BUILD_DEPENDS= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp
RUN_DEPENDS= snmpcheck:${PORTSDIR}/net-mgmt/net-snmp
GNU_CONFIGURE= yes
NAGIOSWWWDIR?= www/nagios
NAGIOSDIR?= /var/spool/nagios
OPTIONS= RRDTOOL "Build with rrdtool support" OFF
CONFIGURE_ARGS= --sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
--bindir=${PREFIX}/libexec/nagios \
--libexecdir=${PREFIX}/libexec/nagios \
--datadir=${PREFIX}/share \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=${NAGIOSDIR} \
--with-rrddir=${NAGIOSDIR}/snmp4nagios/rrd \
--with-pngdir=${NAGIOSDIR}/snmp4nagios/png \
--prefix=${PREFIX}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS}" \
LIBS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
.if defined(WITH_RRDTOOL)
LIB_DEPENDS+= rrd:${PORTSDIR}/databases/rrdtool
CONFIGURE_ARGS+=--with-rrd
PLIST_SUB+= RRD=""
.else
CONFIGURE_ARGS+=--with-rrd=no
PLIST_SUB+= RRD="@comment "
.endif
.include <bsd.port.post.mk>