aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-02 03:43:59 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-02 03:43:59 +0000
commitc45af0804c1c73bbdd3f6f71ee9e18ad1160934a (patch)
treeba4a7c704b16a4dc1661bda9a8c2e289caa88105 /dns
parent82391a3eb5fdad07dd0ef5caf3f39665b9341d0d (diff)
downloadports-c45af0804c1c73bbdd3f6f71ee9e18ad1160934a.tar.gz
ports-c45af0804c1c73bbdd3f6f71ee9e18ad1160934a.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/yadifa/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/dns/yadifa/Makefile b/dns/yadifa/Makefile
index 6d515950a310..f9c3c0bc1624 100644
--- a/dns/yadifa/Makefile
+++ b/dns/yadifa/Makefile
@@ -38,6 +38,11 @@ USE_RC_SUBR= ${PORTNAME}d
PORTDOCS= AUTHORS COPYING ChangeLog \
INSTALL NEWS README TODO VERSION
+post-patch:
+# Fix the build with -fno-common (for Clang 11 and GCC 10)
+ @${REINPLACE_CMD} -e '/\*g_client_logger/d' \
+ ${WRKSRC}/bin/yadifa/yadifa.c
+
post-configure:
${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${EXAMPLESDIR}|' ${WRKSRC}/etc/Makefile
${REINPLACE_CMD} -e 's|/usr/local/var|/var|' -e 's|/var/zones|/var/${PORTNAME}|' ${WRKSRC}/etc/yadifad.conf.example