ports/178446: [patch] net-mgmt/p5-Cflow: moving to optionsng

Ilya A. Arkhipov rum1cro at yandex.ru
Thu May 9 09:20:03 UTC 2013


>Number:         178446
>Category:       ports
>Synopsis:       [patch] net-mgmt/p5-Cflow: moving to optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 09 09:20:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ilya A. Arkhipov
>Release:        10.0-CURRENT
>Organization:
Rambler
>Environment:
FreeBSD mhome 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Thu Mar 29 18:04:50 UTC 2012     root at mhome:/usr/obj/usr/src/sys/MICROKERNEL  amd64

>Description:
patch for net-mgmt/p5-Cflow for moving to optionsng
>How-To-Repeat:
Install it
>Fix:
diff -Nru p5-Cflow_old/Makefile p5-Cflow/Makefile
--- p5-Cflow_old/Makefile	2013-05-09 13:08:05.547706154 +0400
+++ p5-Cflow/Makefile	2013-05-09 13:09:27.183705800 +0400
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	p5-Cflow
-# Date created:			Di  13 Mär 2001 19:37:25 CET
-# Whom:				Andreas Klemm <andreas at klemm.gtn.com>
-#
-# $FreeBSD: ports/net-mgmt/p5-Cflow/Makefile,v 1.18 2012/11/17 06:00:35 svnexp Exp $
-#
+# Created by: Andreas Klemm <andreas at klemm.gtn.com>
+# $FreeBSD$
 
 PORTNAME=	Cflow
 PORTVERSION=	1.053
@@ -16,11 +12,12 @@
 MAINTAINER=	fw at moov.de
 COMMENT=	Analyze raw flow files written by cflowd (Cisco NetFlow data)
 
-OPTIONS=	FLOW_TOOLS	"Enable flow-tools support"	off
+OPTIONS_DEFINE=	FLOW_TOOLS
+FLOW_TOOLS_DESC=	Enable flow-tools support
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_FLOW_TOOLS)
+.if ${PORT_OPTIONS:MFLOW_TOOLS}
 BUILD_DEPENDS+=	${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
 RUN_DEPENDS+=	${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
 


Patch attached with submission follows:

diff -Nru p5-Cflow_old/Makefile p5-Cflow/Makefile
--- p5-Cflow_old/Makefile	2013-05-09 13:08:05.547706154 +0400
+++ p5-Cflow/Makefile	2013-05-09 13:09:27.183705800 +0400
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	p5-Cflow
-# Date created:			Di  13 Mär 2001 19:37:25 CET
-# Whom:				Andreas Klemm <andreas at klemm.gtn.com>
-#
-# $FreeBSD: ports/net-mgmt/p5-Cflow/Makefile,v 1.18 2012/11/17 06:00:35 svnexp Exp $
-#
+# Created by: Andreas Klemm <andreas at klemm.gtn.com>
+# $FreeBSD$
 
 PORTNAME=	Cflow
 PORTVERSION=	1.053
@@ -16,11 +12,12 @@
 MAINTAINER=	fw at moov.de
 COMMENT=	Analyze raw flow files written by cflowd (Cisco NetFlow data)
 
-OPTIONS=	FLOW_TOOLS	"Enable flow-tools support"	off
+OPTIONS_DEFINE=	FLOW_TOOLS
+FLOW_TOOLS_DESC=	Enable flow-tools support
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_FLOW_TOOLS)
+.if ${PORT_OPTIONS:MFLOW_TOOLS}
 BUILD_DEPENDS+=	${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
 RUN_DEPENDS+=	${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
 


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list