ports/172556: [dns/zonecheck] OptionsNG Conversion
Gabor Pali
pgj at FreeBSD.org
Tue Oct 9 22:30:29 UTC 2012
>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:
More information about the freebsd-ports-bugs
mailing list