aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-31 18:55:22 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-31 18:55:22 +0000
commit72683063d1adad91938b131c88bcc51b3c1be4ad (patch)
tree26f4e0324eeded8b67a68bda4cd032529d52e038
parent4ef57300534590c4b2fa7bff88f4b7516319ed02 (diff)
downloadports-72683063d1adad91938b131c88bcc51b3c1be4ad.tar.gz
ports-72683063d1adad91938b131c88bcc51b3c1be4ad.zip
- Switch to options helpers
- Regenerate patches with `make makepatch`
Notes
Notes: svn path=/head/; revision=412285
-rw-r--r--dns/opendd/Makefile32
-rw-r--r--dns/opendd/files/patch-Makefile8
2 files changed, 20 insertions, 20 deletions
diff --git a/dns/opendd/Makefile b/dns/opendd/Makefile
index cb283672da7d..24a142b2cca6 100644
--- a/dns/opendd/Makefile
+++ b/dns/opendd/Makefile
@@ -14,15 +14,15 @@ COMMENT= DynDNS client
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS_DEFINE= OPENSSL RCNG DOCS
-OPTIONS_DEFAULT= OPENSSL RCNG
-RCNG_DESC= Install RC_NG script
-
PORTDOCS= README
PLIST_FILES= sbin/${PORTNAME} \
"@sample(,,600) %%ETCDIR%%/${PORTNAME}.conf.sample" \
"%%ETCDIR%%/${PORTNAME}.pem"
+OPTIONS_DEFINE= OPENSSL RCNG DOCS
+OPTIONS_DEFAULT= OPENSSL RCNG
+RCNG_DESC= Install RC_NG script
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRCNG}
@@ -40,31 +40,31 @@ post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}.${PORTVERSION}
post-patch:
-.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
-.endif
.for i in ${PORTNAME}.conf globals.h
@${REINPLACE_CMD} 's|/etc/${PORTNAME}.pem|${ETCDIR}/${PORTNAME}.pem|' \
- ${WRKSRC}/${i}
+ ${WRKSRC}/${i}
.endfor
@${REINPLACE_CMD} 's|/etc/${PORTNAME}.conf|${ETCDIR}/${PORTNAME}.conf|' \
- ${WRKSRC}/globals.h
-.if ${PORT_OPTIONS:MRCNG}
+ ${WRKSRC}/globals.h
+
+post-patch-OPENSSL-on:
+ @${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
+
+post-patch-RCNG-on:
@${REINPLACE_CMD} 's|runasdaemon = 0|runasdaemon = 1|' ${WRKSRC}/${PORTNAME}.conf
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
- ${MKDIR} ${STAGEDIR}${ETCDIR}
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pem ${STAGEDIR}${ETCDIR}
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} -p ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/dns/opendd/files/patch-Makefile b/dns/opendd/files/patch-Makefile
index 48ad6be788dd..6e321f321d90 100644
--- a/dns/opendd/files/patch-Makefile
+++ b/dns/opendd/files/patch-Makefile
@@ -1,7 +1,7 @@
---- Makefile.orig Mon May 1 07:29:07 2006
-+++ Makefile Sun Nov 12 14:57:38 2006
+--- Makefile.orig 2008-03-15 02:15:51 UTC
++++ Makefile
@@ -5,8 +5,7 @@
- # USE_SOCKET_SSL=yto enable SSL socket
+ # USE_SOCKET_SSL=y to enable SSL socket
#
-CC = cc
@@ -10,7 +10,7 @@
BIN_PROGRAM = opendd
-@@ -49,15 +49,13 @@
+@@ -49,15 +48,13 @@ ${BIN_PROGRAM}: ${OBJS} ${COMMON_OBJS};
fi
@echo ""
.c.o: