Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 18:36:38 GMT
From:      Gabor Pali <pgj@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172527: [net/beacon] OptionsNG Conversion
Message-ID:  <201210091836.q99Iach8056004@red.freebsd.org>
Resent-Message-ID: <201210092230.q99MUB5a043064@freefall.freebsd.org>

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

>Number:         172527
>Category:       ports
>Synopsis:       [net/beacon] OptionsNG Conversion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 22:30:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Gabor Pali
>Release:        n/a
>Organization:
The FreeBSD Project
>Environment:
n/a
>Description:
- Convert options to OptionsNG format

>How-To-Repeat:

>Fix:
See the attached patch.


Patch attached with submission follows:

diff --git a/net/beacon/Makefile b/net/beacon/Makefile
index b1e37e9..b20ae0a 100644
--- a/net/beacon/Makefile
+++ b/net/beacon/Makefile
@@ -22,15 +22,22 @@ PLIST_SUB+=	VERSION=${PORTVERSION}
 USE_PERL5=	yes
 USE_AUTOTOOLS=	autoconf
 
-OPTIONS=	IPV6	"Enable IPv6 PTR lookups" off
+OPTIONS_DEFINE=		IPV6
+OPTIONS_DEFAULT=	
 
-.ifdef(WITH_IPV6)
+IPV6_DESC=		Enable IPv6 PTR lookups
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MIPV6}
 BUILD_DEPENDS+=	p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6
 CONFIGURE_ARGS+=	--enable-ipv6
+.else
+CONFIGURE_ARGS+=	--disable-ipv6
 .endif
 
 post-install:
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}/
 	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
 .endif


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



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