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