Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 18:33:16 GMT
From:      Gabor Pali <pgj@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172556: [dns/zonecheck] OptionsNG Conversion
Message-ID:  <201210091833.q99IXGYN039842@red.freebsd.org>
Resent-Message-ID: <201210092230.q99MUTjx043779@freefall.freebsd.org>

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

>Number:         172556
>Category:       ports
>Synopsis:       [dns/zonecheck] 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:29 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/dns/zonecheck/Makefile b/dns/zonecheck/Makefile
index c8228ed..cb35335 100644
--- a/dns/zonecheck/Makefile
+++ b/dns/zonecheck/Makefile
@@ -30,13 +30,16 @@ WRKSRC=		${WRKDIR}/${PORTNAME}
 MAN1=		zonecheck.1
 DOCS=		BUGS INSTALL README TODO
 
-OPTIONS=	ZONECHECK_CGI	"Install with CGI support" off
+OPTIONS_DEFINE=		CGI
+OPTIONS_DEFAULT=	
 
-.include <bsd.port.pre.mk>
+CGI_DESC=	Install with CGI support
+
+.include <bsd.port.options.mk>
 
 ZONECHECK_TARGET=	common cli
 
-.if defined(WITH_ZONECHECK_CGI)
+.if ${PORT_OPTIONS:MCGI}
 ZONECHECK_TARGET+=	cgi
 PLIST_SUB+=	ZONECHECK_CGI=""
 .else
@@ -49,10 +52,10 @@ do-install:
 		-DETCDIST='-dist' -DRUBY="${RUBY}" -DPREFIX="${PREFIX}" \
 		-DWWWDIR="${PREFIX}/www/${PORTNAME}"
 
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 post-install:
 	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


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



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