From 78f295c7daddf476e3653e8bf5e95a2319769e50 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Thu, 31 Mar 2016 18:55:22 +0000 Subject: - Switch to options helpers - Regenerate patches with `make makepatch` --- dns/opendd/Makefile | 32 ++++++++++++++++---------------- dns/opendd/files/patch-Makefile | 8 ++++---- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'dns') 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 .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 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: -- cgit