Update x11-drivers/xf86-input-wacom to version 0.34.0_1
[dports.git] / net-mgmt / snmp4nagios / Makefile
1 # Created by: Ryan Steinmetz
2 # $FreeBSD$
3
4 PORTNAME=       SNMP4Nagios
5 PORTVERSION=    0.4
6 PORTREVISION=   4
7 CATEGORIES=     net-mgmt
8 MASTER_SITES=   SF/${PORTNAME:tl}/${PORTNAME}/${PORTVERSION}
9
10 MAINTAINER=     zi@FreeBSD.org
11 COMMENT=        Vendor specific SNMP plugins for Nagios
12
13 BUILD_DEPENDS=  snmpcheck:net-mgmt/net-snmp
14 RUN_DEPENDS=    snmpcheck:net-mgmt/net-snmp
15
16 GNU_CONFIGURE=  yes
17
18 NAGIOSWWWDIR?=  www/nagios
19 NAGIOSDIR?=     /var/spool/nagios
20
21 OPTIONS_DEFINE= RRDTOOL
22 RRDTOOL_DESC=   Build with rrdtool support
23
24 .include <bsd.port.options.mk>
25
26 CONFIGURE_ARGS= --sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
27                 --bindir=${PREFIX}/libexec/nagios \
28                 --libexecdir=${PREFIX}/libexec/nagios \
29                 --datadir=${PREFIX}/share \
30                 --sysconfdir=${PREFIX}/etc/nagios \
31                 --localstatedir=${NAGIOSDIR} \
32                 --with-rrddir=${NAGIOSDIR}/snmp4nagios/rrd \
33                 --with-pngdir=${NAGIOSDIR}/snmp4nagios/png \
34                 --prefix=${PREFIX}
35
36 CPPFLAGS+=      -I${LOCALBASE}/include
37 LIBS+=          -L${LOCALBASE}/lib
38
39 .include <bsd.port.pre.mk>
40
41 .if ${PORT_OPTIONS:MRRDTOOL}
42 LIB_DEPENDS+=   librrd.so:databases/rrdtool
43 CONFIGURE_ARGS+=--with-rrd
44 PLIST_SUB+=     RRD=""
45 .else
46 CONFIGURE_ARGS+=--with-rrd=no
47 PLIST_SUB+=     RRD="@comment "
48 .endif
49
50 .include <bsd.port.post.mk>