aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2016-05-05 05:04:17 +0800
committerriggs <riggs@FreeBSD.org>2016-05-05 05:04:17 +0800
commitd4f86c68b0c659449ea1543a9825f04ac399ded0 (patch)
tree1a61a99dabadcbcab02095b27f6e43904d362898 /dns
parent6294fee1c6445bb56ff63ee214d8754260b1e43a (diff)
downloadfreebsd-ports-graphics-d4f86c68b0c659449ea1543a9825f04ac399ded0.tar.gz
freebsd-ports-graphics-d4f86c68b0c659449ea1543a9825f04ac399ded0.tar.zst
freebsd-ports-graphics-d4f86c68b0c659449ea1543a9825f04ac399ded0.zip
Fix build on 9.3 i386
PR: 209260 Submitted by: tremere@cainites.net (maintainer) MFH: 2016Q2 (build fix blanket)
Diffstat (limited to 'dns')
-rw-r--r--dns/powerdns/Makefile6
-rw-r--r--dns/powerdns/files/patch-pdns_dnspacket.cc2
2 files changed, 3 insertions, 5 deletions
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile
index 5529ce94400..b82e27497ec 100644
--- a/dns/powerdns/Makefile
+++ b/dns/powerdns/Makefile
@@ -12,10 +12,10 @@ COMMENT= Advanced DNS server with multiple backends including SQL
LICENSE= GPLv2
-BROKEN_powerpc64= Does not build
-
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs
+BROKEN_powerpc64= Does not build
+
USES= cpe gmake libtool lua pkgconfig tar:bzip2
USE_LDCONFIG= YES
USE_SUBMAKE= YES
@@ -122,8 +122,6 @@ TOOLS_DESC= Build extra tools
REMOTEOPT_DESC= Remote backend connectors
ZEROMQ_DESC= Enable ZeroMQ connector (Implies REMOTE enabled)
-.include <bsd.port.options.mk>
-
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in pdns.conf
diff --git a/dns/powerdns/files/patch-pdns_dnspacket.cc b/dns/powerdns/files/patch-pdns_dnspacket.cc
index 641cb4082a4..72eb0d94c59 100644
--- a/dns/powerdns/files/patch-pdns_dnspacket.cc
+++ b/dns/powerdns/files/patch-pdns_dnspacket.cc
@@ -7,7 +7,7 @@
- uint64_t now = time(0);
- if(abs(trc->d_time - now) > trc->d_fudge) {
- L<<Logger::Error<<"Packet for '"<<q->qdomain<<"' denied: TSIG (key '"<<*keyname<<"') time delta "<< abs(trc->d_time - now)<<" > 'fudge' "<<trc->d_fudge<<endl;
-+ uint64_t delta = std::abs((int64_t)trc->d_time - (int64_t)time(0));
++ uint64_t delta = std::labs((int64_t)trc->d_time - (int64_t)time(0));
+ if(delta > trc->d_fudge) {
+ L<<Logger::Error<<"Packet for '"<<q->qdomain<<"' denied: TSIG (key '"<<*keyname<<"') time delta "<< delta <<" > 'fudge' "<<trc->d_fudge<<endl;
return false;