summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-10-02 18:19:53 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-10-02 18:19:53 +0000
commit9744d67fda44fba0cfd9ed170b22d23292a55168 (patch)
treebf4d39d89140695c08238da91f5e18351d8d8e41 /dns
parent- Fix plist (diff)
Covert to OptionsNG
Mark opendd broken Approved by: maintainer timeout (>= 3 months)
Notes
Notes: svn path=/head/; revision=305169
Diffstat (limited to 'dns')
-rw-r--r--dns/opendd/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/dns/opendd/Makefile b/dns/opendd/Makefile
index 3476ffe02638..419d162b4b2f 100644
--- a/dns/opendd/Makefile
+++ b/dns/opendd/Makefile
@@ -14,8 +14,9 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= avl@FreeBSD.org
COMMENT= A small DynDNS client
-OPTIONS= OPENSSL "Build with SSL support" on \
- RC_NG "Install RC_NG script" on
+OPTIONS_DEFINE= OPENSSL RCNG
+OPTIONS_DEFAULT= OPENSSL RCNG
+RCNG_DESC= "Install RC_NG script"
MAKE_JOBS_SAFE= yes
PORTDOCS= COPYING COPYRIGHT README
@@ -28,22 +29,24 @@ PLIST_FILES= sbin/${PORTNAME} \
.include <bsd.port.pre.mk>
-.if defined(WITH_RC_NG)
+.if ${PORT_OPTIONS:MRCNG}
USE_RC_SUBR= ${PORTNAME}
.endif
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
MAKE_ENV+= "USE_SOCKET_SSL=yes"
.endif
+BROKEN= segfaults upon use
+
pre-patch:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}.${PORTVERSION}
post-patch:
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
@${REINPLACE_CMD} 's|use_ssl = 0|use_ssl = 1|' ${WRKSRC}/${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|^FLAGS =|FLAGS = ${CFLAGS}|" -e "s|^SSL =|SSL = ${LDFLAGS}|" \
${WRKSRC}/Makefile
@@ -54,7 +57,7 @@ post-patch:
.endfor
@${REINPLACE_CMD} 's|/etc/${PORTNAME}.conf|${ETCDIR}/${PORTNAME}.conf|' \
${WRKSRC}/globals.h
-.if defined(WITH_RC_NG)
+.if ${PORT_OPTIONS:MRCNG}
@${REINPLACE_CMD} 's|runasdaemon = 0|runasdaemon = 1|' ${WRKSRC}/${PORTNAME}.conf
.endif