diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-31 23:11:11 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-31 23:11:11 +0300 |
commit | 1f0f0b4a91432945526c29923f08a33d4d9505b3 (patch) | |
tree | a8fd03a67c8a67299e8ca13ee721b8d13a573f87 | |
parent | d32e73806b05bac82d0bbdb09b9debdc6f9e327a (diff) |
rakshasa-libtorrent: altered listen-port settings as it static for now...
-rw-r--r-- | net-libs/libtorrent/files/non_default_listen_ports.patch | 13 | ||||
-rw-r--r-- | net-libs/libtorrent/libtorrent-scm.ebuild | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/net-libs/libtorrent/files/non_default_listen_ports.patch b/net-libs/libtorrent/files/non_default_listen_ports.patch new file mode 100644 index 0000000..ab1ff89 --- /dev/null +++ b/net-libs/libtorrent/files/non_default_listen_ports.patch @@ -0,0 +1,13 @@ +diff --git a/src/torrent/net/bind_manager.cc b/src/torrent/net/bind_manager.cc +index 85e8b692..d60d88c7 100644 +--- a/src/torrent/net/bind_manager.cc ++++ b/src/torrent/net/bind_manager.cc +@@ -78,7 +78,7 @@ prepare_sockaddr(const sockaddr* sa, int flags) { + + bind_struct + make_bind_struct(const std::string& name, const sockaddr* sa, int flags, uint16_t priority) { +- return bind_struct { name, flags, prepare_sockaddr(sa, flags), priority, 6980, 6999 }; ++ return bind_struct { name, flags, prepare_sockaddr(sa, flags), priority, 10881, 10882 }; + } + + static bool diff --git a/net-libs/libtorrent/libtorrent-scm.ebuild b/net-libs/libtorrent/libtorrent-scm.ebuild index 66f72d6..978ad1a 100644 --- a/net-libs/libtorrent/libtorrent-scm.ebuild +++ b/net-libs/libtorrent/libtorrent-scm.ebuild @@ -28,10 +28,15 @@ DEPEND="${RDEPEND} dev-util/cppunit" +PATCHES=( + "${FILESDIR}/non_default_listen_ports.patch" +) + src_prepare() { ./autogen.sh elibtoolize multilib_copy_sources + default } src_configure() { |