summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-31 23:11:11 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-31 23:11:11 +0300
commit1f0f0b4a91432945526c29923f08a33d4d9505b3 (patch)
treea8fd03a67c8a67299e8ca13ee721b8d13a573f87
parentd32e73806b05bac82d0bbdb09b9debdc6f9e327a (diff)
rakshasa-libtorrent: altered listen-port settings as it static for now...
-rw-r--r--net-libs/libtorrent/files/non_default_listen_ports.patch13
-rw-r--r--net-libs/libtorrent/libtorrent-scm.ebuild5
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() {