1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

net-p2p/libtorrent-rasterbar: fix build with LibreSSL

Add upstream-provided patch to fix build with LibreSSL. Default (OpenSSL)
setup isn't affected, so no PORTREVISION bump.
Remove pkg-message, that have no use.

Submitted by:	Corey <merlincorey@hushmail.me> (by private email)
This commit is contained in:
Ruslan Makhmatkhanov 2015-01-19 08:22:38 +00:00
parent 6709be3950
commit 828d3043d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377391
3 changed files with 38 additions and 11 deletions

View File

@ -35,8 +35,6 @@ CONFIGURE_ARGS= --disable-static \
SHLIB_VER= 7
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}"
SUB_FILES= pkg-message
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}

View File

@ -0,0 +1,38 @@
--- src/torrent.cpp (revision 10629)
+++ src/torrent.cpp (revision 10630)
@@ -82,6 +82,7 @@
#ifdef TORRENT_USE_OPENSSL
#include "libtorrent/ssl_stream.hpp"
#include <boost/asio/ssl/context.hpp>
+#include <openssl/rand.h>
#if BOOST_VERSION >= 104700
#include <boost/asio/ssl/verify_context.hpp>
#endif // BOOST_VERSION
Index: src/peer_connection.cpp
===================================================================
--- src/peer_connection.cpp (revision 10629)
+++ src/peer_connection.cpp (revision 10630)
@@ -65,6 +65,10 @@
#include <set>
#endif
+#ifdef TORRENT_USE_OPENSSL
+#include <openssl/rand.h>
+#endif
+
//#define TORRENT_CORRUPT_DATA
using boost::shared_ptr;
Index: src/session_impl.cpp
===================================================================
--- src/session_impl.cpp (revision 10629)
+++ src/session_impl.cpp (revision 10630)
@@ -149,6 +149,7 @@
#ifdef TORRENT_USE_OPENSSL
#include <openssl/crypto.h>
+#include <openssl/rand.h>
namespace
{

View File

@ -1,9 +0,0 @@
===============================================================================
libtorrent-rasterbar has been installed.
When you have problems to build Source please reinstall
devel/boost-libs
===============================================================================