aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-04-01 02:55:22 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-04-01 02:55:22 +0800
commit78f295c7daddf476e3653e8bf5e95a2319769e50 (patch)
tree26f4e0324eeded8b67a68bda4cd032529d52e038 /dns
parent11680b72b7894a3e2d8f15eb9caf535ec565b5e7 (diff)
downloadfreebsd-ports-gnome-78f295c7daddf476e3653e8bf5e95a2319769e50.tar.gz
freebsd-ports-gnome-78f295c7daddf476e3653e8bf5e95a2319769e50.tar.zst
freebsd-ports-gnome-78f295c7daddf476e3653e8bf5e95a2319769e50.zip
- Switch to options helpers
- Regenerate patches with `make makepatch`
Diffstat (limited to 'dns')
-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: