1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Update to 1.6.4

PR:		200960
Submitted by:	freebsd@dns-lab.com (maintainer)
This commit is contained in:
Dmitry Marakasov 2015-06-25 09:46:00 +00:00
parent ece55f2264
commit 4319df83ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390545
3 changed files with 4 additions and 61 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= knot
PORTVERSION= 1.6.3
PORTREVISION= 1
PORTVERSION= 1.6.4
CATEGORIES= dns ipv6
MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \
http://dns-lab.com/downloads/knot-dns/
@ -42,27 +41,21 @@ SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}"
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS
OPTIONS_DEFINE= DNSTAP FASTPARSER IDN LMDB
OPTIONS_DEFINE= DNSTAP IDN LMDB
DNSTAP_DESC= dnstap support (see dnstap.info)
FASTPARSER_DESC= Fast zone parser (demanding compilation)
GOST_DESC= Enable GOST ciphers (requires OpenSSL >= 1.0.0)
LMDB_DESC= Enable LMDB backend
DNSTAP_CONFIGURE_ENABLE= dnstap
DNSTAP_LIB_DEPENDS= libfstrm.so:${PORTSDIR}/devel/fstrm \
libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c
FASTPARSER_CONFIGURE_ENABLE= fastparser
IDN_CONFIGURE_WITH= libidn
IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn
LMDB_CONFIGURE_ENABLE= lmdb
LMDB_LIB_DEPENDS= liblmdb.so:${PORTSDIR}/databases/lmdb
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \
${WRKSRC}/src/Makefile.in

View File

@ -1,2 +1,2 @@
SHA256 (knot-1.6.3.tar.xz) = 48da608e29c2c1ef5937eb692f8ef0462ebb50fa7d128478a23e0a9788533e86
SIZE (knot-1.6.3.tar.xz) = 785052
SHA256 (knot-1.6.4.tar.xz) = 7d0809ad489bbbc3f7904687559ee750f3c1f3a7180fab238ba06fcedd00d8af
SIZE (knot-1.6.4.tar.xz) = 786904

View File

@ -1,50 +0,0 @@
--- src/libknot/dnssec/crypto.c.orig 2015-04-08 11:57:44 UTC
+++ src/libknot/dnssec/crypto.c
@@ -122,7 +122,14 @@ static unsigned long openssl_threadid_cb(void)
/*- pluggable engines -------------------------------------------------------*/
-#if KNOT_ENABLE_GOST
+#if KNOT_ENABLE_GOST && !defined(LIBRESSL_VERSION_NUMBER)
+ #define KNOT_LOAD_GOST 1
+#else
+ #undef KNOT_LOAD_GOST
+#endif
+
+
+#if KNOT_LOAD_GOST
static ENGINE *gost_engine = NULL;
@@ -130,6 +137,8 @@ static void init_gost_engine(void)
{
assert(gost_engine == NULL);
+ ENGINE_load_builtin_engines();
+
#ifndef OPENSSL_NO_STATIC_ENGINE
ENGINE_load_gost();
#else
@@ -206,16 +215,19 @@ void knot_crypto_cleanup_threads(void)
void knot_crypto_load_engines(void)
{
-#if KNOT_ENABLE_GOST
+#if KNOT_LOAD_GOST
if (!gost_engine) {
init_gost_engine();
}
#endif
+#if KNOT_ENABLE_GOST
+ OpenSSL_add_all_algorithms();
+#endif
}
void knot_crypto_unload_engines(void)
{
-#if KNOT_ENABLE_GOST
+#if KNOT_LOAD_GOST
if (gost_engine) {
deinit_gost_engine();
}