summaryrefslogtreecommitdiff
path: root/net/pdns
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-29 20:01:04 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-29 21:32:31 -0700
commit5b120f55fdb44e5884d48908c74c4d749b88176a (patch)
treec03032a9b0be5d671384a888e850be5ba432c809 /net/pdns
parent067c93b028b123184737f09751f73e46a5d44824 (diff)
pdns: fix compilation without deprecated OpenSSL APIs
The bn.h header is missing. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/pdns')
-rw-r--r--net/pdns/Makefile2
-rw-r--r--net/pdns/patches/200-openssl-deprecated.patch20
2 files changed, 21 insertions, 1 deletions
diff --git a/net/pdns/Makefile b/net/pdns/Makefile
index aee3f2a3d..fe80565e8 100644
--- a/net/pdns/Makefile
+++ b/net/pdns/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pdns
PKG_VERSION:=4.2.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
diff --git a/net/pdns/patches/200-openssl-deprecated.patch b/net/pdns/patches/200-openssl-deprecated.patch
new file mode 100644
index 000000000..cc6544b89
--- /dev/null
+++ b/net/pdns/patches/200-openssl-deprecated.patch
@@ -0,0 +1,20 @@
+--- a/pdns/opensslsigners.cc
++++ b/pdns/opensslsigners.cc
+@@ -29,6 +29,7 @@
+ #if defined(HAVE_LIBCRYPTO_ED25519) || defined(HAVE_LIBCRYPTO_ED448)
+ #include <openssl/evp.h>
+ #endif
++#include <openssl/bn.h>
+ #include <openssl/sha.h>
+ #include <openssl/rand.h>
+ #include <openssl/rsa.h>
+--- a/pdns/pkcs11signers.cc
++++ b/pdns/pkcs11signers.cc
+@@ -15,6 +15,7 @@
+ #include "pdns/lock.hh"
+
+ #ifdef HAVE_LIBCRYPTO_ECDSA
++#include <openssl/bn.h>
+ #include <openssl/ec.h>
+ #endif
+