FreeBSD Bugzilla – Attachment 156241 Details for
Bug 199866
[MAINTAINER-UPDATE] dns/knot: update on 1.6.3 - LibreSSL and GOST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update patch - with GOST enabled
knot16.diff.txt (text/plain), 3.46 KB, created by
Leo Vandewoestijne
on 2015-05-02 18:22:32 UTC
(
hide
)
Description:
update patch - with GOST enabled
Filename:
MIME Type:
Creator:
Leo Vandewoestijne
Created:
2015-05-02 18:22:32 UTC
Size:
3.46 KB
patch
obsolete
>diff -ruN knot/Makefile knot16/Makefile >--- knot/Makefile 2015-04-13 17:43:12.000000000 +0000 >+++ knot16/Makefile 2015-05-02 14:16:45.483591269 +0000 >@@ -3,20 +3,22 @@ > > PORTNAME= knot > PORTVERSION= 1.6.3 >+PORTREVISION= 1 > CATEGORIES= dns ipv6 > MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ > http://dns-lab.com/downloads/knot-dns/ >+PKGNAMESUFFIX= 16 > > MAINTAINER= freebsd@dns-lab.com > COMMENT= High performance authoritative-only DNS server > > LICENSE= GPLv3 > >-CONFLICTS= knot-devel-1.* >- > BUILD_DEPENDS= flex>=2.5.35_1:${PORTSDIR}/textproc/flex > LIB_DEPENDS= liburcu.so:${PORTSDIR}/sysutils/liburcu > >+CONFLICTS= knot-2.* >+ > USES= alias bison libtool pkgconfig tar:xz > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-storage=/var/db/knot \ >@@ -41,7 +43,7 @@ > > PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS > >-OPTIONS_DEFINE= DNSTAP FASTPARSER GOST IDN LMDB >+OPTIONS_DEFINE= DNSTAP FASTPARSER IDN LMDB > > DNSTAP_DESC= dnstap support (see dnstap.info) > FASTPARSER_DESC= Fast zone parser (demanding compilation) >@@ -62,10 +64,6 @@ > > .include <bsd.port.options.mk> > >-.if ${PORT_OPTIONS:MGOST} && defined(OPENSSL_PORT) && ${OPENSSL_PORT} == security/libressl >-IGNORE= cannot use both LibreSSL and GOST (not installing correctly); either don't use GOST or do use OpenSSL >-.endif >- > post-patch: > @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \ > ${WRKSRC}/src/Makefile.in >diff -ruN knot/files/patch-src_libknot_dnssec_config.h knot16/files/patch-src_libknot_dnssec_config.h >--- knot/files/patch-src_libknot_dnssec_config.h 2015-04-13 17:43:12.000000000 +0000 >+++ knot16/files/patch-src_libknot_dnssec_config.h 1970-01-01 00:00:00.000000000 +0000 >@@ -1,11 +0,0 @@ >---- src/libknot/dnssec/config.h.orig 2015-04-08 11:57:44 UTC >-+++ src/libknot/dnssec/config.h >-@@ -40,7 +40,7 @@ >- #undef KNOT_ENABLE_ECDSA >- #endif >- >--#if !defined(OPENSSL_NO_GOST) && OPENSSL_VERSION_NUMBER >= 0x1000001fL >-+#if !defined(OPENSSL_NO_GOST) && OPENSSL_VERSION_NUMBER >= 0x1000001fL && !defined(LIBRESSL_VERSION_NUMBER) >- #define KNOT_ENABLE_GOST 1 >- #else >- #undef KNOT_ENABLE_GOST >diff -ruN knot/files/patch-src_libknot_dnssec_crypto.c knot16/files/patch-src_libknot_dnssec_crypto.c >--- knot/files/patch-src_libknot_dnssec_crypto.c 1970-01-01 00:00:00.000000000 +0000 >+++ knot16/files/patch-src_libknot_dnssec_crypto.c 2015-05-02 14:16:45.483591269 +0000 >@@ -0,0 +1,50 @@ >+--- 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(); >+ } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
freebsd
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 199866
: 156241 |
156242
|
156243
|
156244