aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2012-10-14 02:24:45 +0800
committerzi <zi@FreeBSD.org>2012-10-14 02:24:45 +0800
commitb74a40905e12178f36e33ce89c872bb3dda6896d (patch)
tree5ad81401cc37beab6cc367b87b9aec68733906af /net-mgmt
parentdfa9077002e570ed01290e7b7eca72593d11f089 (diff)
downloadfreebsd-ports-gnome-b74a40905e12178f36e33ce89c872bb3dda6896d.tar.gz
freebsd-ports-gnome-b74a40905e12178f36e33ce89c872bb3dda6896d.tar.zst
freebsd-ports-gnome-b74a40905e12178f36e33ce89c872bb3dda6896d.zip
- Convert to OptionsNG
Feature safe: yes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/snmp4nagios/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/net-mgmt/snmp4nagios/Makefile b/net-mgmt/snmp4nagios/Makefile
index 7d923fa445c2..d29753e7a252 100644
--- a/net-mgmt/snmp4nagios/Makefile
+++ b/net-mgmt/snmp4nagios/Makefile
@@ -22,7 +22,10 @@ GNU_CONFIGURE= yes
NAGIOSWWWDIR?= www/nagios
NAGIOSDIR?= /var/spool/nagios
-OPTIONS= RRDTOOL "Build with rrdtool support" OFF
+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 \
@@ -39,7 +42,7 @@ CFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.pre.mk>
-.if defined(WITH_RRDTOOL)
+.if ${PORT_OPTIONS:MRRDTOOL}
LIB_DEPENDS+= rrd:${PORTSDIR}/databases/rrdtool
CONFIGURE_ARGS+=--with-rrd
PLIST_SUB+= RRD=""