Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2013 18:47:39 GMT
From:      "Ilya A. Arkhipov" <rum1cro@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178427: [net-mgmt/flow-tools] patch for moving to optionsng
Message-ID:  <201305081847.r48Ildbl045493@oldred.FreeBSD.org>
Resent-Message-ID: <201305081850.r48Io0aO058970@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178427
>Category:       ports
>Synopsis:       [net-mgmt/flow-tools] patch for 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:   Wed May 08 18:50:00 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@mhome:/usr/obj/usr/src/sys/MICROKERNEL  amd64
>Description:
[net-mgmt/flow-tools] patch for moving to optionsng
>How-To-Repeat:
install it ^_^
>Fix:
--- flow-tools_old/Makefile     2013-05-08 22:40:08.662706573 +0400
+++ flow-tools/Makefile 2013-05-08 22:43:41.366707295 +0400
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   flow-tools
-# Date created:                                2000 Jul 25
-# Whom:                                        @BABOLO <.@babolo.ru>
-#
-# $FreeBSD: ports/net-mgmt/flow-tools/Makefile,v 1.34 2012/11/17 06:00:31 svnexp Exp $
-#
+# Created by: @BABOLO <.@babolo.ru>
+# $FreeBSD$

 PORTNAME=      flow-tools
 PORTVERSION=   0.68
@@ -16,9 +12,10 @@

 PORTSCOUT=     skipv:0.411

-OPTIONS=       MYSQL   "Enable MySQL support"          off \
-               OPENSSL "Enable OpenSSL support"        off \
-               PGSQL   "Enable PostgreSQL support"     off
+OPTIONS_DEFINE=        MYSQL OPENSSL PGSQL
+MYSQL_DESC=    Enable MySQL support
+OPENSSL_DESC=  Enable OpenSSL support
+PGSQL_DESC=    Enable PostgreSQL support

 CONFLICTS=     flow-tools-ng-[0-9]*

@@ -54,17 +51,17 @@

 .include <bsd.port.pre.mk>

-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 CONFIGURE_ARGS+=--with-pgsql="${PREFIX}"
 USE_PGSQL=     yes
 .endif

-.if defined(WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
 CONFIGURE_ARGS+=--with-mysql="${PREFIX}"
 USE_MYSQL=     yes
 .endif

-.if defined(WITH_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
 CONFIGURE_ARGS+=--with-openssl="${OPENSSLBASE}"
 .endif


Patch attached with submission follows:

diff -Nru flow-tools_old/Makefile flow-tools/Makefile
--- flow-tools_old/Makefile	2013-05-08 22:40:08.662706573 +0400
+++ flow-tools/Makefile	2013-05-08 22:43:41.366707295 +0400
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	flow-tools
-# Date created:				2000 Jul 25
-# Whom:					@BABOLO <.@babolo.ru>
-#
-# $FreeBSD: ports/net-mgmt/flow-tools/Makefile,v 1.34 2012/11/17 06:00:31 svnexp Exp $
-#
+# Created by: @BABOLO <.@babolo.ru>
+# $FreeBSD$
 
 PORTNAME=	flow-tools
 PORTVERSION=	0.68
@@ -16,9 +12,10 @@
 
 PORTSCOUT=	skipv:0.411
 
-OPTIONS=	MYSQL	"Enable MySQL support"		off \
-		OPENSSL	"Enable OpenSSL support"	off \
-		PGSQL	"Enable PostgreSQL support"	off
+OPTIONS_DEFINE=	MYSQL OPENSSL PGSQL
+MYSQL_DESC=	Enable MySQL support
+OPENSSL_DESC=	Enable OpenSSL support
+PGSQL_DESC=	Enable PostgreSQL support
 
 CONFLICTS=	flow-tools-ng-[0-9]*
 
@@ -54,17 +51,17 @@
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 CONFIGURE_ARGS+=--with-pgsql="${PREFIX}"
 USE_PGSQL=	yes
 .endif
 
-.if defined(WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
 CONFIGURE_ARGS+=--with-mysql="${PREFIX}"
 USE_MYSQL=	yes
 .endif
 
-.if defined(WITH_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
 CONFIGURE_ARGS+=--with-openssl="${OPENSSLBASE}"
 .endif
 


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



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