Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2012 18:24:46 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305845 - head/net-mgmt/snmp4nagios
Message-ID:  <201210131824.q9DIOkV5079473@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Sat Oct 13 18:24:45 2012
New Revision: 305845
URL: http://svn.freebsd.org/changeset/ports/305845

Log:
  - Convert to OptionsNG
  
  Feature safe:	yes

Modified:
  head/net-mgmt/snmp4nagios/Makefile

Modified: head/net-mgmt/snmp4nagios/Makefile
==============================================================================
--- head/net-mgmt/snmp4nagios/Makefile	Sat Oct 13 18:07:14 2012	(r305844)
+++ head/net-mgmt/snmp4nagios/Makefile	Sat Oct 13 18:24:45 2012	(r305845)
@@ -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=""



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210131824.q9DIOkV5079473>