Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 15:03:18 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304354 - head/net-mgmt/xymon-server
Message-ID:  <201209161503.q8GF3IA9012979@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Sun Sep 16 15:03:18 2012
New Revision: 304354
URL: http://svn.freebsd.org/changeset/ports/304354

Log:
  - use OPTIONS_DEFINE

Modified:
  head/net-mgmt/xymon-server/Makefile

Modified: head/net-mgmt/xymon-server/Makefile
==============================================================================
--- head/net-mgmt/xymon-server/Makefile	Sun Sep 16 14:50:16 2012	(r304353)
+++ head/net-mgmt/xymon-server/Makefile	Sun Sep 16 15:03:18 2012	(r304354)
@@ -66,17 +66,17 @@ MAN8=	enadis.cgi.8 xymon-mailack.8 xymon
 	xymond_hostdata.8 xymond_rrd.8 xymond_sample.8 xymonfetch.8 \
 	xymonlaunch.8 xymonproxy.8 msgcache.8 trimhistory.8
 
-OPTIONS=	LDAP	"Enable LDAP support" off \
-		SNMP	"Enable Net-SNMP support" off
+OPTIONS_DEFINE=LDAP NETSNMP
+NETSNMP_DESC=Enable Net-SNMP support
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_LDAP)
+.if ${PORT_OPTIONS:MLDAP}
 MAKE_ENV+=	WITH_LDAP=1
 USE_OPENLDAP=	yes
 .endif
 
-.if defined(WITH_NETSNMP)
+.if ${PORT_OPTIONS:MNETSNMP}
 MAKE_ENV+=	WITH_NETSNMP=1
 LIB_DEPENDS+=	netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
 .endif
@@ -109,4 +109,4 @@ post-install:
 		${WWWDIR}/server/etc/${i}
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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