aboutsummaryrefslogtreecommitdiff
path: root/dns/checkdns
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-05 00:18:17 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-05 00:18:17 +0000
commit0921d535b33a33bbb698f65353c4afc0c2550fd2 (patch)
treeda0b11d1f6647d7844520efde1a8b3b41d1944f7 /dns/checkdns
parentea1babb4f7fbc104f98dd5c092ad32fdc14a4d6d (diff)
downloadports-0921d535b33a33bbb698f65353c4afc0c2550fd2.tar.gz
ports-0921d535b33a33bbb698f65353c4afc0c2550fd2.zip
Notes
Diffstat (limited to 'dns/checkdns')
-rw-r--r--dns/checkdns/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/dns/checkdns/Makefile b/dns/checkdns/Makefile
index f8154487674e..8f9d5f1a5975 100644
--- a/dns/checkdns/Makefile
+++ b/dns/checkdns/Makefile
@@ -16,7 +16,12 @@ SUB_FILES= pkg-message
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README THANKS TODO
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/main.c \
${WRKSRC}/INSTALL ${WRKSRC}/README ${WRKSRC}/checkdns.conf-dist
@@ -27,7 +32,7 @@ post-install:
${CP} -p ${PREFIX}/etc/checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ; \
fi
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR}