svn commit: r304354 - head/net-mgmt/xymon-server

Dirk Meyer dinoex at FreeBSD.org
Sun Sep 16 15:03:18 UTC 2012


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>



More information about the svn-ports-all mailing list