From root@dgeo.sysadm.ec-m.fr  Mon Sep  3 15:47:11 2012
Return-Path: <root@dgeo.sysadm.ec-m.fr>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B6363106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Sep 2012 15:47:11 +0000 (UTC)
	(envelope-from root@dgeo.sysadm.ec-m.fr)
Received: from meli.ec-m.fr (meli191.ec-m.fr [147.94.19.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 70CC78FC1A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Sep 2012 15:47:11 +0000 (UTC)
Received: from amavis3.serv.int (amavis3.serv.int [10.3.0.47])
	by meli.ec-m.fr (GrosseBox 1743 XXL) with ESMTP id E6CD2278880;
	Mon,  3 Sep 2012 17:47:10 +0200 (CEST)
Received: from meli.ec-m.fr ([10.3.0.12])
	by amavis3.serv.int (amavis3.serv.int [10.3.0.47]) (amavisd-new, port 10024)
	with LMTP id UafjlPQJ1Rq5; Mon,  3 Sep 2012 17:46:57 +0200 (CEST)
Received: from dgeo.sysadm.ec-m.fr (dgeo.sysadm.ec-m.fr [147.94.19.169])
	by meli.ec-m.fr (GrosseBox 1743 XXL) with ESMTP id 9E46427887D;
	Mon,  3 Sep 2012 17:46:57 +0200 (CEST)
Received: by dgeo.sysadm.ec-m.fr (Postfix, from userid 0)
	id 1A2121CD69; Mon,  3 Sep 2012 17:46:57 +0200 (CEST)
Message-Id: <20120903154657.1A2121CD69@dgeo.sysadm.ec-m.fr>
Date: Mon,  3 Sep 2012 17:46:57 +0200 (CEST)
From: Geoffroy Desvernay <dgeo@centrale-marseille.fr>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [MAINTAINER] net-mgmt/netdisco: OPTIONS ng
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         171284
>Category:       ports
>Synopsis:       [MAINTAINER] net-mgmt/netdisco: OPTIONS ng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bdrewery
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 03 15:50:12 UTC 2012
>Closed-Date:    Tue Sep 04 23:21:40 UTC 2012
>Last-Modified:  Tue Sep 04 23:21:40 UTC 2012
>Originator:     Geoffroy Desvernay
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
Ecole Centrale de Marseille
>Environment:
System: FreeBSD dgeo.sysadm.ec-m.fr 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jun 20 12:43:59 CEST 2012
>Description:
Use nes OPTIONS framework

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- netdisco-1.1.patch begins here ---
diff -ruN --exclude=CVS ../netdisco.orig/Makefile ./Makefile
--- ../netdisco.orig/Makefile	2012-08-18 16:29:08.000000000 +0200
+++ ./Makefile	2012-09-03 14:41:13.000000000 +0200
@@ -13,9 +13,11 @@
 MAINTAINER=	dgeo@centrale-marseille.fr
 COMMENT=	Web-based network management tool for moderate to large networks
 
-OPTIONS=	GRAPHVIZ "Install GraphViz for network map support"	on \
-		OUIDL "Download oui.txt file"   off \
-		MIBS "depend on net-mgmt/netdisco-mibs" on
+OPTIONS_DEFINE=	GRAPHVIZ OUIDL MIBS
+MIBS_DESC=	depend on net-mgmt/netdisco-mibs
+OUIDL_DESC=	Download oui.txt file
+GRAPHVIZ_DESC=	Install GraphViz for network map support
+OPTIONS_DEFAULT=	GRAPHVIZ MIBS
 
 RUN_DEPENDS+=	${APACHE_PKGNAMEPREFIX}mod_perl2>=0:${PORTSDIR}/www/mod_perl2 \
 		p5-Apache-DBI>=0:${PORTSDIR}/www/p5-Apache-DBI	\
@@ -62,7 +64,7 @@
 .include <bsd.port.pre.mk>
 
 MIBSDIR=	${PREFIX}/share/netdisco-mibs
-.if defined(WITH_MIBS)
+.if ${PORT_OPTIONS:MMIBS}
 RUN_DEPENDS+=	${MIBSDIR}/mib_index.txt:${PORTSDIR}/net-mgmt/netdisco-mibs
 BUILD_DEPENDS+=	${MIBSDIR}/mib_index.txt:${PORTSDIR}/net-mgmt/netdisco-mibs
 . include 	"${.CURDIR}/../netdisco-mibs/bsd.port.netdisco.mk"
@@ -83,12 +85,12 @@
 RUN_DEPENDS+=	p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
 .endif
 
-.if defined(WITH_GRAPHVIZ)
+.if ${PORT_OPTIONS:MGRAPHVIZ}
 RUN_DEPENDS+=	p5-Graph>=0:${PORTSDIR}/math/p5-Graph	\
 		p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz
 .endif
 
-.if defined(WITH_OUIDL)
+.if ${PORT_OPTIONS:MOUIDL}
 PLIST_SUB+=	OUIDL=""
 .else
 PLIST_SUB+=	OUIDL="@comment "
@@ -161,7 +163,7 @@
 		fi)
 .	endif
 
-.	if defined(WITH_OUIDL)
+.	if ${PORT_OPTIONS:MOUIDL}
 		${FETCH_CMD} -q -o ${DATADIR}/oui.txt http://standards.ieee.org/develop/regauth/oui/oui.txt
 .	endif
 
--- netdisco-1.1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bdrewery 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Tue Sep 4 04:47:34 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171284 
State-Changed-From-To: open->closed 
State-Changed-By: bdrewery 
State-Changed-When: Tue Sep 4 23:21:38 UTC 2012 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171284 
>Unformatted:
