freebsd-ports/net-mgmt/snmp4nagios/Makefile
Niclas Zeising 3b22ad40b1 Clean up databases/rrdtool
Change library dependensies to use USES= where applicable.
Build ports documentation and examples, depending on respective option.
Add two new options, NLS and GRAPH, the GRAPH option enables the rrdtool graph
command, which pulls in cario and a lot of other dependencies.  [1]
Add missing dependencies.
Becase of shlib version bump, bump portrevision on depending ports.

PR:		192024 [1] (based on)
Submitted by:	asomers
Approved by:	portmgr (blanket, portrevision bumps)
2014-07-23 20:11:10 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Ryan Steinmetz
# $FreeBSD$
PORTNAME= SNMP4Nagios
PORTVERSION= 0.4
PORTREVISION= 3
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/${PORTVERSION}
MAINTAINER= zi@FreeBSD.org
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_DEFINE= RRDTOOL
RRDTOOL_DESC= Build with rrdtool support
.include <bsd.port.options.mk>
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}
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MRRDTOOL}
LIB_DEPENDS+= librrd.so:${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>